Skip to content

Instantly share code, notes, and snippets.

@lukegalea
lukegalea / progress_bar.erl
Created July 21, 2008 16:29
A progress bar module for erlang
%% Copyright (c) 2008 Luke Galea www.ideaforge.org
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the "Software"), to deal
%% in the Software without restriction, including without limitation the rights
%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
%% copies of the Software, and to permit persons to whom the Software is
%% furnished to do so, subject to the following conditions:
%% The above copyright notice and this permission notice shall be included in
@bryanl
bryanl / hello.html
Created July 21, 2008 17:00
this is where i get support
<html>
<head><title>Hello</title></head>
<body>
<h1>Hello</h1>
<p>This file was updated by Bryan from remote</p>
</body>
</html>
Gist concept is nice! http://twitter.com/anildigital/statuses/864375699
Read this file please. NOW! Pretty please?
#Shoe showed me this cool new pastie-killer with the sweet-ass Github backend. Whooo!
1000.times do
puts "THanks, shoe!"
end
puts "Holy crap, Batman, this is freakin' wicked!"
# just thought it would be funny to post a Subversion related thingy on a Git site... (github == pretty durn kewl)
require 'webrick'
require 'optparse'
require 'rubygems'
require 'rscm' # jruby -S gem install rscm
TEMPLATE = <<-EOS
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
(define (is-awesome? name)
(if (eq? name 'github)
#t
#f))
(is-awesome? 'pastie) ; => #f
(is-awesome? 'github) ; => #t
Dave sucks... srsly.
private function drawTotalParticipation():void {
this.graphics.lineStyle(1, 0x00FFFF);
this.graphics.moveTo(0, 300);
this.graphics.beginFill(0x00FFFF);
for( var i:uint = 0; i < _data.length - 1; i++ ) {
//this.graphics.drawCircle(i*10, 300 - _data[i].total, 2);
this.graphics.lineTo((i+1)*10, 300 - _data[i+1].total);
}
//this.graphics.drawCircle((_data.length - 1)*10, 300 - _data[_data.length - 1].total, 2);
this.graphics.lineTo(( _data.length-1 )* 10, 300);