Skip to content

Instantly share code, notes, and snippets.

@datfaf
datfaf / drochan
Created September 6, 2011 22:02 — forked from shokai/drochan
use dropbox as a chat
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
## dropboxの共有フォルダでチャットするツールです
## drochan -> 発言表示
## drochan ほむほむ -> 「ほむほむ」と発言
DIR = "#{ENV['HOME']}/Dropbox/drochan"
user = ENV['USER']
# user = "your-name"
@umaar
umaar / LICENSE.txt
Created September 3, 2011 23:10 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@danheberden
danheberden / gist:1169967
Created August 25, 2011 04:12
coffeescript jsfiddle parser
(function(){
var s = "script",
n = "\n",
d = document,
tag = d.getElementsByTagName( s );
console.log( s,n,d,tag);
(function parseCoffee() {
console.log( 'running' );
// check for a non-src'd script
@fowlmouth
fowlmouth / 01-Ideas.md
Created August 16, 2011 11:12
Path to 015

Path to Gobo 015

I'm going to use this gist as a scratch pad for ideas for continuing GoboLinux. Feel free to add ideas, questions, quandaries, etc. -fowl

Come lurk in IRC at irc.freenode.net #gobolinux

The Process

This should get you to a 014.10 system from 014.01 in the safest way possible. This guide was written in mind from a fresh 014.01 minimal install, but you should be

@FurryHead
FurryHead / perlab.pl
Created July 31, 2011 20:57
TinyCore Linux appbrowser written in perl, can be run from OSs other than TinyCore.
#!/usr/bin/perl -w
use warnings;
use strict;
use Term::ReadKey;
my $tce_mirror = "http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/";
my $tce_dir = `cat /opt/.tce_dir`;
$tce_dir = "./tce" if ($tce_dir eq "");
chomp $tce_dir;
@chrishulbert
chrishulbert / line.js
Created July 11, 2011 06:34
Reading a line from the console in node.js
console.log ('Input some code:');
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.once('data', function (someCode) {
process.stdin.pause();
console.log ('Code: ' + someCode);
});
@nils-werner
nils-werner / packageinfo.json
Created July 7, 2011 10:35
How to bundle node.js services with webOS apps

It's fairly easy to bundle a service with any webOS apps. All you have to do is:

  1. Create three directories in your current webOS app directory. Name them anything you like but I'd recommend application, package and service

  2. Move all original app files into application

  3. Copy and modify the basic FileIO service from https://gist.github.com/1014188 into service Change the services.json file to refer to your Service ID. The Service ID has to be a subdomain of your App ID.

@jbilcke
jbilcke / heroku-node.js
Created June 27, 2011 10:20
Node.JS inside Heroku
jbilcke@compactminer:~/Checkouts/git/daizoru/test$ git push heroku master
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (10/10), 984 bytes, done.
Total 10 (delta 0), reused 0 (delta 0)
-----> Heroku receiving push
-----> Node.js app detected
-----> Vendoring node 0.4.7
@shokai
shokai / drochan
Created June 24, 2011 14:09
use dropbox as a chat
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
## dropboxの共有フォルダでチャットするツールです
## drochan -> 発言表示
## drochan ほむほむ -> 「ほむほむ」と発言
DIR = "#{ENV['HOME']}/Dropbox/drochan"
user = ENV['USER']
# user = "your-name"
@lpgauth
lpgauth / gist:1029334
Created June 16, 2011 14:32
nodejs pattern
var wait = function(callbacks, done) {
var counter = callbacks.length;
var next = function() {
if(--counter == 0) {
done();
}
};
for(var i = 0; i < callbacks.length; i++) {
callbacks[i](next);
}