Skip to content

Instantly share code, notes, and snippets.

View baldur's full-sized avatar

Baldur Gudbjornsson baldur

View GitHub Profile
set mainfont {Monaco 12}
2 set textfont {Monaco 12}
3 set uifont {"Monaco Bold" 12}
4 set tabstop 8
5 set findmergefiles 0
6 set maxgraphpct 50
7 set maxwidth 16
8 set cmitmode patch
9 set wrapcomment none
10 set autoselect 1
<form action="" method="post" id="commentform">
<p><input type="text" name="wp[leyndo]" value="ruslarakki" />
<p><input type="text" name="wp[author]" id="author" value="baldur" size="22" tabindex="1" />
<label for="author"><small>Name </small></label></p>
<p><input type="text" name="wp[email]" id="email" value="[email protected]" size="22" tabindex="2" />
describe Expiry do
4 it "should calculate expiry in days" do
5 exp = Expiry.new(2.days.from_now)
6 exp.days.should be_equal(2)
7 end
8
9 it "should calculate expiry in hours" do
10 exp = Expiry.new(100.hours.from_now)
11 exp.hours.should be_equal(100)
12 end
<object width="416" height="234">
<param name="movie" value="http://localhost:3000/flash/unavailable.swf">
<embed src="http://localhost:3000/flash/unavailable.swf" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="416" height="234" allowFullscreen="true
</embed>
</object>
vs.
<embed src="http://localhost:3000/flash/unavailable.swf" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="416" height="234" allowFullscreen="true
@baldur
baldur / notifier.pl
Created August 30, 2012 21:40 — forked from bryanwoods/notifier.pl
Perl script to send mentions of my name in IRC to Notification Center or whatever it's called
use strict;
use warnings;
use Irssi;
Irssi::signal_add 'message public', 'sig_message_public';
sub sig_message_public {
my ($server, $msg, $nick, $nick_addr, $target) = @_;
if ($msg =~ /ryan/) {
blacklist i2400m_usb
blacklist i2400m
blacklist wimax
/etc/modprobe.d/blacklist.conf
java.lang.VerifyError: Expecting a stackmap frame at branch target 15 Exception Details: Location: org/oscim/renderer/GLMatrix.$$robo$init()V @4: ifnonnull Reason: Expected stackmap frame at this location. Bytecode: 0000000: 2ab4 013c c700 0b2a 2ab8 023e b501 3cb1 0000010: at org.oscim.map.Viewport.<init>(Viewport.java:49) at org.oscim.map.Map.<init>(Map.java:83) at org.oscim.map.TestMap.<init>(TestMap.java:3) at com.mapzen.shadows.ShadowMapView.getMap(ShadowMapView.java:30) at org.oscim.android.MapView.getMap(MapView.java) at org.oscim.android.MapActivity.registerMapView(MapActivity.java:99) at com.mapzen.support.TestHelper.initBaseActivity(TestHelper.java:34) at com.mapzen.activity.BaseActivityTest.setUp(BaseActivityTest.java:44) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal
vector.test.mapzen.com 80 /vector/all
D/RenderThemeHandler: missing texture atlas item 'hospital'
D/RenderThemeHandler: missing texture atlas item 'theatre'
D/RenderThemeHandler: missing texture atlas item 'toilets'
D/RenderThemeHandler: missing texture atlas item 'soccer-borderless'
D/RenderThemeHandler: missing texture atlas item 'tennis'
D/RenderThemeHandler: unknown attribute in element line (0): fill=#ebf0d8
D/RenderThemeHandler: BUG not an outline style: 1
D/RenderThemeHandler: BUG not an outline style: 1
D/RenderThemeHandler: missing texture atlas item 'atm'
% ndk-stack -sym $PROJECT_PATH/obj/local/armeabi -dump android.log [master]
********** Crash dump: **********
Build fingerprint: 'samsung/jflteuc/jflteatt:4.4.2/KOT49H/I337UCUFNB1:user/release-keys'
pid: 30997, tid: 31136, name: Thread-5745 >>> com.mapzen <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 834fba00
Stack frame #00 pc 0002225c /system/lib/libc.so (__memcpy_base+227)
Stack frame #01 pc 00071107 /system/vendor/lib/egl/libGLESv2_adreno.so (rb_memcpy+282)
Stack frame #02 pc 0007d4a1 /system/vendor/lib/egl/libGLESv2_adreno.so (rb_vbo_cache_buffer+320)
Stack frame #03 pc 000465a7 /system/vendor/lib/egl/libGLESv2_adreno.so (cache_vbo_attrib+298)
Stack frame #04 pc 0004962d /system/vendor/lib/egl/libGLESv2_adreno.so
<?php file_put_contents("blabla.txt", file_get_contents('php://input')); ?>