Skip to content

Instantly share code, notes, and snippets.

View rbadillap's full-sized avatar

Ronny Badilla rbadillap

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rbadillap on github.
  • I am rbadillap (https://keybase.io/rbadillap) on keybase.
  • I have a public key ASC87jJRkHsKkdr6VfzIF31x7MF-pXr8J1sU08-0rAzGjAo

To claim this, I am signing this object:

@rbadillap
rbadillap / stairway-to-heaven.js
Last active March 7, 2017 22:55
Stairway to Heaven (javascript)
// Stairway to heaven
const lady = new Lady({
glitters: GOLD, // for sure
buying: () => 'Stairway to Heaven'
});
lady.on('gets-there', () => {
lady.knows(() => {
if( stores.areAll('closed') ) {
@rbadillap
rbadillap / gif.js
Created August 22, 2016 19:40
Serve a 1px gif using express
const app = require('express')()
app.get('/gif', (req, res) => {
const data = [
0x47,0x49, 0x46,0x38, 0x39,0x61, 0x01,0x00, 0x01,0x00, 0x80,0x00, 0x00,0xFF, 0xFF,0xFF,
0x00,0x00, 0x00,0x21, 0xf9,0x04, 0x04,0x00, 0x00,0x00, 0x00,0x2c, 0x00,0x00, 0x00,0x00,
0x01,0x00, 0x01,0x00, 0x00,0x02, 0x02,0x44, 0x01,0x00, 0x3b
]
return res
@rbadillap
rbadillap / EsLint-Babel.xml
Created March 23, 2016 19:06
WebStorm Code Style XML file which includes the main Code Style settings that you can import
<code_scheme name="EsLintBabel">
<JSCodeStyleSettings>
<option name="SPACE_BEFORE_PROPERTY_COLON" value="true" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" />
</JSCodeStyleSettings>
<codeStyleSettings language="JavaScript">
<option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />