Skip to content

Instantly share code, notes, and snippets.

View forward.py
# "Colorizing B/W Movies with Neural Nets",
# Network/Code Created by Ryan Dahl, hacked by samim.io to work with movies
# BACKGROUND: http://tinyclouds.org/colorize/
# DEMO: https://www.youtube.com/watch?v=_MJU8VK2PI4
# USAGE:
# 1. Download TensorFlow model from: http://tinyclouds.org/colorize/
# 2. Use FFMPEG or such to extract frames from video.
# 3. Make sure your images are 224x224 pixels dimension. You can use imagemagicks "mogrify", here some useful commands:
# mogrify -resize 224x224 *.jpg
# mogrify -gravity center -background black -extent 224x224 *.jpg
View K-Means.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:c8a028b90adb804ab5b9
Verifying that +samim is my openname (Bitcoin username). https://onename.com/samim
@samim23
samim23 / gist:7785333
Created Dec 4, 2013
meteor-user-status / user_status.coffee converted to javascript
View gist:7785333
var removeSession;
this.UserSessions = new Meteor.Collection(null);
this.UserStatus = new (Npm.require('events').EventEmitter)();
removeSession = function(userId, sessionId) {
UserSessions.remove({
_id: sessionId
});
@samim23
samim23 / gist:7785310
Created Dec 4, 2013
meteor-user-status / user_status.coffee - converted from coffee to js
View gist:7785310
var removeSession;
this.UserSessions = new Meteor.Collection(null);
this.UserStatus = new (Npm.require('events').EventEmitter)();
removeSession = function(userId, sessionId) {
UserSessions.remove({
_id: sessionId
});