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
$ git branch -a | |
* master | |
origin/HEAD | |
origin/master | |
origin/v1.0-stable | |
origin/experimental | |
If you just want to take a quick peek at an upstream branch, you can check it out directly: | |
$ git checkout origin/experimental | |
But if you want to work on that branch, you'll need to create a local tracking branch: |
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
#include "testApp.h" | |
testApp::testApp() { | |
} | |
void testApp::setup(){ | |
ofBackground(22,33,44); | |
ofSetFrameRate(60); | |
grad_w = 50; |
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
debugging tip of the day. install growlnotify and then from #openFrameworks do: system("/usr/local/bin/growlnotify -m detected person"); |
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
require 'rubygems' | |
require 'streamio-ffmpeg' | |
threads = [] | |
i = 1 | |
Dir.glob('*.avi') do |f| | |
j = i.to_s | |
threads.push Thread.new { | |
begin |
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
#version 120 | |
uniform sampler2D texture; | |
varying vec4 mycol; | |
void main(void) | |
{ | |
gl_FragColor = texture2D(texture,gl_PointCoord) * mycol; | |
} |
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
coffee -c -wo js coffee |
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
python -m SimpleHTTPServer |
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
#ifndef APOLLO_GRASSBRANCH | |
#define APOLLO_GRASSBRANCH | |
#include <roxlu/Roxlu.h> | |
#include <vector> | |
class GrassBranch { | |
public: | |
GrassBranch(VerticesPT& vertices); | |
~GrassBranch(); |
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
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 3000 |
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
$ ps aux | grep node | |
you PID 1.5 0.2 44172 8260 pts/2 S 15:25 0:00 node app.js | |
$ kill -2 PID |
OlderNewer