Skip to content

Instantly share code, notes, and snippets.

🙂
Focusing

Kelly Apollo kelly-apollo

🙂
Focusing
Block or report user

Report or block kelly-apollo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kelly-apollo
kelly-apollo / tampermonkey-fontawesome-copy-icon-name.user.js
Last active Jun 4, 2018
Fontawesome click icon to copy icon name to clipboard
View tampermonkey-fontawesome-copy-icon-name.user.js
// ==UserScript==
// @name fontawesome copy icon name
// @namespace https://gist.github.com/kelly-apollo/1173743d2884dce0b8b1dd4b60125f23
// @version 0.2
// @description try to take over the world!
// @author Kelly Apollo
// @match http://fontawesome.io/icons/
// @grant GM_setClipboard
// ==/UserScript==
@kelly-apollo
kelly-apollo / watch.sh
Last active Jul 4, 2017 — forked from mikesmullin/watch.sh
watch is a linux bash script to monitor file modification recursively and execute bash commands as changes occur
View watch.sh
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <mike@smullindesign.com>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#
@kelly-apollo
kelly-apollo / tampermonkey-redmine-commit-text.user.js
Last active May 18, 2017
concatenate redmine title as commit text
View tampermonkey-redmine-commit-text.user.js
// ==UserScript==
// @name redmine-issue-text
// @namespace https://gist.github.com/kelly-apollo/3943a049fd9cebb2ad5abaa6327a9245
// @version 0.2.2
// @description try to take over the world!
// @author Kelly Apollo
// @match *://redmine.gizwits.com/*
// @match *://redmine.xtremeprog.com/*
// ==/UserScript==
/* jshint -W097 */
@kelly-apollo
kelly-apollo / battery.cycle.sh
Created Mar 12, 2016
retrieve battery cycle in command line on Mac OS
View battery.cycle.sh
system_profiler SPPowerDataType | grep Cycle | grep -oE '[0-9]+'
@kelly-apollo
kelly-apollo / tampermonkey-redmine-issue-link.user.js
Last active May 18, 2017
为gitlab上的任务分支添加链接按钮到redmine
View tampermonkey-redmine-issue-link.user.js
@kelly-apollo
kelly-apollo / tabclosetoleft.vim
Created Nov 2, 2015
Vim close tab page and focus on the left
View tabclosetoleft.vim
let s:prevtabnum=tabpagenr('$')
augroup TabClosed
autocmd! TabEnter * :if tabpagenr('$')<s:prevtabnum && tabpagenr()>1
\ | tabprevious
\ |endif
\ |let s:prevtabnum=tabpagenr('$')
augroup END
@kelly-apollo
kelly-apollo / .eshintrc
Created Sep 5, 2015
个人偏好的eslint配置,带中文注释
View .eshintrc
# 建议:官方文档对每个规则有简单易懂的例子说明,有时间的同学可以查阅一遍。
# 官方文档 http://eslint.org/docs/rules/
extends: 'eslint:recommended'
# 规则按照首字母在字母表升序排序
rules:
# 单行代码块大括号后需要一个空格
block-spacing: 2
@kelly-apollo
kelly-apollo / .scss-lint.yml
Last active Feb 26, 2019
个人偏好的scss-lint配置,带中文注释
View .scss-lint.yml
# 建议:官方文档对每个规则有简单易懂的例子说明,有时间的同学可以查阅一遍。
# 官方文档 https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md
# 默认配置 https://github.com/brigade/scss-lint/blob/master/config/default.yml
# 版本:0.41.0
# 以下是个人偏好配置
scss_files: "**/*.scss"
plugin_directories: ['release']
@kelly-apollo
kelly-apollo / unstable_datetime.py
Last active Aug 29, 2015
列出指定时区从1970年01月01日至今,时区历史改动日期,以及夏令开始和结束日期。
View unstable_datetime.py
# coding=utf8
"""
# 功能
列出指定时区从1970年01月01日至今,时区历史改动日期,以及夏令开始和结束日期。
# 时区改动
View target_blank--external.js
/**
* Open external links in new tab/window
*/
// All http:// links should open in new tab/window. Internal links are relative.
var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; i++) {
anchor = anchors[i];
You can’t perform that action at this time.