Skip to content

Instantly share code, notes, and snippets.

@disassemblyline
disassemblyline / noodlesweather.pm
Last active August 29, 2015 14:24
some of the vital components behind noodles weather
use strict;
use feature qw(switch);
use Fcntl ':flock';
sub numeric_sort
{
if ($a < $b) { return -1; }
elsif ($a == $b) { return 0;}
elsif ($a > $b) { return 1; }
}

Keybase proof

I hereby claim:

  • I am disassemblyline on github.
  • I am disassemblyline (https://keybase.io/disassemblyline) on keybase.
  • I have a public key whose fingerprint is 1FB8 76A0 1B30 7E3E 995B 9131 4FEE 56C2 A25F 6A90

To claim this, I am signing this object:

@disassemblyline
disassemblyline / realtime streamer
Last active August 29, 2015 14:01
e-z /live/ streamer for flash & html5 video with fallback mime-types, intended as a simple copy+paste proof of concept. just ctrl+f "<stream url>" and replace each to match the appropriate mime-type. uses yui-cssreset, video.js, and prototype.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="//yui.yahooapis.com/3.16.0/build/cssreset/cssreset-min.css">
<link rel="stylesheet" type="text/css" href="//vjs.zencdn.net/4.5/video-js.css">
<script type="text/javascript" src="//vjs.zencdn.net/4.5/video.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/prototype/1.7.1.0/prototype.js"></script>
<script type="text/javascript">
function resize_video()
{