Skip to content

Instantly share code, notes, and snippets.

View rfguri's full-sized avatar

Roger Fernandez Guri rfguri

View GitHub Profile
package main
import (
"fmt"
"time"
"github.com/tsenart/vegeta/lib"
)
var target = vegeta.Target{
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
@rfguri
rfguri / scheduler.go
Created December 29, 2015 18:12
One second interval task scheduler that quits on enter key press
package main
import (
"bufio"
"fmt"
"os"
"time"
)
func schedule(task func(), delay time.Duration) chan bool {
@rfguri
rfguri / Calculator.asm
Last active December 21, 2015 09:29
PIC18F4321 Assembly Calculator
;********************************
;* Name: Calculator.asm *
;* Author: Roger Fernandez Guri *
;* Version: v1.0 *
;********************************
;********************************************
;* Required files: P18F4321.INC 18F4321.LKR *
;********************************************