FROM node:4
RUN apt-get -y update && npm install -g coffee-script && npm install -g forever && npm install -g nodemon && npm install swagger -g
WORKDIR /app
# ADD package.json /app/
# ADD config.json /app/
# RUN npm install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe style="height: 550px; width: 980px;clear:both" src="http://www.directoriolocal.com/dl/mapa.asp?embeded=true" frameborder="0" width="320" height="240"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"csv":"function(head, req){ | |
start({ | |
'headers': { | |
'Content-Type': 'text/csv' | |
} | |
}); | |
Array.prototype.unique = function() { | |
var a = this.concat(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PubliHerz | |
+ El Cantón Toluqueño : https://www.facebook.com/pages/El-canton-toluque%C3%B1o/311674698928180?fref=ts | |
F:210 I:17 P:8% | |
Leyenda | |
------------ | |
F: Followers | |
I: Usuarios que Interacturaon en la semana mas reciente | |
P: Porcentaje de Interacción |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
awk -F',' '/EXTINF/ {canal=$NF; gsub(/ /,"_",canal); getline url; print canal;print "shoot.sh " canal " " url}' canales.m3u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
function solution(A, B) { | |
moves = [[2,1],[2,-1],[-2,1],[-2,-1],[-1,+2],[+1,+2],[-1,-2],[+1,-2]] | |
maxmoves = ~~(A*B/4) || 3 | |
finaldestinations = [] | |
trymove = function(startx,starty,priormoves){ | |
priormoves++; | |
possiblemoves = moves.filter(function(move){ | |
return startx + move[0] > -1 && starty + move[1] > -1 | |
}); |
made with esnextbin
made with esnextbin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timePromise = (fn, fnName) => { | |
console.time(fnName) | |
return eval(fn).then((retval)=>{ | |
console.timeEnd(fnName) | |
return retval | |
}) | |
} |
OlderNewer