Skip to content

Instantly share code, notes, and snippets.

View EranSch's full-sized avatar
🤠
Yeee-haw!

Eran Schoellhorn EranSch

🤠
Yeee-haw!
View GitHub Profile
public class Pangram{
public static void main( String [] args ){
Pangram p = new Pangram();
p.pangramer("The quick brown fox jumps over the lazy dog.");
p.pangramer("Pack my box with five dozen liquor jugs");
p.pangramer("Saxophones quickly blew over my jazzy hair");
@EranSch
EranSch / .bashrc
Created January 16, 2014 04:30
Handy Git aliases, for future reference :)
alias gs='git status '
alias gd='git diff '
alias ga='git add '
alias gc='git commit '
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
@EranSch
EranSch / external-links.js
Created October 12, 2016 14:04
Rewrite links leaving site
@EranSch
EranSch / hack.php
Created September 15, 2016 16:03
hack
$cat_counts = (new F\MaybeEmpty($full_query->get_posts()))
->bind($posts ==> array_map($p ==> wp_get_post_categories($p->ID), $posts))
->bind('tft\fp\flatten')
->bind($cats ==> F\reduce($cats, function($carry, $id) {
$carry[$id]++;
return $carry;
}), [])
->extract();