Skip to content

Instantly share code, notes, and snippets.

View JuanCaicedo's full-sized avatar
🥑

Juan Caicedo JuanCaicedo

🥑
View GitHub Profile
@JuanCaicedo
JuanCaicedo / codeofconduct.md
Last active August 29, 2015 14:22
Nova Node Code of Coduct

Forked from NodeDC

The Nova Node community is made up of a mixture of professionals and volunteers with different levels of understanding and personal beliefs. This diversity is one of our strengths, and in an effort to enrich and protect our community we’ve enacted this Code of Conduct to be followed during all events, online dicussions on forums and chatrooms, and code projects (including issue discussions and pull requests).

Nova Node is dedicated to providing a harassment-free community experience for everyone, regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, race, age or religion. We do not tolerate harassment of community participants in any form. Sexual language and imagery is not appropriate for any community venue, including talks, hack nights, and in public spaces such as bars. Community participants violating these rules may be sanctioned or expelled from events an

@JuanCaicedo
JuanCaicedo / partially-applied-vs-currying.js
Created February 16, 2016 22:40
Comparing partially applied functions to currying
/* partially-applied.js */
function funcLog(item){
return function log(msg){
console.log('Item = ' + item + '. Msg = ' + msg);
}
}
module.exports {
funcLog: funcLog
}
{
"data": [{
"profile_namespace": "DS",
"tutorial": {
"owner_name": "Dominic",
"picture_url": "/picture.jpg",
"title": "The code",
"url": "/Dominic/thecode/",
"sections": [{
"episode_url": "/tutorial/intro/symphony-of-war/",
@JuanCaicedo
JuanCaicedo / object-literal-extension.md
Created February 19, 2016 00:45
ES 2015 Node Meetup OLS
x = 1;
y = 2;

obj1 = {x:x, y:y}; // ES5
obj2 = {x, y}; //ES6

console.log(obj1);
// Object {x: 1, y: 2}

Does AMP provide guidance on what we can do on the site to get speed gains?

Can we learn from AMP to do some of the things they suggest?

  • Need to include AMP.js library
  • Needs to be styled with AMP
  • Looks like it's a specification for complying with their framework,

being cached and featured. We couldn't get this on our own

Elm to Javascript

Introduction

Elm is a fantastic programming language. It faciliates a style of structuring web applications, both through functional programming and the Elm architecture, that allows for code that is modular, reliable, and easy to refactor.

If you are starting a new project that requires a fast interactive front-end and you are willing or able to learn a new language and ecosystem, I would strongly

@JuanCaicedo
JuanCaicedo / make-it-modular-solution.js
Last active May 30, 2016 15:54
This is an example solution to exercise 6 in learnyounode, "Make it Modular"
/* main.js */
var myModule = require('./my-module');
var directory = process.argv[2];
var filter = process.argv[3];
var callback = function(error, filtered) {
if (error) {
console.log('error');
console.log(error);
@JuanCaicedo
JuanCaicedo / e2e-testing-research.md
Last active September 5, 2016 17:05
A summary of some e2e tools I researched

e2e testing with node

Recommendation: CasperJs

I prototyped a few different approaches to e2e tests and in the end my recommendation is to use casperjs.

Pros

  • It seems to have the simplest API.
#! /usr/bin/env bash
osascript <<EOF
display notification "$1" with title "$2"
EOF
;; -*- mode: emacs-lisp -*-
;; This File is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory