Skip to content

Instantly share code, notes, and snippets.

View Snger's full-sized avatar

Sim Jiason Snger

View GitHub Profile
@Snger
Snger / 0_reuse_code.js
Created August 18, 2014 08:49
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Snger
Snger / javascript_resources.md
Created August 18, 2014 08:49 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@Snger
Snger / css_resources.md
Created August 18, 2014 08:49 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

Install cask that extends the brew command :

brew install phinze/cask/brew-cask

Install calibre using cask :

brew cask install calibre
@Snger
Snger / DISS.conf
Last active October 7, 2015 05:28 — forked from janlay/README.md
config for Surge.app
# config for Surge.app
[General]
# warning, notify, info, verbose
loglevel = notify
# bypass HTTP persistent connections
# bypass = e.crashlytics.com
[Proxy]
# http, https, socks5
@Snger
Snger / tmux-cheatsheet.markdown
Last active May 4, 2017 04:48 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
" Settings
let blacklists = ["https://feedly.com/*","http://devdocs.io/*","https://www.shortcutfoo.com/*","https://sourcegraph.com/*","https://wasm-cn.org/*","https://yun.kujiale.com/*","http://erp.16888.hk/*","http://192.168.20.232/*"]
let searchengine baidu = "https://baidu.com/s?wd="
let searchengine zhihu = "https://zhihu.com/search?type=content&q="
let searchengine github = "https://github.com/search?q="
let searchengine stackoverflow = "https://stackoverflow.com/search?q="
let completionengines = ["duckduckgo", "github", "stackoverflow", "baidu", "zhihu", "wikipedia", "google-maps"]
let defaultengine = "duckduckgo"
let searchalias g = "github"
let searchalias d = "duckduckgo"
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
@Snger
Snger / boxstarter-config-script.txt
Last active October 13, 2017 01:19
Boxstarter config script
# Boxstarter config script
# https://gist.github.com/Snger/5ebcff7365d50521b928867b048004c5
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
# chocolatey
# cinst chocolatey
# cinst chocolateygui
@Snger
Snger / .svimrc
Last active November 12, 2017 12:17
.svimrc gist id: ff62150eb7118c75c1d2424138246524
" Settings
" set nosmoothscroll
let homeurl = "https://duckduckgo.com";
" let mapleader = ","
let newtaburl = "https://duckduckgo.com"
let blacklists = ["*://feedly.com/*", "*://devdocs.io/*", "*://www.shortcutfoo.com/*", "*://sourcegraph.com/*", "*://wasm-cn.org/*"]
" Shortcuts
map "down" scrollDown
map "up" scrollUp