Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # Copy the following and place it a file called Leiningen.sublime-build in the Sublime user packages folder (~/.config/sublime-text-2/Packages/User on Linux). | |
| # Select this as the build system for the project using Tools/Build System/Leiningen. | |
| # You can then bring up the Sublime Command Palette (ctrl+shift+P on Windows/Linux) and issue any of the commands # (build, documentation, clean, run, test, etc). By default, build is bound to ctrl+b and run to ctrl+shift+b. | |
| { | |
| "cmd": ["lein", "compile", ":all"], | |
| "working_dir": "$project_path", | |
| "variants": [ | |
| { "cmd": ["lein", "marg", "-m", "-d", "docs"], |
| #! /usr/bin/env python | |
| # coding=utf-8 | |
| __author__ = 'jszhou' | |
| from bottle import * | |
| import hashlib | |
| import xml.etree.ElementTree as ET | |
| import urllib2 | |
| # import requests | |
| import json |
| # put this in your .bash_profile | |
| if [ $ITERM_SESSION_ID ]; then | |
| export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
| fi | |
| # Piece-by-Piece Explanation: | |
| # the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
| # iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
| # the $PROMPT_COMMAND environment variable is executed every time a command is run | |
| # see: ss64.com/bash/syntax-prompt.html |
| { | |
| "alignment_chars" : ["=", ":"] | |
| } |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| import socket, ssl, json, struct | |
| import binascii | |
| def Payload(alert='', badge=1, data={}): | |
| payload = { | |
| 'aps': { | |
| 'alert':alert, | |
| 'sound':'k1DiveAlarm.caf', | |
| 'badge':badge, | |
| }, |
| body { | |
| font: 100%/1.25 sans-serif; | |
| color: #636363; | |
| padding: 1em; | |
| } | |
| table { | |
| width: 100%; | |
| margin: 0; | |
| border-top: 1px solid #e4e2e8; |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!