Skip to content

Instantly share code, notes, and snippets.

View EnriqueVidal's full-sized avatar
🤠
I know nothing

Enrique Vidal EnriqueVidal

🤠
I know nothing
View GitHub Profile
@EnriqueVidal
EnriqueVidal / quakes.coffee
Created August 28, 2012 06:03
Mini hubot-script for hubot talk in tijuana.js
# Description:
# Ask hubot about the recent earthquakes in the last (hour, day, week or month).
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
#!/usr/bin/env ruby
require 'fileutils'
ARGV.each_with_index do |file, index|
next unless File.exists?( file )
filename_arr = File.basename( file ).split '_'
# Make sure to add a couple of seconds
@EnriqueVidal
EnriqueVidal / never-forget.txt
Created July 22, 2014 16:43
Best of pingüino
me: es hora de traer a este chat la diversión, es hora de que todos escuchen está canción
me: no es solamente un verso chiquito, a esto le llamamos el rap de quito!
me: uso variables y constantes a montones, prendo REGISTER_GLOBALS aunque se te caigan los calzones.
[PrZ] (8) programo en una capa y programo poquito, no uso versionador, todo esta en el folder quito
me: no me preocupo por evitar colisiones, separo mis nombres uzando guiones.
[alexperto] jajaja ahora hablaremos con puras rimas, porque asi es como les gusta a tus primas
@EnriqueVidal
EnriqueVidal / example.jsx
Last active October 26, 2017 03:26
Pass setState functions instead of objects.
import React from 'react';
class Example extends React.Component {
constructor(props) {
super(props);
this.state = {
thingOne: null,
thingTwo: null,
}
}