View responsive_images.md

Responsive Images

With images like photos the total file size is detirmined by this equation: Total bits = Pixels x Bits per Pixel The key to handling images is to use relative widths, so it is better to pre-set the width of all images to 100%:

img {
  max-width:100%;
}
View pandas_recipes.py
# Filter by counts
FREQUENCY = 10
frequent_attr_values = data.groupby(['attribute_name']).filter(
lambda group: group.attribute_name.agg('count') > FREQUENCY).attribute_name.unique()
data = data[data.crop_standard_name.isin(frequent_attr_values)]
View cloudSettings
{"lastUpload":"2018-07-17T23:25:49.046Z","extensionVersion":"v3.0.0"}
View pyenv install -v 3.6.5
+ [pyenv:22] enable -f /usr/local/bin/../libexec/pyenv-realpath.dylib realpath
+ [pyenv:29] '[' -z '' ']'
++ [pyenv:31] type -p greadlink readlink
++ [pyenv:31] head -1
+ [pyenv:31] READLINK=/usr/local/bin/greadlink
+ [pyenv:32] '[' -n /usr/local/bin/greadlink ']'
+ [pyenv:54] '[' -z '' ']'
+ [pyenv:55] PYENV_ROOT=/Users/mendler/.pyenv
+ [pyenv:59] export PYENV_ROOT
+ [pyenv:62] '[' -z '' ']'
View chaincode_example02_test.sh
# Connect to the cli container and open it's terminal
docker exec -it cli bash
# By default, following environment variables are configured in this cli
# which refers to the peer0 of org1. It means, whatever operations you
# will perform here are performed as org1
# CORE_PEER_ADDRESS=peer0.org1.example.com:7051
# CORE_PEER_LOCALMSPID=Org1MSP
# CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
# CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
View webdev_online_resources.md
View server.js
'use strict';
var express = require('express');
const logger = require('morgan');
const bodyParser = require('body-parser');
const cors = require('cors');
const helmet = require('helmet');
// const socketio = require('socket.io');
View Makefile
PDFLATEX = pdflatex -interaction=batchmode -synctex=1
SH = /bin/bash
ASCRIPT = /usr/bin/osascript
SOURCE = master.tex
BASE = "$(basename $(SOURCE))"
default : pdf view
.PHONY: pdf graphics
View ms.js
const generatePlayerBrd = (numOfRows, numOfCols) => {
let board = [];
for (let i=0; i<=numOfRows; i++){
let row = [];
for (let j=0; j<=numOfCols; j++){
row.push(' ');
}
board.push(row);
}
return board;
View Nested_Lists_Example_1.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nested Lists - Example 1 Prototype</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<style>
.just-padding {
padding: 15px;
}