Skip to content

Instantly share code, notes, and snippets.

View lookatme.c
#include <stdio.h>
int main() {
printf("Look at me, look at me!\n");
return 0;
}
View gist:72087
.gist-meta {
font-family: Tahoma,Verdana,"Lucida Grande" !important;
background-color: #FFF !important;
}
.gist-data pre {
color: #222 !important;
}
View gist:87987
Stranger: hey
Stranger: you know what
You: WHUT!
Stranger: its DARK outside
You: no wai
Stranger: aint that scary?
You: naa im tough
Stranger: you are :)?
You: like a steak
Stranger: wow
@hank
hank / mdshooters_rss.rb
Created Aug 23, 2009
Provides code to generate a feed of classified ads
View mdshooters_rss.rb
require 'rubygems'
require 'open-uri'
require 'hpricot'
require 'rss/maker'
version = "2.0"
destination = "mdshooters_classifieds.xml"
content = RSS::Maker.make(version) do |m|
m.channel.title = "MDShooters Classifieds RSS"
View gist:173623
require 'rubygems'
require 'open-uri'
require 'hpricot'
require 'rss/maker'
version = "2.0"
destination = ENV['HOME']+"/public_html/md_super_ads.xml"
content = RSS::Maker.make(version) do |m|
m.channel.title = "MD Super Ads Classifieds RSS"
@hank
hank / gist:198622
Created Oct 1, 2009
A totally awesome Ruby script for concatenating files together in columns
View gist:198622
#!/usr/bin/ruby
# Original credits to Geet Duggal
# Concatenates an arbitrary number of files together into columns
# Columns map to lines in each file.
# Requirement: Files be of the same length.
# Oh, and cheers!
require "pp"
filez = ARGV.map do |fname|
begin
View gist:200245
For your consideration
Github renders textile, markdown, and rdoc (and maybe more, I don't know).
It would be cool if it rendered some kind of text-based markup language
geared for slides - S9 Perhaps? http://slideshow.rubyforge.org/
Basically, all it would have to do is use S9 to generate the HTML from something like this:
----------
h1. Web Services REST-Style: Universal Identifiers, Formats & Protocols
View gist:211371
Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 0 (LWP 19427)]
Thread 6 (Thread 0x7fa21a245950 (LWP 19428)):
#0 0x00007fa22887056d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1 0x00007fa21f993f91 in ?? () from /usr/lib/libxine.so.1
#2 0x00007fa22886c3ba in start_thread () from /lib/libpthread.so.0
#3 0x00007fa22ec2cfcd in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
View failboat.ooc
include stdlib // Need for rand() and srand()
include time // Need for time()
c_rand: extern(rand) func -> Int
c_srand: extern(srand) func(seed: Int) -> Int
c_time: extern(time) func(when: Int) -> Int
import structs/ArrayList
//operator as (b: Boo) -> Int
View X3220 Overclock 3150 Mhz
350Mhz bus, 1.35 Vcore, 9x multiplier
RAM seemed to be acting up at higher bus speeds
# mprime results (Torture, 4 threads, FFT option 1)
[Worker #2 Dec 6 10:20] Torture Test completed 50 tests in 8 hours, 51 minutes - 0 errors, 0 warnings.
[Worker #3 Dec 6 10:20] Torture Test completed 50 tests in 8 hours, 51 minutes - 0 errors, 0 warnings.
# Temperatures
Core 0: +49.0C (high = +82.0C, crit = +100.0C)