Skip to content

Instantly share code, notes, and snippets.



A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

ebidel / coverage.js
Last active Feb 2, 2022
CSS/JS code coverage during lifecycle of page load
View coverage.js
Moved to
andyyou /
Last active Oct 5, 2021
Rails 5.2 with webpacker, bootstrap, stimulus starter

Rails 5.2 with webpacker, bootstrap, stimulus starter

This gist will collects all issues we solved with Rails 5.2 and Webpacker

Create Project

# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new  --webpack=stimulus --database=postgresql --skip-coffee --skip-test



None of the string methods modify this – they always return fresh strings.

  • charAt(pos: number): string ES1

    Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).

codingoutloud / .gitignore
Last active Oct 9, 2016
Git Ignore for ASP.NET MVC / Windows Azure development
View .gitignore
# .gitignore for ASP.NET MVC / Windows Azure development
# Original file: by @codingoutloud
## Github doc on ignoring files:
## The man page for .gitignore (referenced by github):
## Of possible interest (can be complex):
# Troubleshooting
# 1. If you add a .gitignore file to an existing repo (or significantly change one), you may want
# to force it to act as though the new/updated .gitignore was in force the whole time.
sebastianhoitz / gist:2007824
Created Mar 9, 2012
My Sublime Text 2 Key Bindings
View gist:2007824
// easy insert mode exiting
{ "keys": ["j", "j"], "command": "exit_insert_mode",
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }