Skip to content

Instantly share code, notes, and snippets.

View nataren's full-sized avatar

César López-Natarén nataren

View GitHub Profile
// Creating new threads
open System
open System.Threading
//What will execute on each thread
let threadBody() =
for i in 1..5 do
//Wait 1/10 of a second
Thread.Sleep(100)
printfn "[Thread %d] %d ..."
keybase gist
@nataren
nataren / keybase.md
Created April 13, 2014 04:16
keybase.md

Keybase proof

I hereby claim:

  • I am nataren on github.
  • I am nataren (https://keybase.io/nataren) on keybase.
  • I have a public key whose fingerprint is 6C27 5B20 E658 DF14 88D8 C12E E26D 4C82 8604 0F5B

To claim this, I am signing this object:

@nataren
nataren / gist:7de1e1c942af7295f1e7
Created September 25, 2014 20:47
Mono runtime SIGSEGV
Stacktrace:
Native stacktrace:
/opt/mono-3.2.6/bin/mono() [0x4a9fbf]
/opt/mono-3.2.6/bin/mono() [0x50004f]
/opt/mono-3.2.6/bin/mono() [0x420197]
/lib64/libpthread.so.0(+0xf5b0) [0x7fd0a27695b0]
/opt/mono-3.2.6/bin/mono(mono_object_isinst_mbyref+0x14d) [0x5a8e8d]
// Error
Error while processing route: index undefined is not a function TypeError: undefined is not a function
at App.IndexRoute.Ember.Route.extend.model (http://localhost:8080/js/app.js:24:25)
at apply (http://localhost:8080/js/lib/ember-1.8.1.js:19674:27)
at superWrapper [as model] (http://localhost:8080/js/lib/ember-1.8.1.js:19245:15)
at EmberObject.extend.deserialize (http://localhost:8080/js/lib/ember-1.8.1.js:24912:21)
at applyHook (http://localhost:8080/js/lib/ember-1.8.1.js:46984:30)
at Object.HandlerInfo.runSharedModelHook (http://localhost:8080/js/lib/ember-1.8.1.js:45006:22)
at Object.subclass.getModel (http://localhost:8080/js/lib/ember-1.8.1.js:45232:21)
at http://localhost:8080/js/lib/ember-1.8.1.js:46858:19
@nataren
nataren / crawler.go
Last active August 29, 2015 14:16
Go crawler
package main
import (
"log"
"github.com/PuerkitoBio/goquery"
"strings"
)
func main() {
hostname := "https://news.ycombinator.com"
@nataren
nataren / p4merge4git.md
Created December 12, 2015 00:10 — forked from tony4d/p4merge4git.md
Setup p4merge as a visual diff and merge tool for git
#!/bin/bash
sudo dpkg-reconfigure locales
export LANGUAGE='es_MX.UTF-8'
export LANG='es_MX.UTF-8'
sudo apt-get -y update
sudo apt-get -y dist-upgrade
76d181accaf3c3c5ab25f8e027bb4a4cadf1c1cb52236e47e3ebe8a6442a56c1 koc-raspbian-2016.img
Writing an image to the SD card
===============================
You can follow the instructions from https://www.raspberrypi.org/documentation/installation/installing-images/
making sure you use koc-raspbian-2016.img as the file you copy over.
OSX
===
sudo diskutil list