Skip to content

Instantly share code, notes, and snippets.

Working from home

Leo Correa Tonkpils

Working from home
Block or report user

Report or block Tonkpils

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tonkpils on github.
  • I am tonkpils ( on keybase.
  • I have a public key whose fingerprint is 6451 7398 DCF0 114B 80EE 3861 F7A8 09F9 E659 30D0

To claim this, I am signing this object:

Tonkpils /
Last active Apr 8, 2016
Snake Case Challenge

Snake Case Challenge

$ time ruby snake_case.rb
ruby snake_case.rb  0.05s user 0.01s system 94% cpu 0.061 total
Tonkpils / goroutines.go
Created Jun 11, 2015
Simple Goroutines examples
View goroutines.go
package main
import (
func longFunction(name string, dur time.Duration) {
fmt.Printf("Started %s: lasting %s\n", name, dur)
Tonkpils / Class Instance Variables
Created Nov 5, 2013
Showing an example of class instance variables.
View Class Instance Variables
module Bar
def self.included(base)
def event_name
module ClassMethods
Tonkpils / pro.sml
Created Oct 17, 2013
Finding this issue made me LOL
View pro.sml
fun get_nth (words : string list, n : int) =
if n = 1
then (hd words)
else get_nth((tl words), n - 1)
fun date_to_string(date : int*int*int) =
val months = ["January", "February", "March", "April", "June",
"July", "August", "September", "October", "November", "December"]
val month = get_nth(months, #2 date)
View gist:4407806
int main(void) {
int i = 0;
int x = i++;
//This will print i: 1 x: 0
printf("i: %d x: %d", i, x);
int i = 0;
int x = ++i;
You can’t perform that action at this time.