Skip to content

Instantly share code, notes, and snippets.

View antife-yinyue's full-sized avatar
🔞

神仙 antife-yinyue

🔞
View GitHub Profile
class Path {
static func basename(path: String) -> String {
return ((path as NSString).lastPathComponent as NSString).stringByDeletingPathExtension
}
static func dirname(path: String) -> String {
return (path as NSString).stringByDeletingLastPathComponent
}
ps -ef | grep -v grep | grep OOXX | awk '{print$2}' | xargs kill -9
function get(uri) {
return http(uri,'GET');
}
function post(uri,data) {
if(typeof data === 'object' && !(data instanceof String || (FormData && data instanceof FormData))) {
var params = [];
for(var p in data) {
if(data[p] instanceof Array) {
for(var i = 0; i < data[p].length; i++) {
params.push( encodeURIComponenet(p) + '[]=' + encodeURIComponenet(data[p][i]);
var parser = function(url) {
var a = document.createElement('a');
a.href = url;
var search = function(search) {
if(!search) return {};
var ret = {};
search = search.slice(1).split('&');
for(var i = 0; i < search.length; i++) {
_oo0oo_
o8888888o
88" . "88
(| -_- |)
0\ = /0
___/`---'\___
.' \\| |-- '.
/ \\||| : |||-- \
/ _||||| -:- |||||- \
| | \\\ - --/ | |
# Symbols:
# ☀ ✹ ☄ ♆ ♀ ♁ ♐ ♇ ♈ ♉ ♚ ♛ ♜ ♝ ♞ ♟ ♠ ♣ ⚢ ⚲ ⚳ ⚴ ⚥ ⚤ ⚦ ⚒ ⚑ ⚐ ♺ ♻ ♼ ☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷
# ✡ ✔ ✖ ✚ ✱ ✤ ✦ ❤ ➜ ➟ ➼ ✂ ✎ ✐ ⨀ ⨁ ⨂ ⨍ ⨎ ⨏ ⨷ ⩚ ⩛ ⩡ ⩱ ⩲ ⩵ ⩶ ⨠
# ⬅ ⬆ ⬇ ⬈ ⬉ ⬊ ⬋ ⬒ ⬓ ⬔ ⬕ ⬖ ⬗ ⬘ ⬙ ⬟ ⬤ 〒 ǀ ǁ ǂ ĭ Ť Ŧ     
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[cyan]%}git:(%{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[cyan]%})"
@antife-yinyue
antife-yinyue / SassMeister-input.scss
Last active March 15, 2017 05:06
Generated by SassMeister.com.
@import 'base.sass/+';
$z-layers: (
'goku': 9001,
'shoryuken': 8000,
'modal': (
'base': 500,
'close': 100,
'header': 50,
'footer': 10
@import 'base.sass/+';
// Specify supports
$browser-supports: parse-rules('last 5 versions');
.fn-clear {
@include clearfix;
}
.fn-left {
#!/bin/bash
cd /usr/local/lib
sudo rm -rf node node_modules
cd /usr/local/bin/
sudo rm -f node npm
cd $HOME
sudo rm -rf .npm