Skip to content

Instantly share code, notes, and snippets.

View lejeunerenard's full-sized avatar
👨‍🔬

Sean Zellmer lejeunerenard

👨‍🔬
View GitHub Profile
@mattdesl
mattdesl / about.md
Last active August 9, 2019 13:21
fast & optimized browserify builds

Small script for development + builds with browserify.

Uses loose-envify for faster inlining and cross-env to handle windows/unix shells.

Dev features:

  • fast rebuilds w/ watchify, LiveReload, syntax errors in DOM, etc.

Build features:

  • uglify, simple dead code elimination, optimized bundle.
@lejeunerenard
lejeunerenard / remove-all-deleted
Last active January 3, 2016 14:49
Stage removal of all tracked files already deleted
git status | grep deleted | awk '{ print substr($0, index($0,$3)) }' | xargs -d '\n' git rm
// Make it Nasty
function increment (i) {
i ^= (i & ~-~i) | (~i & -~i)
return i
}
@creaktive
creaktive / mojo-crawler.pl
Last active November 28, 2020 13:15
Simple web crawler/scraper implemented using Mojolicious
#!/usr/bin/env perl
use 5.010;
use open qw(:locale);
use strict;
use utf8;
use warnings qw(all);
use Mojo::UserAgent;
# FIFO queue
@yanick
yanick / dancer.snippets
Created December 13, 2012 02:14
UltiSnips file for Dancer
extends perl
## ROUTE DEFINITIONS
snippet get "GET route" !b
get '/${1}' => sub {
${2:${VISUAL:...;}}
};
endsnippet
@beppu
beppu / async-soap-requests.pl
Created March 16, 2011 20:34
Can SOAP::Lite be tricked into being AnyEvent+Coro-friendly?
#!/usr/bin/env perl
use common::sense;
use AnyEvent;
use Coro;
use AnyEvent::HTTP::LWP::UserAgent;
use SOAP::Lite; # +trace => 'all';
use SOAP::Transport::HTTP; # preload it so that we can set USERAGENT_CLASS reliably;
my @results;