This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
# url dsl -- the ultimate url dsl! | |
# | |
# You just can't beat this: | |
# | |
# $ irb -r url_dsl | |
# >> include URLDSL | |
# => Object | |
# >> http://github.com/defunkt.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
donor,channel,description,Committed USD,Uncommitted USD,,,,, | |
Abbott Laboratories,Bilateral (to affected government),In-kind: Donations of medicines and nutritional products,"1,000,000",0,,,,, | |
ADRA-Haiti,ADRA-Haiti,Emergency assistance,"809,281",0,,,,, | |
Advent Software,PIH,Humanitarian assistance,0,"25,000",,,,, | |
Air Products,American RC,Humanitarian assistance,0,"25,000",,,,, | |
Albanian Red Cross,IFRC,for victims of earthquake in Haiti; for the emergency appeal of the International Federation of Red Cross and Red Crescent Societies,"15,000",0,,,,, | |
Alcoa Foundation,American RC,Assist the victims of Haitis devastating earthquake,0,"100,000",,,,, | |
Alcon Laboratories,NGOs,"in-kind: $1 million worth of eye drops and eye-related antibiotics and ointments: in partnership with Project Hope, AmeriCares, Direct Relief International and Heart to Heart",0,"1,000,000",,,,, | |
Allocation of unearmarked funds by UNICEF,UNICEF,Humanitarian Response (SM099906),"479,205",0,,,,, | |
Allocation of unearmarked funds by UNICEF,UNICEF,"in kind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> select channel, sum(committed) as committed_sum, sum(pledged) as pledged_sum from donations group by channel order by committed_sum desc; | |
+-------------------------------------------------+---------------+-------------+ | |
| channel | committed_sum | pledged_sum | | |
+-------------------------------------------------+---------------+-------------+ | |
| WFP | 27137476 | 555000 | | |
| USFEMA | 23500000 | 0 | | |
| Bilateral (to affected government) | 18543380 | 231946788 | | |
| UN Agencies | 15000000 | 21947001 | | |
| USDHHS | 13000000 | 0 | | |
| UN Agencies, NGOs and Red Cross | 12711406 | 100055988 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration name="xml_curl.conf" description="cURL XML Gateway"> | |
<bindings> | |
<binding name="example"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apr | |
apr-util | |
argp-standalone | |
aspell | |
autoconf | |
automake | |
bison | |
bzip2 | |
curl | |
curl-ca-bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Filesystem Size Used Avail Capacity Mounted on | |
/dev/disk0s2 119Gi 93Gi 26Gi 79% / | |
devfs 120Ki 120Ki 0Bi 100% /dev | |
map -hosts 0Bi 0Bi 0Bi 100% /net | |
map auto_home 0Bi 0Bi 0Bi 100% /home | |
/dev/disk1s3 466Gi 379Gi 87Gi 82% /Volumes/epicbackup | |
/dev/disk2s1 466Gi 266Gi 200Gi 58% /Volumes/media | |
/dev/disk3s1 466Gi 387Gi 79Gi 84% /Volumes/backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file = ARGV.shift || "~/Music/iTunes/iTunes Music Library.xml" | |
albums = [] | |
d = {} | |
IO.foreach(File.expand_path(file)) do |line| | |
if line =~ /<dict/ | |
d.clear | |
elsif line =~ /<key>(Artist|Album)<\/key><.*?>(.*)<\/.*?>/ | |
key = $1.downcase.first.intern | |
d[key] = $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :gemcutter | |
group :runtime do | |
gem 'rack' | |
gem 'toadhopper', '~>1.0.0' | |
end | |
group :test do | |
gem 'rake' | |
gem 'rspec', :require => 'spec' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% yum upgrade postgresql | |
Loaded plugins: fastestmirror, priorities | |
Loading mirror speeds from cached hostfile | |
* rpmforge: ftp-stud.fht-esslingen.de | |
517 packages excluded due to repository priority protections | |
Setting up Upgrade Process | |
Resolving Dependencies | |
--> Running transaction check | |
--> Processing Dependency: postgresql = 8.4.1-1PGDG.rhel5 for package: postgresql-server | |
--> Processing Dependency: postgresql = 8.4.1 for package: postgresql-contrib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------- | |
* Module: odbcapi.c | |
* | |
* Description: This module contains routines related to | |
* preparing and executing an SQL statement. | |
* | |
* Classes: n/a | |
* | |
* API functions: SQLAllocConnect, SQLAllocEnv, SQLAllocStmt, | |
SQLBindCol, SQLCancel, SQLColumns, SQLConnect, |