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
Test | |
Testing 123 |
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
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]){ | |
cout<<"Hello World"<<endl; | |
return 0; | |
} |
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
#include <stdio.h> | |
/* BEGIN HACKERY */ | |
typedef struct field { | |
enum { | |
TABLE_NAME, | |
TABLE_FIELD, | |
TABLE_TERMINATOR | |
} tag; |
(a gist based on the old toolmantim article on setting up remote repos)
To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.
This is somewhat of a follow-up to the previous article setting up a new rails app with git.
Set up the new bare repo on the server:
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
/* SDLMain.m - main entry point for our Cocoa-ized SDL app | |
Initial Version: Darrell Walisser <dwaliss1@purdue.edu> | |
Non-NIB-Code & other changes: Max Horn <max@quendi.de> | |
Feel free to customize this file to suit your needs | |
*/ | |
#include "SDL.h" | |
#include "SDLMain.h" | |
#include <sys/param.h> /* for MAXPATHLEN */ |
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
/* SDLMain.m - main entry point for our Cocoa-ized SDL app | |
Initial Version: Darrell Walisser <dwaliss1@purdue.edu> | |
Non-NIB-Code & other changes: Max Horn <max@quendi.de> | |
Feel free to customize this file to suit your needs | |
*/ | |
#ifndef _SDLMain_h_ | |
#define _SDLMain_h_ |
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
require 'open-uri' | |
require 'hpricot' | |
user, project = ARGV # 'tobi', 'liquid' | |
fail "get-github-wiki <username> <projectname>" unless user and project | |
uri = "http://wiki.github.com/#{user}/#{project}" | |
xpath = "div.sidebar/ul[1]//a" | |
command = %w[wget -t 2 -mkc --no-parent] |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
OlderNewer