create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
| 原帖地址: http://topic.csdn.net/u/20110113/19/b0d5d506-4307-428b-a61d-7974aa66a2da.html | |
| 首先要说明的是:这里介绍的方法都是大部分是本人“悟”出来的,所以网上难有流传! | |
| 好方法不能自己私藏,否则就白忙乎这几天了,分享给有需要的朋友们。如果有转载,敬请注明来自*CSDN老邓*作品。 | |
| 呵呵,给自己打广告,实在是无耻之极,权当无聊之时打字之用。 | |
| 欢迎流传,为最优秀的分布式版本管理系统Git做宣传!! | |
| 步骤: | |
| 1. 下载:http://loaden.googlecode.com/files/gitconfig.7z | |
| 2. 解压到:<MsysGit安装目录>/cmd/,例如:D:\Program Files\Git\cmd |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| function convertMS(ms) { | |
| var d, h, m, s; | |
| s = Math.floor(ms / 1000); | |
| m = Math.floor(s / 60); | |
| s = s % 60; | |
| h = Math.floor(m / 60); | |
| m = m % 60; | |
| d = Math.floor(h / 24); | |
| h = h % 24; | |
| return { d: d, h: h, m: m, s: s }; |
| (function() { | |
| function DateDiff(date1, date2) { | |
| this.days = null; | |
| this.hours = null; | |
| this.minutes = null; | |
| this.seconds = null; | |
| this.date1 = date1; | |
| this.date2 = date2; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| /* | |
| * Based on: http://www.quirksmode.org/js/cookies.html | |
| * and https://github.com/wojodesign/local-storage-js/blob/master/storage.js | |
| * and https://gist.github.com/350433 | |
| * License: http://www.opensource.org/licenses/MIT | |
| */ | |
| (function(window) { | |
| 'use strict'; | |
| window.sessionStorage = window.sessionStorage || { |
| IE6 Only | |
| ================== | |
| _selector {...} | |
| IE6 & IE7 | |
| ================== | |
| *html or { _property: } | |
| IE7 Only | |
| ================== |
Code examples from this stack overflow answer.
| app.directive('backButton', function(){ | |
| return { | |
| restrict: 'A', | |
| link: function(scope, element, attrs) { | |
| element.bind('click', goBack); | |
| function goBack() { | |
| history.back(); | |
| scope.$apply(); |