Skip to content

Instantly share code, notes, and snippets.

Connecting to selected M-lab server.
Connected to MLab Server: 64.9.225.166
Measuring Upstream Available Bandwidth
Sending fleet 0, Probing Rate 2.40 Mbps ############
Sending fleet 1, Probing Rate 2.33 Mbps ############
Measuring Downstream Available Bandwidth
Receiving Fleet 0, Probing Rate 600.00Mbps ############
Receiving Fleet 1, Probing Rate 315.79Mbps ############
Receiving Fleet 2, Probing Rate 157.89Mbps ############
From: "Ryan, Phillip" <[email protected]>
Sent: Wed 10/06/10 8:33 AM 
To: <[email protected]>
Priority:  Normal 
Subject: RE: Bumper plates in the rec gym
We ordered bumper plates and a platform, they should be here in a few weeks - a few months
-----Original Message-----
From: [email protected]
@albert-chang0
albert-chang0 / PKGBUILD
Created April 7, 2011 22:23
prpltwtr-libpurple-hg
# Maintainer: Albert Chang <[email protected]>
pkgname=prpltwtr-libpurple-hg
pkgver=20110704
pkgrel=1
pkgdesc="A libpurple (Pidgin, Finch, Empathy* etc) plugin which treats microblogging (Twitter, identi.ca, status.net, etc) as IM protocols. Skips pidgin check"
arch=(i686 x86_64)
url="http://code.google.com/p/prpltwtr/"
license=('GPL')
depends=('libpurple')
makedepends=('mercurial' 'pkgconfig')
post_install() {
echo "Update icon cache"
usr/bin/gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor
echo "Done"
}
post_upgrade() {
post_install
}
#!/usr/bin/env ruby
# Greed is a dice game where you roll up to five dice to accumulate
# points. The following "score" function will be used calculate the
# score of a single roll of the dice.
#
# A greed roll is scored as follows:
#
# * A set of three ones is 1000 points
#
# * A set of three numbers (other than ones) is worth 100 times the
@albert-chang0
albert-chang0 / avg.c
Created August 8, 2011 23:10
Solution
#include <stdio.h>
#include <stdlib.h>
double avg(int[], int);
double avg(int nums[], int count)
{
int i, sum = 0;
for (i = 0; i < count; ++i)
@albert-chang0
albert-chang0 / sample.txt
Created September 20, 2011 19:32
Average bowling score
213025x141570447043-
5/630/038/3427725370-
44x07109/x2071016/2
448/418/0270808/818/1
612144x43x6/250/81-
308/039/908/3/318031-
09165026701716146/54-
3/400017314217617/1/0
x7/529060204/8072x1/
71705/9013107161126/x
@echo off
set ver=7.0.1
echo This script will automatically download and install Mozilla Firefox.
echo.
echo An e-mail address is required for FTP access. You will not receive mail.
echo.
set email=
set /p email=Please enter your e-mail address to continue:
echo.
echo The download is now in progress. This may take a while.