Skip to content

Instantly share code, notes, and snippets.

View jhta's full-sized avatar
🐛

Jeison Higuita Sanchez jhta

🐛
View GitHub Profile
@jhta
jhta / util.js
Created July 29, 2015 02:37
Util.js
var API = require("../API");
var ListAPI = {
createList(listname, spaceId, cb) {
var data = {
list: { name: listname},
space: { id: spaceId }
};
API.callAjaxPost('/lists', data, ( err, res ) => {
if(err) {
@jhta
jhta / dsipatcher.js
Created June 19, 2015 19:03
dispatcher
var Dispatcher = require('flux').Dispatcher;
var assign = require('object-assign');
var n = 0;
var Dispatcher = assign( new Dispatcher(), {
handleViewAction( action ) {
n++;
// console.log(`dispatch #${n}`,action.type);
var payload = {
@jhta
jhta / .bashrc
Created February 13, 2015 19:39
My .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac