Skip to content

Instantly share code, notes, and snippets.

View jstoudt's full-sized avatar

Jason Stoudt jstoudt

View GitHub Profile
@addyosmani
addyosmani / limitLoop.js
Last active April 25, 2024 19:10
Limit the frame-rate being targeted with requestAnimationFrame
/*
limitLoop.js - limit the frame-rate when using requestAnimation frame
Released under an MIT license.
When to use it?
----------------
A consistent frame-rate can be better than a janky experience only
occasionally hitting 60fps. Use this trick to target a specific frame-
rate (e.g 30fps, 48fps) until browsers better tackle this problem
@iaian
iaian / sublimeText2_contextMenu.reg
Last active January 15, 2019 15:46
Add SublimeText 2 context menu to windows explorer. If item is folder, context menu has option "open in sublimetext project". If is file, "open in sublime text 2" option is added to context menu. Tested on windows 7
Windows Registry Editor Version 5.00
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="Open Folder as Sublime Project"
"Icon"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]