This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.7 as build-env | |
| MAINTAINER Jan Soendermann | |
| # This list of packages was taken from the official jekyll image. | |
| # Some of them are probably not required but since this is | |
| # just a build env, it doesn't matter so much. | |
| RUN \ | |
| apk --update add readline readline-dev libxml2 libxml2-dev libxslt \ | |
| libxslt-dev python zlib zlib-dev ruby ruby-dev yaml \ | |
| yaml-dev libffi libffi-dev build-base nodejs ruby-io-console \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface RowSegment { | |
| width: number | |
| canStartLine?: boolean | undefined | |
| canEndLine?: boolean | undefined | |
| } | |
| // This implementation isn't fully currect since it never backtracks more than one element but it's good enough for now | |
| export const sentenceLayoutAlgo = <T extends RowSegment>( | |
| rowSegments: T[], | |
| lineWidth: number, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from scipy.misc import imread, imresize, imsave | |
| from scipy.optimize import fmin_l_bfgs_b | |
| import numpy as np | |
| import time | |
| import os | |
| import argparse | |
| import h5py | |
| from keras.models import Sequential | |
| from keras.layers.convolutional import Convolution2D, ZeroPadding2D, AveragePooling2D, MaxPooling2D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run \ | |
| --rm \ | |
| -it \ | |
| --volume="$PWD:/srv/jekyll" \ | |
| --volume="$PWD/vendor/bundle:/usr/local/bundle" \ | |
| -p 8080:8080 \ | |
| -p 35729:35729 \ | |
| --env JEKYLL_ENV=production \ | |
| jekyll/jekyll:3.8 \ | |
| jekyll serve --watch --livereload --port 8080 |
OlderNewer