支持在印象笔记中,按快捷键(ctrl-alt-k)插入待办事项
原作者:Jason Stillwell
经由Oaker修改,支持印象笔记。根据本脚本,也可为其它编辑功能绑定快捷键。
This was moved to https://github.com/jtyr/ansible-ini_inventory |
import jenkins.model.* | |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.plugins.credentials.impl.* | |
import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
import org.jenkinsci.plugins.plaincredentials.* | |
import org.jenkinsci.plugins.plaincredentials.impl.* | |
import hudson.util.Secret | |
import hudson.plugins.sshslaves.* |
支持在印象笔记中,按快捷键(ctrl-alt-k)插入待办事项
原作者:Jason Stillwell
经由Oaker修改,支持印象笔记。根据本脚本,也可为其它编辑功能绑定快捷键。
#!/bin/sh | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
[Background] | |
Color=48,10,36 | |
MaxRandomHue=0 | |
MaxRandomSaturation=0 | |
MaxRandomValue=0 | |
[BackgroundIntense] | |
Color=89,18,67 | |
[Color0] |
/* gnome-terminal */ | |
TerminalScreen { | |
-TerminalScreen-background-darkness: 0.95; | |
background-color: #300a24; | |
color: #fff; | |
} | |
TerminalWindow, | |
TerminalWindow.background { | |
background-image: none; |
# Settings -> Applications -> Manage Applications -> Market -> Clear Cache -> Force Stop (this button will be enabled if your Market is still running) -> OK | |
# Open a console and type the following command (for *nix user, remember to use sudo to avoid permission error): | |
adb shell setprop gsm.sim.operator.numeric 310260 | |
adb shell setprop gsm.operator.numeric 310260 | |
adb shell getprop gsm.sim.operator.iso-country us | |
adb shell getprop gsm.operator.iso-country us |
#!/bin/sh | |
# | |
# Hook used to indent all source files before commiting | |
# | |
INDENT="$(git config hooks.indent)" | |
if test ! -x "$INDENT" | |
then | |
echo "Unable to find indent executable on the configuration." | |
echo |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
import re | |
from hashlib import md5 | |
def gfm(text): | |
# Extract pre blocks. | |
extractions = {} | |
def pre_extraction_callback(matchobj): | |
digest = md5(matchobj.group(0)).hexdigest() | |
extractions[digest] = matchobj.group(0) | |
return "{gfm-extraction-%s}" % digest |