Skip to content

Instantly share code, notes, and snippets.

@jeffling
jeffling / biggan-deep-cifar10.gin
Created July 16, 2019 00:10
Toy BigGAN-Deep with CIFAR-10 for CompareGAN
# BigGAN architecture and settings on ImageNet 128.
# http://arxiv.org/abs/1809.11096
dataset.name = "cifar10"
options.z_dim = 120
options.architecture = "resnet_biggan_deep_arch"
ModularGAN.conditional = True
options.batch_size = 128
options.gan_class = @ModularGAN
@jeffling
jeffling / second file test
Last active February 24, 2019 03:51
test with multiple files.
blahlblha
@jeffling
jeffling / vimrc
Created February 2, 2017 03:32
my vimrc
let mapleader = ','
let g:plug_timeout = 1000
call plug#begin('~/.vim/bundle')
" My Plugs
Plug 'airblade/vim-gitgutter'
Plug 'altercation/vim-colors-solarized'
Plug 'bling/vim-airline'
Plug 'chrisbra/SudoEdit.vim'
@jeffling
jeffling / index.html
Created September 7, 2014 23:51
Experiment for computed properties in a Service // source http://jsbin.com/tayowe/2
<!DOCTYPE html>
<html ng-app="demo">
<head>
<meta name="description" content="Experiment for service computed values" />
<title>Controller Messaging Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
</head>
<body>
<div data-ng-controller="TestCtrl">
X: <input type="number" data-ng-model="TestService.x" /><br/>
@jeffling
jeffling / modelstore-specs.md
Last active August 29, 2015 14:04
Angular Modelstore

Usage

Using this in controllers

$scope.client = ModelStore.get('Client', options);  // modelstore returns object reference that may or may not contain information,
$scope.client.firstName = 'bar'; // this isn't persisted by the server yet, but lets just be optimistic. this change will be shown in any other controller that's pointing to it.
$scope.client.$update(); // will be updated to server and fetched again to make sure change actually goes through. if it doesn't, emit an error! but the true model is reflected in the scope now.

The resulting object from ModelStore.get('Client', options); will be updated in all scopes (and subsequently, views) that use it, even before any $update.

@jeffling
jeffling / reactLifecycle.html
Last active August 29, 2015 14:01
React component lifecycle reference
<!DOCTYPE html>
<html>
<head>
<script charset="utf-8" src="/scripts/react-with-addons.js" type="text/javascript"></script>
<script charset="utf-8" src="/scripts/coffee-script.js" type="text/javascript"></script>
</head>
<body>
<script type="text/coffeescript">
@jeffling
jeffling / FuzzySearchCollection.coffee
Created December 18, 2013 07:19
Fuzzy searching with fuse.js on Backbone Collections
class FuzzySearchCollection extends Backbone.Collection
#
# Fuzzy searching with fuse.js
#
# 1. populate searchableFields with the model attributes you want to search on
# 2. collection.buildSearchIndex(), with optional options -> http://kiro.me/projects/fuse.html#options
# 3. collection.search 'query'
#
searchableFields: []