Skip to content

Instantly share code, notes, and snippets.

View rtanglao's full-sized avatar
😃
you rock :-)

Roland Tanglao rtanglao

😃
you rock :-)
View GitHub Profile
@rtanglao
rtanglao / last5gs.updateinplace.html
Created August 22, 2010 08:36
last 5 topics updated in place
<!DOCTYPE html>
<html lang="en">
<body>
<ol>
<div class="d1"></div>
<div class="d2"></div>
<div class="d3"></div>
<div class="d4"></div>
<div class="d5"></div>
</ol>
<!DOCTYPE html>
<html lang="en">
<body>
<ol>
<div class="container">
<div class="stuff"></div>
</div>
</ol>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
<script>
@rtanglao
rtanglao / active5.notworking.html
Created August 26, 2010 03:49
DOES NOT WORK!
<!DOCTYPE html>
<html lang="en">
<body>
<ol>
<div class="d1"></div>
<div class="d2"></div>
<div class="d3"></div>
<div class="d4"></div>
<div class="d5"></div>
</ol>
@rtanglao
rtanglao / active5.html
Created August 26, 2010 03:52
retrieve active5TopicsFromGS, work in progress!
<!DOCTYPE html>
<html lang="en">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="application/javascript;version=1.8">
// The following code is by protz based on original :-) non working code by Roland Tanglao
if (typeof console === 'undefined' || !console.log) {
var console = { log: function () {}};
};
gmx
gmail
googlemail
yahoo
comcast
road runner
roadrunner
msn
hotmail
@rtanglao
rtanglao / getGastownPhotos.rb
Created September 9, 2010 04:02
get Roland's Gastown's photos
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
require 'uri'
require 'parseconfig'
flickr_config = ParseConfig.new('flickr.conf').params
api_key = flickr_config['api_key']
@rtanglao
rtanglao / unserializeGasTownPhotos.rb
Created September 12, 2010 05:23
unserialize JSON of gastown flickr photos so you can do cool stuff with them
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
require 'uri'
require 'parseconfig'
flickr_data=[]
i = 0
ARGF.each_line do |line|
@rtanglao
rtanglao / ruby stuff for my Mac.md
Created September 12, 2010 06:02
ruby gems installed on my Mac & other ruby tips
@rtanglao
rtanglao / Makefile
Created September 12, 2010 23:09
Blink and LED & Display status on LCD display
GCCFLAGS=-g -Os -Wall -mmcu=atmega168
LINKFLAGS=-Wl,-u,vfprintf -lprintf_flt -Wl,-u,vfscanf -lscanf_flt -lm
AVRDUDEFLAGS=-c avr109 -p m168 -b 115200 -P /dev/cu.PL2303-00001004
LINKOBJECTS=../libnerdkits/delay.o ../libnerdkits/lcd.o ../libnerdkits/uart.o
all: led_blink-upload
led_blink.hex: led_blink.c
make -C ../libnerdkits
avr-gcc ${GCCFLAGS} ${LINKFLAGS} -o led_blink.o led_blink.c ${LINKOBJECTS}