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
* I installed the latest Thunderbird. All the new features sounded great and once installed (3)
* 5.669133: After installing the program I tried to set it up
* 5.669133: Won't install where I tell it
* 5.669133: Works fine - just installed on the wrong machine
* _Tsk_ testing !!!!! (2)
* 7.730636: Who the F do you thing you are? I said DON'T import anything . . . so . . . once again
* 7.086417: Version 2 was BETTER ! ! !
* adding a new mail account defaults to IMAP (2)
* 5.314812: Have no way to change a pop account to imap account.
* 5.314812: I notice it only applies for IMAP accounts
@rtanglao
rtanglao / startTBWithIMAPLogging.bat
Created April 28, 2010 20:35
startTBWithIMAPLogging.bat
set NSPR_LOG_MODULES=imap:5
set NSPR_LOG_FILE=c:\users\roland\imap.log
"C:\Program files\Thunderbird 3\thunderbird.exe"
@rtanglao
rtanglao / latlongsound.py
Created July 2, 2010 05:45
playrandom sounds based on GPS coordinates!
import location
import gobject
import pygame
import sys
from pygame.locals import *
import Numeric
import random
Fs=11025 # sample rate
pygame.mixer.init(Fs, -16, 0) # mono, 16-bit
@rtanglao
rtanglao / PygSoundTestTest_3.py
Created July 4, 2010 05:45
play gamelan sounds with your N900
#----------------------------------------------------------------------------------
#
# This file is part of PygSoundTestTest.
# PygSoundTestTest should generate and play sound data . . .
#
# PygSoundTestTest Copyright (C) 2009, 2010 by Matthew N. Brown
# N900 / Maemo Modifications (change radians to math.radians and use Numeric instead of NumP) by Roland Tanglao
# PygSoundTestTest is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@rtanglao
rtanglao / gpsgamelan.py
Created July 5, 2010 04:33
python script to play gamelan sounds on your N900 based on GPS jitter
# Based on PygSoundTestTest_3.py by Matthew N. Brown
#
# PygSoundTestTest Copyright (C) 2009, 2010 by Matthew N. Brown
# N900 / Maemo Modifications and change to gpsgamelan.py Copyright 2010 by Roland Tanglao
# gpsgamelan.py is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PygSoundTestTest is distributed in the hope that it will be useful,
@rtanglao
rtanglao / email.conf
Created July 29, 2010 03:59
sendmail.rb
from_address = [email protected]
to_address = [email protected]
p = 'yourgmailpassword'
@rtanglao
rtanglao / emailActive.rb
Created July 29, 2010 05:17
emailActive.rb
#!/usr/bin/env ruby
# email the top 2 active topics to whoever is specified in mail.conf (from account must be gmail)
require 'json'
require 'net/http'
require 'pp'
require 'Time'
require 'tlsmail'
require 'time'
require 'parseconfig'
@rtanglao
rtanglao / mail.conf
Created August 3, 2010 06:46
emailReport.rb
from_address = [email protected]
to_address = [email protected]
p = 'yourgmailpassword'
@rtanglao
rtanglao / gs.jquery.html
Created August 22, 2010 05:28
sample GS JQUERY Code
<!DOCTYPE html>
<html lang="en">
<body>
<b></b>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script>
// Sample code to retrieve a Get Satisfaction Topic using HTTP GET and
// JQUERY and display the Subject of the Topic in Bold
(function($){
// get a Get Satisfaction topic, AFAIK "callback="?" is not documented
@rtanglao
rtanglao / last5.updated.html
Created August 22, 2010 06:43
last 5 updated GS topics
<!DOCTYPE html>
<html lang="en">
<body>
<ol>
<div id="dummy">
</div>
</ol>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script>
(function($){