create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');Those suck for maintenance and they're ugly.
| /* | |
| * | |
| * There is now an Angular directive, filter and provider! | |
| * It can be found here: https://github.com/i18next/ng-i18next | |
| * ng-i18next is now part of the i18next rganization! | |
| * | |
| */ | |
| /* | |
| * AngularJS directive for using i18next (http://jamuhl.github.com/i18next) |
| // config/passport.js | |
| // load all the things we need | |
| var LocalStrategy = require('passport-local').Strategy; | |
| var mysql = require('mysql'); | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
| /* global require */ | |
| var _ = require('lodash'); | |
| var browserify = require('browserify'); | |
| var browserSync = require('browser-sync'); | |
| var buffer = require('vinyl-buffer'); | |
| var del = require('del'); | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var minify = require('gulp-minify-css'); |
| function convertTimestamp(timestamp) { | |
| var d = new Date(timestamp * 1000), // Convert the passed timestamp to milliseconds | |
| yyyy = d.getFullYear(), | |
| mm = ('0' + (d.getMonth() + 1)).slice(-2), // Months are zero based. Add leading 0. | |
| dd = ('0' + d.getDate()).slice(-2), // Add leading 0. | |
| hh = d.getHours(), | |
| h = hh, | |
| min = ('0' + d.getMinutes()).slice(-2), // Add leading 0. | |
| ampm = 'AM', | |
| time; |
| function Ajax() { | |
| } | |
| Ajax.prototype.jsonpHandler = function (url, callback) { | |
| var scripturl = url + ((url.indexOf("?") !== -1) ? "&" : "?") + "callback=" + callback; | |
| document.write('<script src="' + scripturl + '"></script>'); | |
| return scripturl; | |
| }; | |
| Ajax.prototype.request = function (method, url, fallback, options) { |
| /** | |
| * IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
| * | |
| * @param string url | |
| * @param object callback | |
| * @param mixed data | |
| * @param null x | |
| */ | |
| function ajax(url, callback, data, x) { | |
| try { |