Skip to content

Instantly share code, notes, and snippets.

View ehkasper's full-sized avatar

Eduardo Kasper ehkasper

  • Personio
View GitHub Profile
package main
import (
"fmt"
"sync"
"time"
)
var wg sync.WaitGroup
var lock sync.Mutex

Keybase proof

I hereby claim:

  • I am ehkasper on github.
  • I am ehkasper (https://keybase.io/ehkasper) on keybase.
  • I have a public key ASDgHbbRJ4BUB7ax--lBt530oG-22-iFRagiS3deTqsXAQo

To claim this, I am signing this object:

import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
quicksort: List Int -> List Int
quicksort list =
case list of
x::xs -> quicksort (List.filter ((>=)x) xs) ++ [x] ++ quicksort (List.filter ((<)x) xs)
[] -> []
@ehkasper
ehkasper / package.json
Last active December 2, 2016 16:05
brief package json
{
"name": "project-name",
"dependencies": {
"react-datepicker": "0.37.*",
"tether": "1.0.0"
}
}
$phone-portrait: 320px;
$phone-landscape: 480px;
$tablet-portrait: 768px;
$tablet-landscape: 1024px;
$desktop-min: 1024px;
$desktop-med: 1280px;
$desktop-max: 1440px;
@ehkasper
ehkasper / dynamodb-ruby-example.rb
Created January 22, 2016 11:23
Example of creating collection and inserting data into it using AWS SDK
require 'aws-sdk'
p "selected env #{ENV['AWS_REGION']}"
dynamodb = Aws::DynamoDB::Client.new
Aws.config[:dynamodb] = { endpoint: "http://localhost:8000" }
table_name = 'product_catalog'
begin
Verifying that +ehkasper is my blockchain ID. https://onename.com/ehkasper
this.service = new google.maps.DirectionsService;
var request = { origin: LatLng, destination: LatLng, waypoints: [] }
this.service.route(request, function(result) {
var renderer;
if (result.status !== google.maps.GeocoderStatus.OK) {
return;
}
renderer = new google.maps.DirectionsRenderer({

/usr/local/var/rbenv/versions/2.2.2/bin/ruby -r ./siteconf20151014-21532-1gvflws.rb extconf.rb checking if the C compiler accepts ... yes checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no Building nokogiri using packaged libraries.

The file "/usr/include/iconv.h" is missing in your build environment, which means you haven't installed Xcode Command Line Tools properly.

To install Command Line Tools, try running xcode-select --install on terminal and follow the instructions. If it fails, open Xcode.app,

alias ..="cd .."
alias ...="cd ../.."
alias h='cd ~'
alias c='clear'
alias phpspec="vendor/bin/phpspec"
alias phpunit="vendor/bin/phpunit"
alias codecept="vendor/bin/codecept"
alias art="php artisan"