I hereby claim:
- I am jsoriano on github.
- I am jsoriano (https://keybase.io/jsoriano) on keybase.
- I have a public key whose fingerprint is 2B96 B993 FF0B 3865 510D 2FA6 A5D7 6B49 9AA3 67BB
To claim this, I am signing this object:
// Licensed to Elasticsearch B.V. under one or more contributor | |
// license agreements. See the NOTICE file distributed with | |
// this work for additional information regarding copyright | |
// ownership. Elasticsearch B.V. licenses this file to you under | |
// the Apache License, Version 2.0 (the "License"); you may | |
// not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
package mditest | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/go-martini/martini" | |
redis "gopkg.in/redis.v2" | |
) |
#include <stdio.h> | |
#include <git2.h> | |
int main(int argc, char *argv[]) { | |
int error; | |
git_repository *repo = NULL; | |
git_checkout_options options = GIT_CHECKOUT_OPTIONS_INIT; | |
git_threads_init(); |
I hereby claim:
To claim this, I am signing this object:
import argparse | |
import getpass | |
import json | |
import requests | |
def parse_arguments(): | |
parser = argparse.ArgumentParser( | |
description="Get duration of jenkins jobs along its executions") | |
parser.add_argument('job_url', metavar='JOB_URL') |
// Equivalent Binary Trees | |
package main | |
import "code.google.com/p/go-tour/tree" | |
import "fmt" | |
func Walk(t *tree.Tree, ch chan int) { | |
defer close(ch) | |
var walk func(t *tree.Tree) |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Quick start: | |
# - vagrant plugin install vagrant-digitalocean | |
# - Set-up ~/.digital_ocean.rb like this: | |
# module DigitalOceanKeys | |
# CLIENT_ID = 'foooooooo' | |
# API_KEY = 'fabada' | |
# end |
#!/bin/bash | |
# | |
# Uses hg convert to strip a repository from <start revision> | |
# If no revision is specified, the whole repository is converted. | |
# Optionally a "cache" repository can be used, to be sure that the | |
# source repository is not written during the convert operation. | |
# | |
while getopts "r:s:d:c:h?" opt; do | |
case $opt in |
class foo ($concatenate = []) { | |
class simple_resource { | |
exec { 'env': | |
command => 'env | sort', | |
path => '/usr/bin', | |
environment => ['FOO=bar'], | |
logoutput => true, | |
} | |
} |
module Main (main) where | |
import Debug.Trace | |
import Control.DeepSeq | |
import Control.Monad.State | |
type Counter = State Int () | |
log' :: Counter -> Counter | |
log' f = do f |