Skip to content

Instantly share code, notes, and snippets.

All the following commands use hyper plus the key listed:

  • enter - Default layout (edit in init.lua)
  • up - Make current window fullscreen
  • down - Place current window in center of screen
  • right - place current window in right half
  • left - place current window in left half
  • a - Quick app switcher
  • j - Quick window switcher (focused app)
  • d - Move current window to other screen
@jvandyke
jvandyke / javascript_resources.md
Last active August 29, 2015 14:14 — 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
@jvandyke
jvandyke / 0_reuse_code.js
Last active August 29, 2015 14:14
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
@jvandyke
jvandyke / in-browser memory stats for web app
Last active August 29, 2015 14:14
Show continuous memory profile for JavaScript application
Copied from https://github.com/paulirish/memory-stats.js
## memory-stats.js
Like [stats.js](https://github.com/mrdoob/stats.js/) but for JS memory
[@jeromeetienne](https://github.com/jeromeetienne/), inspired by mrdoob's stats.js code, wrote this as part of [tquery](https://github.com/jeromeetienne/tquery). I've now promoted it to a standalone repo and cleaned it all up.
![image](http://i.imgur.com/eUCFcAH.gif)
@jvandyke
jvandyke / button.html
Created February 26, 2014 22:15
Replace text in an element with CSS
<button class="element">Old text</button>
@jvandyke
jvandyke / scrollwatch.coffee
Created March 13, 2013 14:55
Scrollspy for Coffeescript and not for Bootstrap
$ = jQuery
$.fn.scrollwatch = () ->
# Cache selectors
lastId = undefined
topMenu = $(this)
isInitialized = topMenu.data('scrollwatch') is true
topMenuHeight = 0 #topMenu.outerHeight() + 15
# All list items
@jvandyke
jvandyke / README.md
Last active December 11, 2015 18:58 — forked from mbostock/.block
@jvandyke
jvandyke / .gitconfig
Last active January 27, 2023 08:11
Use PHPStorm/WebStorm for git diff and merge tools
# ~/.gitconfig
# Add this to your global git configuration file
# Change phpstorm to webstorm, if you use that.
# Diff and merge tool changes
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...`
[merge]
tool = phpstorm
[diff]
tool = phpstorm
@jvandyke
jvandyke / .gitignore
Created December 14, 2012 15:30
Include all test files in Testacular for RequireJS
node_modules
testdeps.js
@jvandyke
jvandyke / showcrons.sh
Created July 2, 2012 13:43
Show crons for all users, well-formatted
#!/bin/bash
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")
# Given a stream of crontab lines, exclude non-cron job lines, replace