Skip to content

Instantly share code, notes, and snippets.


Jorge Cuadra vasco3

Block or report user

Report or block vasco3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vasco3 / data.js
Last active Aug 26, 2018
Meal Planner
View data.js
module.exports = [
_id: 'recipes/MEXICAN_TACOS',
_rev: '_XTqNHIW--_',
Calories: 150,
Fat: 5,
Carbs: 1,
Protein: 23,
View blockstack
Verifying my Blockstack ID is secured with the address 14eYnieZ5LhYJGU4W6CXnvXdVsBGExJ78S
const PERMITTED_REORDER = 0b1111010111;  // acceptableState

contactEmail: 1        // 0b0000000001   t
contactName: 2       // 0b0000000010   t
contactPhone: 4      // 0b0000000100   t
deliveryWindow: 8  // 0b0000001000    false
endDate: 16            // 0b0000010000    t
jobsiteAddress: 32  // 0b0000100000    false
vasco3 / initctl.js
Created Mar 25, 2016
Trigger initctl processes with NodeJS
View initctl.js
var exec = require('child_process').exec;
var child;
var listCmd = 'initctl list | ag ' + process.argv[2];
exec(listCmd, function (error, stdout, stderr) {
if (error !== null) { console.log('exec listCmd error', error); }
var rows = stdout.split('\n');
{"version":3,"names":[],"mappings":"","sources":["quotelog.js"],"sourcesContent":["!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u=\"function\"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var d=new Error(\"Cannot find module '\"+a+\"'\");throw d.code=\"MODULE_NOT_FOUND\",d}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i=\"function\"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{\"default\":e}}function o(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function i(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e._

App Structure

Mono repository for all apps. Instead of having ConeZone in npm we would have it on the root of the repo.


  • Easier iteration
  • Less overhead


named folder based

Directory structure

View google-input.css
.container {
display: block;
max-width: 600px;
position: relative;
height: 36px;
box-sizing: border-box;
border: 1px solid gray;
border-radius: 3px;
background-color: white;
View google-input.html
<div class="container">
<input type="text" value="" class="free-typing"></input>
<input autocomplete="off" value="Oracul, tell me" class="persistent-placeholder"/>
View babel-script.json
"scripts": {
"clean": "rm -rf build && mkdir build",
"build-css": "node-sass scss/app.scss public/css/app.css",
"build-server": "babel -d ./build ./server -s",
"build": "npm run clean && npm run build-css && npm run build-server",
"lint": "eslint source/ --quiet",
"start": "node ./build/index.js",
"debug": "node --debug ./build/index.js",
"test": "for i in $(ls tests/); do babel-node \"./tests/${i}\" | faucet ; done",
"validate": "npm run lint; npm run test && npm outdated --depth 0"
You can’t perform that action at this time.