Skip to content

Instantly share code, notes, and snippets.

View juanmirod's full-sized avatar

Juan Miguel Rodriguez Ceron juanmirod

View GitHub Profile
@juanmirod
juanmirod / define.coffee
Created December 18, 2013 21:25
Hubot script for definitions using duckduckgo.com Instant answer API
# Description:
# Get a definition from duckduckgo.com api
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
/**
* Juan's leaving card: http://is.gd/juan_leaving
*/
(function() {
'use strict';
var message = [
' gg ',
' dP8, ',
' dP Yb ',
@juanmirod
juanmirod / .block
Last active April 27, 2021 14:40
Earth model using Three.js
license: mit
@juanmirod
juanmirod / Flatten
Last active July 26, 2016 22:12
Function that flattens a nested array. You can see the result of the tests in this jsbin: http://jsbin.com/suvocovuzi/edit?html,js,output
describe('Flatten', function() {
it("Should put scalar values inside an array", function() {
expect(flatten(1)).toEqual([1]);
});
it('Should leave arrays as they are', function() {
@juanmirod
juanmirod / Gulp + Browserify + Babelify build with ES2015 modules
Last active August 31, 2016 21:10
Working gulp task that transpiles and bundles the application using Babel 6.0, ES2015 preset and Browserify
var gulp = require('gulp');
var babel = require('babelify');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
/*
Transpiles the code using babel and es2015 preset and then bundles
the application in a file.
@juanmirod
juanmirod / ngrxintro.md
Last active March 29, 2017 08:18 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@juanmirod
juanmirod / .block
Last active December 5, 2017 21:57
A motion effect in less than 1kb. This was an experiment inspired by js1kb competition.
license: mit
@juanmirod
juanmirod / music.md
Created December 8, 2017 22:21 — forked from staltz/music.md
coding music

Not for everyone. Each programmer has their own appreciation of what is good coding music.

For when I need to think deep, debug something, or design

(From most influential to least)

@juanmirod
juanmirod / poems.md
Created January 4, 2018 17:51
Poems

Warning to Children

Children, if you dare to think Of the greatness, rareness, muchness Fewness of this precious only Endless world in which you say You live, you think of things like this: Blocks of slate enclosing dappled Red and green, enclosing tawny Yellow nets, enclosing white

@juanmirod
juanmirod / papers.md
Created May 23, 2018 07:20
Cognitive science papers

Copied from http://www.jimdavies.org/summaries/index.html, there you have a summary of each paper, but I was afraid of the page being removed or me forgetting about it...

Ackerman, P. L. (1988). Determinants of individual differences during skill acquisition: Cognitive abilities and information processing. Journal of Experimental Psychology: General, 117, 288-318.
Ackerman, P. L. (1992). Predicting individual differences in complex skill acquisition: Dynamics of ability determinants.
Aginsky, V. & Tarr, M. J. (2000). How are different properties of a scene encoded in visual memory? Visual Cognition, 7 (1/2/3), 147--162.
Allen, R. & Reber, A. S. (1999). Chapter 23: Unconscious intelligence. In A Companion to Cognitive Science, Bechtel, W. & Graham, G. (eds) Blackwell, Malden MA.
Allen, C., Varner, G. & Zinser, J. (2000). Prolegomena to any future artificial moral agent. Journal of Experimental & Theoretical Artificial Intelligence, 12, 251 – 261.

Amarel, S. (1968). On representations