I hereby claim:
- I am Swingline0 on github.
- I am eransch (https://keybase.io/eransch) on keybase.
- I have a public key whose fingerprint is 5D6D FDEF B837 4F69 B67E 2B7F 875B 489C D5AA 4DBB
To claim this, I am signing this object:
$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(); |
const $ = require('jquery'); | |
$('a').each(function() { | |
var $this = $(this); | |
var url = $this.attr('href'); | |
var redir = `//${location.host}/`; | |
var href = /http(s|):\/\//i; | |
var hrefPat = new RegExp(href); |
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" |
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"); |
private void testIP3( int numOfAccounts ) { | |
// How does 10,000 test accounts sound? | |
Account [] accounts = new Account[numOfAccounts]; | |
/* | |
* In order to create a mix of the different subclasses, we'll use some | |
* simple iteration logic to rotate what's instantiated for each position | |
* in the array. | |
*/ |
// given: | |
var sayHello = (function (name) { | |
var text = 'Hello, ' + name; | |
return function () { | |
console.log(text); | |
}; | |
})('REX'); | |
sayHello(); // This prints 'REX' to the console |
alert('hello'); |
if ( ! defined( 'ABSPATH' ) ) exit; | |
add_action( 'plugins_loaded', array( 'Plugin_Class_Name', 'get_instance' ) ); | |
class Plugin_Class_Name { | |
private static $instance = null; | |
public static function get_instance() { | |
if ( ! isset( self::$instance ) ) |
I hereby claim:
To claim this, I am signing this object:
Vagrant.configure("2") do |config| | |
config.vm.box = "heroku" | |
config.vm.box_url = "https://dl.dropboxusercontent.com/s/rnc0p8zl91borei/heroku.box" | |
config.vm.network "forwarded_port", guest: 8000, host: 8080 | |
config.vm.network "forwarded_port", guest: 1080, host: 9080 | |
config.vm.network :private_network, ip: '192.168.50.50' | |
config.vm.synced_folder '.', '/vagrant', nfs: true | |
config.vm.provider "virtualbox" do |v| | |
host = RbConfig::CONFIG['host_os'] |