Skip to content

Instantly share code, notes, and snippets.

View vyzaldysanchez's full-sized avatar
🤡
Clowning by coding?

Vyzaldy Sanchez vyzaldysanchez

🤡
Clowning by coding?
View GitHub Profile
export ROOT=tmp/.chainlink
export CHAINLINK_PORT=6688
export CHAINLINK_DEV=true
export ETH_CHAIN_ID=42
export LOG_LEVEL=debug
export LOG_FILE_DIR=tmp/.chainlink
export JSON_CONSOLE=false
export LOG_TO_DISK=true
export FEATURE_OFFCHAIN_REPORTING=true
export ALLOW_ORIGINS=http://localhost:3000
@vyzaldysanchez
vyzaldysanchez / 01_basic.go
Created August 4, 2020 01:36 — forked from reagent/00_README.md
Custom HTTP Routing in Go
package main
import (
"io"
"log"
"net/http"
)
func main() {
@vyzaldysanchez
vyzaldysanchez / paper-rock-scissors.js
Last active July 15, 2019 06:42
Paper-Rock-Scissors
const availablePlays = ['rock', 'paper', 'scissors'];
const generatePlay = () => Math.round(Math.random() * (availablePlays.length - 1) + 1) - 1;
const computerPlay = () => availablePlays[generatePlay()];
const weaknesses = {
rock: 'paper',
paper: 'scissors',
scissors: 'rock'

Keybase proof

I hereby claim:

  • I am vyzaldysanchez on github.
  • I am vysanchez (https://keybase.io/vysanchez) on keybase.
  • I have a public key ASBxwKZJSJNNlWz9gvu9_WTLxY9FTCzJ2ijnvM1nss2ZPgo

To claim this, I am signing this object:

@vyzaldysanchez
vyzaldysanchez / notes.js
Last active April 17, 2019 14:23
Some util statements that can be used in JS
// Removes duplicates from array
const unique = [...new Set([1, 2, 2, 3])];
// Async sleep
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
// Returns `true` if all numbers are finite
[1, 2, 4].every(Number.isFinite);
// Returns all non-falsy values from a collection
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.rms.*;
import java.io.*;
public class RMSDemo extends MIDlet implements CommandListener {
private Display display;
private RecordStore rs=null;
private Command exit;
@vyzaldysanchez
vyzaldysanchez / FirstExample.java
Created June 23, 2018 04:50
Java Midlet Example
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class HelloWorld extends MIDlet {
private Form form;
private Display display;
public HelloWorld() {
super();
}
@vyzaldysanchez
vyzaldysanchez / .vimrc
Last active February 2, 2018 04:28
This is my current .vimrc configuration!
syntax enable
set nocompatible
filetype off
"-----------Plugins------------"
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim