Skip to content

Instantly share code, notes, and snippets.

@tempire
tempire / timestables
Last active August 29, 2015 14:20 — forked from anonymous/timestables
#!/usr/bin/perl
#use strict;
use warnings;
use Switch;
use Data::Printer;
my ($choice, $times, $key, $value);
my @array = (1, 2, 3, 4, 5, 6, 7, 8, 9);
#my %hash_0 = map { $_ => $_ * 0 } @array;
@tempire
tempire / 0_reuse_code.js
Created June 23, 2014 16:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
package Capybara;
use Mojo::Base -base;
use Test::More;
use Mojo::Parameters;
use Mojo::URL;
use Data::Dumper;
has 'test';
has 'tx';
has 'dom';
@tempire
tempire / ow ith ojo!
Created September 11, 2012 06:01 — forked from jadeallenx/gist:3694498
tunes.io downloader oneliner
perl -MTime::Piece -Mojo -E 'mkdir $dir=$ENV{HOME}."/Dropbox/tunes.io/".localtime->ymd; say $_->text and g($_->attrs("href"))->content->asset->move_to("$dir/${\$_->text}.mp3") for g("tunes.io")->dom("ul a")->each'