This file contains hidden or 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
| #!/opt/local/bin/perl | |
| # Example of contents of urllist.txt | |
| # http://google.com/ | |
| # http://yahoo.com/ | |
| # http://autos.yahoo.com | |
| # http://autos.yahoo.com/sedans/all.html | |
| # http://autos.yahoo.com/sedans/luxury.html | |
| use POSIX; | |
| use URI; |
This file contains hidden or 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
| set nocompatible | |
| set number | |
| set ruler | |
| syntax on | |
| " Set encoding | |
| set encoding=utf-8 | |
| " Whitespace stuff |
This file contains hidden or 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
| ==> Installing imagemagick dependency: libtiff | |
| ==> Downloading ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.9.5.zip | |
| curl: (7) couldn't connect to host | |
| Error: Failure while executing: /usr/bin/curl -f#LA Homebrew\ 0.8\ (Ruby\ 1.8.7-249;\ Mac\ OS\ X\ 10.7.1) ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.9.5.zip -o /Users/rroche/Library/Caches/Homebrew/libtiff-3.9.5.zip |
This file contains hidden or 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/curl http://download2.osgeo.org/libtiff/tiff-3.9.5.zip -o ~/Library/Caches/Homebrew/libtiff-3.9.5.zip | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 1792k 100 1792k 0 0 230k 0 0:00:07 0:00:07 --:--:-- 279k | |
| $ brew install imagemagick |
This file contains hidden or 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 | |
| for FILENAME in `/usr/bin/find $1 -iname "*.php" | /usr/bin/grep -v -w "Zend\|dompdf\|includes/font\|ZendFramework\|json\|phpmailer"` | |
| do | |
| echo $FILENAME | |
| `/usr/local/bin/xgettext -o lib_amce/langs/en_US/LC_MESSAGES/messages.po --join-existing --from-code=utf-8 --keyword=translate --keyword -L Python $FILENAME` | |
| done | |
| exit; |
This file contains hidden or 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
| javascript:(function(){function fetchJson(){var jsonSource;jsonSource='json2.php';clearTimeout(mainTimer);var jsonRequest=new Request.JSON({url:jsonSource,onSuccess:function(json){if(json){deployJson(json);if(json.extra.length>0){if($('lt-regularbar').getStyle('width').toInt()!=610)tlTween.start('width','610')}if(json.matchdata.finished=='true')gameOver=true}if(gameOver==false)mainTimer=fetchJson.delay(mainDelay)}}).post({'fullObj':fullObj,'last':last,'lastExtra':lastExtra,'match':match,'datematch':datematch})}$('lt-restore').fade('hide');$('lt-restore').setStyle('display','block');if($('lt-vodset')){$('lt-vodset').fade('hide');if(Browser.Platform.ios){var gestureOverlay=new Element('div',{'id':'gestureOverlay','style':'width:480px;height:100%;position:absolute;z-index:1;top:0px;left:245px;background:url(images/alpha50.png);'});var gestureImg=new Element('img',{'src':'images/2fingerscroll.png','style':'position:absolute;top:85px;left:105px;','width':'223','height':'197','alt':''});gestureImg.inject(gestureOve |
This file contains hidden or 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
| <?php | |
| class EventManager_Framework_Rest extends Zend_Rest_Server | |
| { | |
| /** | |
| * Implement Zend_Server_Interface::setClass() | |
| * | |
| * @param string $classname Class name | |
| * @param string $namespace Class namespace (unused) | |
| * @param array $argv An array of Constructor Arguments | |
| */ |
This file contains hidden or 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
| window.addEvent('domready', function(){ | |
| function resizeIframe( iframe ){ | |
| var innerDoc = $( ( iframe.contentWindow ) ? iframe.contentWindow.document.body : iframe.contentDocument.body ) ); | |
| var objToResize = (iframe.style) ? iframe.style : iframe; | |
| var sizes = innerDoc.getSize(); | |
| var offsetHeight = sizes.scrollSize.y + 50; | |
| objToResize.height = offsetHeight + 'px'; | |
| } | |
| if( $('iframe') != null ){ | |
| var iframe = $('iframe'); |
This file contains hidden or 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 | |
| for f in *.flac; do ffmpeg -i "$f" -acodec alac "${f%.flac}.m4a"; done |
This file contains hidden or 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
| # Get the path to the last Finder window with focus | |
| function ff { | |
| osascript -e 'tell application "Finder"'\ | |
| -e "if (${1-1} <= (count Finder windows)) then"\ | |
| -e "get POSIX path of (target of window ${1-1} as alias)"\ | |
| -e 'else' -e 'get POSIX path of (desktop as alias)'\ | |
| -e 'end if' -e 'end tell'; | |
| } | |
| # Get into the result of `ff` |