Skip to content

Instantly share code, notes, and snippets.

View oscarryz's full-sized avatar

Oscar Reyes oscarryz

View GitHub Profile
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active March 26, 2024 08:15
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@oscarryz
oscarryz / to_resource.rb
Created August 7, 2012 16:25
Toma un archivo .xaml y genera la entrada para poner las cadenas como recursos y sustituye el contenido para llamar a esos recursos
# encoding: utf-8
# Reemplaza todo los strings no puestos como recursos por la invocación a recursos
# y crea la entrada para ser incluída en el archivo .resx y designer.cs
#
# Ejemplo: Si el archivo de entrada tiene un texto así:
#
# <TextBlock Text="Escriba nombre" />
#
@oscarryz
oscarryz / led.go
Created March 20, 2012 01:09
Led converter in Go
package main
import (
"fmt"
"strings"
"strconv"
)
func main() {
fmt.Printf("%s\n", convertToLCD( 1234567890 ) )
}
// Convert a given number into an "LCD" esque representation: