Skip to content

Instantly share code, notes, and snippets.

// npm install cli-prompt
var prompt = require('cli-prompt');
var fs = require('fs');
var files = [
{path: './foo', src: 'foo'},
{path: './bar', src: 'bar'}
];
saveFiles(files, function() {
@jonnsl
jonnsl / gist:5748448
Created June 10, 2013 12:44
dijkstra
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define INFINITY 9999
int main() {
int n, i, j, k;
char str[256];
char * pch;
printf("Número de nós: ");
@jonnsl
jonnsl / index.html
Created February 23, 2013 22:15
How to reproduce issue 991 - socket.io
<!doctype html5>
<html>
<head>
<title></title>
<script src="https://rawgithub.com/LearnBoost/socket.io-client/0.9/dist/socket.io.min.js"></script>
<script>
var socket = io.connect('http://localhost');
</script>
<body>