Skip to content

Instantly share code, notes, and snippets.

View happypeter's full-sized avatar
🐶
Wait for U

Peter Wang happypeter

🐶
Wait for U
View GitHub Profile
@danopia
danopia / index.html
Created April 20, 2013 06:12
nodejs collaborative editor, requires socket.io
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>collab editing, yo</title>
<link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css">
<link rel="stylesheet" href="http://codemirror.net/theme/ambiance.css">
<script src="http://codemirror.net/lib/codemirror.js"></script>
<script src="http://codemirror.net/addon/mode/overlay.js"></script>
<script src="http://codemirror.net/mode/xml/xml.js"></script>
@happypeter
happypeter / first.c
Created August 21, 2009 07:44
Peter's first gist
#include <stdio>
int main()
{
printf("what is gist?\n");
/*
* I am making a change with git, click "this gist" shown below
*1. clone it down from github
*git clone git@gist.github.com:171713.git gist-171713
*2. change it and push it
*3. now you see the change in the html page