Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
1) Make a download dir to store the node source and download it. | |
mkdir downloads | |
cd downloads | |
git clone https://github.com/joyent/node.git | |
Find the latest version | |
2) List all of the tags in the repository, and check out the most recent. | |
git tag | |
git checkout v0.9.9 |
/// | |
/// Simple pooling for Unity. | |
/// Author: Martin "quill18" Glaude (quill18@quill18.com) | |
/// Latest Version: https://gist.github.com/quill18/5a7cfffae68892621267 | |
/// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
/// UPDATES: | |
/// 2015-04-16: Changed Pool to use a Stack generic. | |
/// | |
/// Usage: | |
/// |
A collection of useful C# extension methods for the Unity engine. |
.comPlainTextContentEditable { | |
-webkit-user-modify: read-write-plaintext-only; | |
} | |
.comPlainTextContentEditable--has-placeholder::before { | |
content: attr(placeholder); | |
opacity: 0.5; | |
color: inherit; | |
cursor: text; | |
} |
function memorySizeOf(obj) { | |
var bytes = 0; | |
function sizeOf(obj) { | |
if(obj !== null && obj !== undefined) { | |
switch(typeof obj) { | |
case 'number': | |
bytes += 8; | |
break; | |
case 'string': |
<html> | |
<head> | |
<title>Test</title> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> | |
<script src="http://fb.me/react-0.5.1.js"></script> | |
<script src="http://fb.me/JSXTransformer-0.5.1.js"></script> | |
</head> |
#!/usr/bin/env python | |
# Will split a png cubemap/skymap image produced by blender into 6 separated image files for use in a skybox within unity | |
# Requires Python Imaging Library > http://www.pythonware.com/products/pil/ | |
# The author takes no responsibility for any damage this script might cause, | |
# feel free to use, change and or share this script. | |
# 2013-07, CanOfColliders, m@canofcolliders.com | |
from PIL import Image |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
export OLDPATH=$PATH | |
export HAXE_NIGHTLY=$HOME/bin/haxe_nightly | |
hxn(){ | |
if [ -z "$USE_HAXE_NIGHTLY" ] || $USE_HAXE_NIGHTLY; then | |
echo "Changing to Haxe stable version" | |
export HAXE_STD_PATH=$OLD_HAXE_STD | |
export PATH=$OLDPATH | |
export USE_HAXE_NIGHTLY=false | |
else | |
echo "Changing to Haxe nightly at: $HAXE_NIGHTLY" |
App.module("Dashboard", function(Dashboard, App, Backbone, Marionette, $, _){ | |
"use strict"; | |
var Comp = {}; | |
// Grid Table Structure | |
// -------------------- | |
Comp.GridRow = Marionette.ItemView.extend({ | |
tagName: "tr" |