Skip to content

Instantly share code, notes, and snippets.

Chris Lee-Messer cleemesser

  • Stanford University
Block or report user

Report or block cleemesser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cleemesser
cleemesser / rclone-copy-examples
Created Apr 7, 2019
rclone copy with basic filter on windows
View rclone-copy-examples
To copy just a subset of files specify by a pattern. The following works from cmd.exe prompt on windows 10.
rclone copy --include <pattern> <src> <dest>
The quoting rules seem a bit complicated, especially for me on windows where I am less familiar with what cmd.exe does.
it did not work for me to specify pattern as \*.jpg. Instead I had to use double (not single) quotes:
example: just copy the *.jpg files inthe subdirectory images, where the current directory is C:\Users\cleemesser\
rclone copy --include "*.jpg" myremote:projects/images .\images
@cleemesser
cleemesser / README
Last active Jan 19, 2019 — forked from denmerc/README
A simple script that helps setting up git for windows "portable zip file" version on a flash drive with PortableApps
View README
-- Add Portable software to your msysgit-PATH --
If you like to work with your *nix shell even under Windows, you'll
likely use the git-bash provided by msysgit a lot.
A problem might be, that you don't have your tools in the PATH of that
shell and therefore can't use them. Those tools might be on the same
USB-drive as the git-shell, so you would have to adjust the PATH
(if you're allowed to) every time the drive-letter changes.
View bokeh_ext_ts_or_es.py
from bokeh.core.properties import String, Instance
from bokeh.models import LayoutDOM, Slider
CODE ="""
import {div, empty} from "core/dom"
import * as p from "core/properties"
import {LayoutDOM, LayoutDOMView} from "models/layouts/layout_dom"
export class CustomView extends LayoutDOMView {
@cleemesser
cleemesser / gruln.py
Created Jul 26, 2016 — forked from udibr/gruln.py
Keras GRU with Layer Normalization
View gruln.py
from keras.layers import GRU, initializations, K
from collections import OrderedDict
class GRULN(GRU):
'''Gated Recurrent Unit with Layer Normalization
Current impelemtation only works with consume_less = 'gpu' which is already
set.
# Arguments
output_dim: dimension of the internal projections and the final output.
@cleemesser
cleemesser / min-char-rnn.py
Created Oct 7, 2015 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
View min-char-rnn.py
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@cleemesser
cleemesser / simple-bootstrap.ipynb
Last active Dec 19, 2015
simple example of using bootstrapping to understand the variation caused by small samples
View simple-bootstrap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.