Skip to content

Instantly share code, notes, and snippets.

View icco's full-sized avatar
🏠
Working from home

Nat Welch icco

🏠
Working from home
View GitHub Profile
@icco
icco / AnimalFarm.java
Created January 8, 2010 07:18
Interesting Java Problems
public class AnimalFarm {
public static void main(String[] args) {
final String pig = "length: 10";
final String dog = "length: " + pig.length();
System.out.println("Animals are equal: " + pig == dog);
}
}
4082563656
<meta http-equiv="x-xrds-location" content="http://claimid.com/icco/xrds" />
<link rel="openid.server" href="https://openid.claimid.com/server" />
<link rel="openid.delegate" href="https://openid.claimid.com/icco" />
<?php
phpinfo();
?>
@icco
icco / 1264144475.diff
Created January 22, 2010 07:14
Current bugs in program
==== Part 1 -- tests/input/input01 ====
--- tests/1_recognizer/input01.correct 2009-01-02 12:39:44.000000000 -0800
+++ tests/1_recognizer/input01.output 2010-01-21 23:14:31.000000000 -0800
@@ -1,3 +1,2 @@
symbol: {
symbol: }
-end-of-file
==== Part 1 -- tests/input/input02 ====
--- tests/1_recognizer/input02.correct 2009-01-02 12:39:44.000000000 -0800
+++ tests/1_recognizer/input02.output 2010-01-21 23:14:31.000000000 -0800
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '',
@icco
icco / gist:293133
Created February 2, 2010 22:44
QR Code
http://chart.apis.google.com/chart?cht=qr&chs=230x230&chl=MECARD%3AN%3ANat+Welch%3BTEL%3A7077998675%3BURL%3Ahttp%3A%2F%2Fnatwelch.com%3BEMAIL%3Anat%40natwelch.com%3B%3B
http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=MECARD%3AN%3ANat+Welch%3BTEL%3A7077998675%3BURL%3Ahttp%3A%2F%2Fnatwelch.com%3BEMAIL%3Anat%40natwelch.com%3B%3B
373 vun runall
374 vim runall
507 vim run1
508 vim runall
509 ./runall parser.sml
510 ./run1 parser.sml badparse01
511 ./run1 parser.sml tests/1_parser/badparse01
515 ./run1 parser.sml tests/1_parser/badparse02
519 history | grep run
520 history | grep run | gist
Copyright (c) 2008 Chris Wanstrath
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
#!/usr/bin/env ruby
# = USAGE
# gist file.php file2.rb
# gist < file.txt
# echo secret | gist -p # or --private
# gist 1234 > something.txt
#
# = INSTALL
# curl -s http://github.com/evaryont/gist/raw/master/gist.rb > gist &&