Skip to content

Instantly share code, notes, and snippets.

~/Documents/dev/eclipse/Buzz $ sloccount .
Have a non-directory at the top, so creating directory top_dir
Adding /Users/cduruk/Documents/dev/eclipse/Buzz/./buzz_20090701.bat to top_dir
Creating filelist for doc
Adding /Users/cduruk/Documents/dev/eclipse/Buzz/./gridstart.bat to top_dir
Adding /Users/cduruk/Documents/dev/eclipse/Buzz/./pom.xml to top_dir
Creating filelist for target
Creating filelist for test-output
Adding /Users/cduruk/Documents/dev/eclipse/Buzz/./velocity.log to top_dir
Creating filelist for src_test
@cduruk
cduruk / crime_report.md
Created August 29, 2009 22:21
Email that I sent to CMU PD

Hi,

I am a CMU student and I would like to report a crime incident that has happened around 12:45AM on Saturday 29, 2009.

On my way to my apartment on Amberson Avenue, I was robbed at gunpoint; actors stealing my wallet, forcefully demanding my PIN and getting my phone. After the incident, I called 911 and Pittsburgh PD showed up.

Fortunately, I was able to track my phone online using its GPS function; I was able to see the location of the phone on a map. With my friends, we tracked the phone to North Versailles and relayed that information to Pittsburgh PD and North Versailles PD.

Ultimately, we tracked the phone to an Eat 'n Park restaurant in North Versailles. With that information, NVPD caught the actors there. Afterwards I identified the actors in a line-up. I have received my phone, my wallet and most of the cash in my wallet.

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
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})
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
@cduruk
cduruk / probdistfunc.java
Created November 15, 2009 19:54
Probability Distribution Function
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;
}
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
@cduruk
cduruk / gist:283193
Created January 21, 2010 21:05 — forked from 3n/gist:283188
/* 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;
@cduruk
cduruk / fix_html5_for_ff.css
Created January 25, 2010 19:55
Fixes to make the HTML5 tags work in inferior browsers
/* 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;
}
Host linode
ForwardAgent yes
HostName 69.164.215.160
User cduruk
Host www
ForwardAgent yes
HostName www.thetartan.org
User cduruk
port 31415