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
#!/usr/bin/python | |
import urllib | |
import sys | |
if len(sys.argv) == 1: | |
print "You must specify a locale" | |
else: | |
f = urllib.urlopen("http://translate.songbirdnest.com/languages/" + sys.argv[1]) |
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
#!/bin/bash | |
# This script allow reorder of strings from a foreign .dtd file | |
# based on the en-US file and keeping original comments | |
#en-US base folder | |
dtd_base_folder='/home/antoine/Dev/nightingale-l10n/locales/en-US/songbird/' | |
for lang_code in $(cat /home/antoine/Dev/songbird-l10n/shipped-locales) | |
do |
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
#!/bin/bash | |
# This script allow reorder of strings from a foreign .properties file | |
# based on the en-US file and keeping original comments | |
#en-US basefile | |
prop_base_file='/home/antoine/Dev/nightingale-l10n/locales/en-US/songbird/songbird.properties' | |
for lang_code in $(cat /home/antoine/Dev/songbird-l10n/shipped-locales) | |
do |
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
#!/bin/bash | |
#Show 10 first lines with only the string id | |
head songbird.properties | sed 's!^\([^=]*\)=.*$!\1!' |
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
jxon = parser.parseXMLFile("http://www.scenemusic.net/demovibes/xml/queue/") | |
alert(jxon.playlist.queue.entry[2].song); | |
alert(jxon.playlist.now.entry.song); |
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
/** | |
* Saebekassebil <Jakob Miland> 2012 | |
* GeekShadow <Antoine Turmel> 2012 | |
* | |
* Put this file in top of the project directory | |
* $ node search.js | |
* | |
**/ | |
var fs = require('fs'), |
NewerOlder