-
先删除后添加
- git remote rm origin
- git remote add origin [url]
-
直接修改config文件
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
/** | |
* | |
* @param point 判断点 | |
* @param points 多边形的顶点集合 | |
* @return | |
*/ | |
public boolean pointInPoly(Point point ,Point[] points){ | |
boolean isContains=false; | |
int end=points.length-1; | |
for (int i=0;i<points.length;i++){ |
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
var os=require('os'), | |
iptable={}, | |
ifaces=os.networkInterfaces(); | |
for (var dev in ifaces) { | |
ifaces[dev].forEach(function(details,alias){ | |
if ((details.family=='IPv4') && (details.internal == false)) { | |
// iptable[dev+(alias?':'+alias:'')]=details.address; | |
iptable['localIP'] = details.address; | |
} |
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
.position(@propVal: absolute){ | |
position: @propVal; | |
left: 0; | |
right: 0; | |
top: 0; | |
} | |
.sticky{ | |
.position(-webkit-sticky); | |
} |
HTML5 history API只包括2个方法:history.pushState()和history.replaceState(),以及1个事件:window.onpopstate。
- history.pushState()
- history.replaceState()
- window.onpopstate
参考:https://developer.mozilla.org/zh-CN/docs/Web/API/History/pushState
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
document.addEventListener("DOMContentLoaded", function() { | |
// ...代码... | |
}, false); | |
window.addEventListener("load", function() { | |
// ...代码... | |
}, false); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
* { |
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 gulp = require('gulp'), | |
watch = require('gulp-watch'), | |
prefixer = require('gulp-autoprefixer'), | |
uglify = require('gulp-uglify'), | |
less = require('gulp-less'), | |
requirejsOptimize = require('gulp-requirejs-optimize'), | |
sourcemaps = require('gulp-sourcemaps'), | |
rigger = require('gulp-rigger'), |
-
选择“系统偏好设置”中的“用户与群组”
-
选择“登陆项”选项卡
-
勾选不需要的开机启动项,然后点击“-”按钮删除
-
如果要增加开机启动项,点击“+”按钮,选择需要开自己启动的项目就行
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
// 1. Go to https://twitter.com/following. | |
// 2. Keep scrolling to the bottom repeatedly until all your followers are loaded. | |
// 3. Run this in your console. | |
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) { | |
button.click(); | |
}); |
NewerOlder