This file contains 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 strict'; | |
var mysqlBackup = require('./mysql-backup'); | |
var schedule = require('node-schedule'); | |
schedule.scheduleJob({ hour: 22, minute: 0 }, mysqlBackup); |
This file contains 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
Keen.configure(window.ENV.keenProjectId,window.ENV.keenApiKey), | |
Keen.onChartsReady(function(){ | |
var e=new Keen.Series("connect",{ | |
analysisType:"count", | |
timeframe:"last_7_days", | |
interval:"daily" | |
}), | |
t=new Keen.Series("connect",{ |
This file contains 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
server { | |
listen 80; | |
server_name mysite.com; | |
root /var/www/mysite.com/; | |
location / { | |
if (-f $document_root/maintenance.html) { | |
return 503; | |
} | |
... # the rest of your config goes here |
I hereby claim:
- I am rictorres on github.
- I am rictorres (https://keybase.io/rictorres) on keybase.
- I have a public key whose fingerprint is 353B A4A8 924A 2B4C A650 06B5 9684 8B0B FFC7 C82D
To claim this, I am signing this object:
Release candidate do io.js 2.0, atualizações da comunidade e eventos
Essa semana tivemos um lançamento nightly v2.0, changelog completo poderá ser encontrado em breve no GitHub.
- Novo site do johnny-five lançado
- O domínio iojs.io foi doado ao projeto e será redirecionado para iojs.org iojs/io.js#1534
- david-dm.org agora usa iojs
This file contains 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
function testWepP(callback) { | |
var webP = new Image(); | |
webP.src = 'data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMw' + | |
'AgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA'; | |
webP.onload = webP.onerror = function () { | |
callback(webP.height === 2); | |
}; | |
}; | |
testWebP(function(supported) { |
This file contains 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 strict'; | |
const mysql = require('mysql'); | |
const Prom = require('bluebird'); | |
Prom.promisifyAll(require('mysql/lib/Connection').prototype); | |
Prom.promisifyAll(require('mysql/lib/Pool').prototype); | |
let pool = mysql.createPool({ | |
host: 'localhost', |