###Finder
Keys:
Desc | Key |
---|---|
Move here | Option+CMD+V |
Commands:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
###Finder
Keys:
Desc | Key |
---|---|
Move here | Option+CMD+V |
Commands:
if(parent.frames.length == 0) { | |
// AW: always be inside a Colnect page | |
var dst = location.href.replace(/\/forums/, '/forum').replace(/\.php[\?]?/, '!'); | |
top.location.replace(dst); | |
} else { | |
try { | |
url = parent.location.href; | |
pos = url.search(/\/\w\w(\W|$)/); | |
lang = url.substring(pos+1,pos+3); | |
dst = location.href.replace(/\/forums/, '/'+lang+'/forum').replace(/\.php[\?]?/, '!').replace(/lang=\w\w&?/, ''); |
(?bhttp://[-A-Za-z0-9+&@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#/%=~_()|] |
#!/usr/bin/env bash | |
# author: rankun203@gmail.com | |
mkdir -p ~/tmp/dcim | |
echo "> Pull all the photos from my Phone?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) echo '> Pulling'; adb pull /storage/sdcard0/DCIM/Camera/ ~/tmp/dcim; echo '> Done'; break;; |
lorem ipsum is a filler text commonly used to demonstrate the graphic elements of a document or visual presentation.
> computer
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../ace-element/ace-element.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
/** | |
* Created by rankun203 on 2/5/15. | |
* <p/> | |
* 初步支持英文符号!http://bbs.csdn.net/topics/230081892 | |
* <p/> | |
* 你说什么呢?我不知道什么你说的什么 | |
* <p/> | |
* <pre> | |
* 么你知呢你 | |
* 说道?说 |
This shell app shows the dependencies
A Pen by Marcy Sutton on CodePen.
/** | |
* 根据文件名生成文件的 key | |
* @param fileName | |
* @returns {string} | |
*/ | |
function genFileKey(fileName) { | |
var fileKey = ''; | |
// 将文件名中的有效字符提取出来作为文件 key | |
var realFileName = fileName.match(/[\w|\.]/g).join(''); |