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
// from data-nugget to data-scalars, | |
// a first end to end look at the problem by example | |
const Immutable = require('immutable'); | |
// let's define some record structure to represent simple type schemas. | |
// we need some composite types… | |
let ListType = Immutable.Record({type:'List', kind:'Collection', fields: Immutable.Map()}, 'ListType'); | |
let MapType = Immutable.Record({type:'Map', kind:'Collection', fields: Immutable.Map()}, 'MapType'); |
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
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 |
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
tell application "Finder" | |
set cwd_ to folder of (path to me) as alias | |
set path_ to (POSIX path of cwd_) | |
tell application "Terminal" | |
activate | |
do script ("cd " & quoted form of path_) & ";python -m SimpleHTTPServer" | |
end tell | |
end tell |
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 "Noia/DoubleFacedExample" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
LOD 200 |
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; | |
[ExecuteInEditMode] | |
public class ShowMyTransforms : MonoBehaviour { | |
void OnDrawGizmos(){ | |
Gizmos.color = Color.red; | |
Gizmos.DrawLine (transform.position, transform.position + transform.right); |
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
#!/usr/bin/env ruby | |
# post-receive | |
# 1. Read STDIN (Format: "from_commit to_commit branch_name") | |
from, to, branch = ARGF.read.split " " | |
# 2. Only deploy if master branch was pushed | |
if (branch =~ /master$/) == nil | |
puts "Received branch #{branch}, not deploying." | |
exit |
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 parseQuery = function(queryString){ | |
var possibleMatches = queryString.replace(/ /g,'').split('&'), | |
regex = /(\w+)=(\w+)/; | |
return possibleMatches.reduce(function(array, current){ | |
var match = regex.exec(current); | |
if(match){ | |
array.push({ |
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 ScaleLightRange : MonoBehaviour { | |
Light _light; | |
float _onAwakeRange; | |
float _onAwakeScaleFactor; | |
void Awake () { |
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
dd if=/dev/urandom of=test.dat bs=1 count=8 |
NewerOlder