Skip to content

Instantly share code, notes, and snippets.

View jhta's full-sized avatar
🐛

Jeison Higuita Sanchez jhta

🐛
View GitHub Profile
@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
@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 / 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 / action.js
Created July 29, 2015 02:38
action
var Dispatcher = require('../dispatchers/dispatcher.js');
var Constants = require('../constants/constants.js');
var API = require("../utils/SpaceAPIUtils");
var ListAPI = require('../utils/ListAPIUtils');
var TaskAPI = require('../utils/TaskAPIUtils');
var RouterContainer = require('../router/router-container');
var SpaceActions = {
@jhta
jhta / index.html
Created July 29, 2017 00:49 — forked from anonymous/index.html
JyYgWB
<div class="contenedor">
<div class="cubo">
<div class="side frente"></div>
<div class="side atras"></div>
<div class="side abajo"></div>
<div class="side arriba"></div>
<div class="side derecha"></div>
<div class="side izquierda"></div>
</div>
</div>
@jhta
jhta / citrusbyte.js
Last active August 21, 2018 17:25
I have a description
/* Write some code, that will flatten an array of arbitrarily
nested arrays of integers into a flat array of integers.
e.g. [[1,2,[3]],4] -> [1,2,3,4]. */
const flattenArray = array => array.reduce(
(acumulator, element) => acumulator.concat(
Array.isArray(element) ?
flattenArray(element)
@jhta
jhta / hello_world.rb
Created August 23, 2018 02:42
Hello World Examples
please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Home made markdown editor :D!
@jhta
jhta / gist
Created August 23, 2018 02:45
a new fancy gist
# Home made markdown editor :D!