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:if(document.location.href.match(/http:%5C/%5C/%5Ba-zA-Z%5C.%5D*youtube%5C.com%5C/watch/))%7Bdocument.location.href='http://www.youtube.com/get_video?fmt='+(isHDAvailable?'22':'18')+'&video_id='+swfArgs%5B'video_id'%5D+'&t='+swfArgs%5B't'%5D%7D |
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
| require 'rubygems' | |
| require 'httparty' | |
| require 'crack' | |
| class Wherein | |
| include HTTParty | |
| base_uri 'http://wherein.yahooapis.com' | |
| def initialize(apikey) | |
| self.class.default_params({:appid => apikey}) |
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
| Nov 11 13:56:13 XSERVE bootpd[1242]: NetBoot: [1,0:1f:f3:45:1:b2] BSDP ACK[LIST] sent 128.2.98.193 pktsize 302 | |
| Nov 11 13:56:13 XSERVE bootpd[1242]: service time 0.000217 seconds | |
| Nov 11 13:56:53 XSERVE bootpd[1242]: service time 0.000022 seconds | |
| Nov 11 13:56:56 XSERVE bootpd[1242]: BSDP INFORM [en0] 1,0:16:cb:91:82:18 NetBoot001 arch=i386 sysid=Macmini1,1 | |
| Nov 11 13:56:56 XSERVE bootpd[1242]: NetBoot: [1,0:16:cb:91:82:18] BSDP ACK[LIST] sent 128.2.99.88 pktsize 302 | |
| Nov 11 13:56:56 XSERVE bootpd[1242]: service time 0.000221 seconds | |
| Nov 11 13:56:58 XSERVE bootpd[1242]: BSDP INFORM [en0] 1,0:16:cb:91:82:18 NetBoot001 arch=i386 sysid=Macmini1,1 | |
| Nov 11 13:56:58 XSERVE bootpd[1242]: NetBoot: [1,0:16:cb:91:82:18] BSDP ACK[LIST] sent 128.2.99.88 pktsize 302 | |
| Nov 11 13:56:58 XSERVE bootpd[1242]: service time 0.000212 seconds | |
| Nov 11 13:57:01 XSERVE bootpd[1242]: BSDP INFORM [en0] 1,0:16:cb:91:82:18 NetBoot001 arch=i386 sysid=Macmini1,1 |
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
| public static double getPDF(double mu, double sigma, double value){ | |
| double exponent = -1 * ((value - mu)*(value - mu)) / (2*sigma*sigma); | |
| double num = Math.exp(exponent); | |
| double denum = sigma*Math.sqrt(2*Math.PI); | |
| return num/denum; | |
| } |
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
| duruk:tartan cduruk$ brew install imagemagick | |
| ==> Downloading http://www.ijg.org/files/jpegsrc.v7.tar.gz | |
| ######################################################################## 100.0% | |
| ==> ./configure --prefix=/usr/local/Cellar/jpeg/7 | |
| ==> make install | |
| ln: ./wrjpgcom: Permission denied | |
| Error: The linking step did not complete successfully | |
| The package built, but is not symlinked into /usr/local | |
| You can try again using `brew link jpeg' | |
| ==> Summary |
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
| /* css to make <div id="new">NEW</div> into this: http://bit.ly/5sf4sq */ | |
| #new { | |
| display:block; | |
| width:40px; | |
| height:30px; | |
| padding-top:10px; | |
| background-color:#F72F3C; | |
| color:white; | |
| text-align:center; |
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
| /* Make the new HTML5 tags work with Firefox */ | |
| /* See <http://orderedlist.com/our-writing/resources/html-css/structural-tags-in-html5/> */ | |
| header, nav, section, article, footer, aside{ | |
| display:block; | |
| } |
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
| Host linode | |
| ForwardAgent yes | |
| HostName 69.164.215.160 | |
| User cduruk | |
| Host www | |
| ForwardAgent yes | |
| HostName www.thetartan.org | |
| User cduruk | |
| port 31415 |
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
| export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
| #Java and Tomcat | |
| export JAVA_HOME=/Library/Java/Home | |
| export CATALINA_HOME=/Library/Tomcat/Home | |
| #Tomcat | |
| alias start_tomcat='/Library/Tomcat/Home/bin/startup.sh' | |
| alias stop_tomcat='/Library/Tomcat/Home/bin/shutdown.sh' | |
| alias restart_tomcat='stop_tomcat;start_tomcat' |
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
| # Old Folder Pattern | |
| !./(.[^/]|CVS|_darcs|_MTN|{arch}|blib|.~.nib|..(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$ | |
| # New Folder Pattern | |
| !./(.[^/]|CVS|_darcs|_MTN|{arch}|blib|.~.nib|..(framework|app|pbproj|pbxproj|xcode(proj)?|bundle)|vendor|public/system|.git)$ |