This file contains 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
#!/bin/bash | |
# This script downloads the profile images of facebook profile ids from 1 to 10 | |
# change the start and end ids and use it - does not require any login | |
for i in {1..10}; do wget http://graph.facebook.com/picture?id=$i&width=10000 -O $i.jpg; done |
This file contains 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
#!/usr/bin/env python | |
import numpy as np | |
from PIL import Image | |
import chainer | |
from chainer import cuda | |
from chainer import optimizers | |
import chainer.functions as F | |
from chainer.links import caffe |
This file contains 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
Sources: | |
=============== | |
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04 | |
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 | |
https://github.com/yyx990803/pod | |
https://www.namecheap.com/support/knowledgebase/article.aspx/1162/46/how-can-i-point-my-domain-name-to-my-home-servers-ip | |
Basic setup |
This file contains 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
(On a math problem, the solutions of which have been independently discovered in | |
essentially every field that encountered it, because nobody seems to come up | |
with a name that others think to search for. This is copy & pasted from an old | |
mail.) | |
It's actually easy to find papers on this because this problem has been chewed on by dozens | |
of researchers over decades, all of them unaware of each other's work (...great). | |
Here's some pointers: |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# this is a quick implementation of http://arxiv.org/abs/1508.06576 | |
# BUT! This is kind of dirty. Lots of hard coding. | |
import numpy as np | |
import math | |
from chainer import cuda, Function, FunctionSet, gradient_check, Variable, optimizers | |
import chainer.functions as Fu |
This file contains 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
[{ | |
"lat": "40.79142677512476", | |
"lng": "-73.93807411193848", | |
"name": "1 Ave @ 110 St", | |
"camera": "http://207.251.86.238/cctv261.jpg" | |
}, { | |
"lat": "40.800426144169315", | |
"lng": "-73.93155097961426", | |
"name": "1 Ave @ 124 St", | |
"camera": "http://207.251.86.238/cctv254.jpg" |
This file contains 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
import sys | |
import os | |
import numpy as np | |
import theano | |
import theano.tensor as T | |
import lasagne as nn | |
import time | |
from PIL import Image | |
from scipy.stats import norm | |
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams |
This file contains 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
import argparse | |
import numpy as np | |
from chainer import Variable, FunctionSet, optimizers, cuda | |
import chainer.functions as F | |
import cv2 | |
import random | |
import cPickle as pickle | |
import sys | |
class ConvolutionalAutoencoder(FunctionSet): |
This file contains 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
'use strict'; | |
const fetch = require('node-fetch'); | |
const msautils = require('./utils'); | |
let apikey; | |
function setApiKey(_apikey) { | |
apikey = _apikey; |
This file contains 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
//! @brief Pattern file recorder/playback | |
//! | |
//! The purpose is to allow capure and playback of streamed pattern data. The | |
//! recorder is intended to capture raw data and sync packets directly from the | |
//! listener (ie, before mapping or color/brightness manipulation is applied). | |
//! During playback, the raw packets are sent to the mapper for processing. | |
//! This allows the mapping and output settings to be adjusted after recording. | |
//! | |
//! Packets are recorded with a time resolution of 1 ms. | |
//! |
OlderNewer