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
bigram count score | |
external_links 1823239 11.0846952043 | |
united_states 1201240 9.51993073859 | |
references_external 1073067 4.49092215503 | |
new_york 1041129 4.9935587872 | |
th_century 617252 5.71497454564 | |
did_not 526168 4.30135948012 | |
los_angeles 259057 63.2530378731 | |
new_zealand 257352 5.34529759482 | |
does_not 239292 4.39354755795 |
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
""" | |
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) |
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
var spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
var path = require('path'); | |
var seq = require('seq'); | |
var findit = require('findit'); | |
var BufferedStream = require('morestreams').BufferedStream; | |
module.exports = function (inStream) { | |
var id = Math.floor(Math.random() * (1<<30)).toString(16); | |
var tmpDir = path.join('/tmp', id); |
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
using UnityEngine; | |
using System.Collections; | |
public class TouchCamera : MonoBehaviour { | |
public Transform target; | |
Vector3 f0Dir= Vector3.zero; | |
float zoomDistance= 5; | |
float theta= 0.0F; | |
float fai= 0.0F; | |
float dx= 0.0F; |
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
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
do | |
npm -g install "$package" | |
done |
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
// iMacro CheatSheet - Command Reference | |
// http://wiki.imacros.net/Command_Reference | |
// iMacros supports 3 types of variables: | |
// * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro. | |
// * Built-in variables. They contain certain values set by iMacros. | |
// * User-defined variables. They are defined in-macro using the SET command. | |
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
# Starting with... | |
# OS X 10.8.3 | |
# python 2.7.2 // python --version | |
# c++ 4.0 // c++ --version | |
# g++ 4.2 // g++ --version | |
# | |
# Update/Install XCode command line utils | |
# c++ 4.2 // c++ --version | |
# | |
# Doing all my work in ~/Development |
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
Shader "Custom/VertexBlendMaskedCleanEdges" { | |
Properties | |
{ | |
_Over ("Over", 2D) = "white" {} | |
_Under ("Under", 2D) = "white" {} | |
_Mask ("Mask", 2D) = "white" {} | |
_Bias ("Edge Bias", Range(0.5, 30.0)) = 4.0 | |
_Edge ("Edge Sharpness", Float) = 10.0 | |
_Fall ("Blend Falloff", Float) = 1.0 | |
} |