Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.
- Go to
settings. - Search for
live templates. - Under the javascript section you should be able to manage your templates.
| #!/bin/bash | |
| # | |
| # Enable TRIM support for 3rd Party SSDs. Works for Mountain Lion, should work on earlier OSes too. | |
| # Tested on 10.8.2, 10.8.3, 10.8.5, 10.9.0-10.9.5, 10.10.0-10.10.1, 10.10.4 | |
| # | |
| # Run this script at your own risk, whether on 10.10 or earlier. | |
| # | |
| # This script works on MacOS 10.10-10.10.1 (Yosemite) but it has significant system security repercussions. | |
| # To use it you must disable kext signing on your machine. This makes it easier for | |
| # malware to infect your machine by disabling the feature which would detect unsigned |
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
A list of Sketch plugins hosted at GitHub, in no particular order.
| var rawSites = { | |
| 'programming': [ | |
| 'http://blog.codinghorror.com/', | |
| 'http://thedailywtf.com/', | |
| 'http://www.hanselman.com/blog/', | |
| 'http://code.tutsplus.com', | |
| 'https://news.ycombinator.com/', | |
| 'http://www.reddit.com/r/programming/', | |
| 'http://codebetter.com', | |
| 'http://android-developers.blogspot.com/', |
For pupil: all binary can be downloaded http://pan.baidu.com/s/1hqH2Pko
After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.
For programmer:
| VERSION | PLATFORM | OFFSET | ORIGINAL | CRACKED |
|---|
| # GIT heart FZF | |
| # ------------- | |
| is_in_git_repo() { | |
| git rev-parse HEAD > /dev/null 2>&1 | |
| } | |
| fzf-down() { | |
| fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
| } |