Skip to content

Instantly share code, notes, and snippets.

#!perl
use strict;
use warnings;
my %digits = map { $_ => 1 } ( 0 .. 9 );
sub choose ($&) {
my ( $set, $sub ) = @_;
map { $sub->($_) } grep { $set->{$_} } keys %$set;
@mrjbq7
mrjbq7 / NewsBlur_2013-10-02-191424_iPhone.crash
Last active December 24, 2015 13:28
Crasher in NewsBlur iPhone App
Incident Identifier: 4ADFC591-C9E3-4D01-9356-B42799D6D526
CrashReporter Key: d9072db6a2d426fbdc9560a746ec0f5e50cd213d
Hardware Model: iPhone6,1
Process: NewsBlur [192]
Path: /var/mobile/Applications/D329DFB6-C808-415F-BF05-8DBBE8FBE3B7/NewsBlur.app/NewsBlur
Identifier: com.newsblur.NewsBlur
Version: 3.0 (3.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
@mrjbq7
mrjbq7 / data.npy
Created October 24, 2012 18:46
pandas bug: rolling_sum and rolling_mean
USING: alien.syntax alien.c-types byte-arrays kernel strings ;
IN: uuid
LIBRARY: uuid
FUNCTION: void uuid_generate ( char[16] out ) ;
FUNCTION: void uuid_unparse ( char[16] out, char* out ) ;