- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -p --local-infile __DATABASE_NAME__ | |
-- SQL | |
LOAD DATA LOCAL INFILE '__relative_path_to_file' INTO TABLE __TABLE_NAME__ FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (field1, field2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET foreign_key_checks = 0; | |
-- SQL commands here | |
SET foreign_key_checks = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- For XCode 5.1 plugins that don't work --> | |
<!-- 1. Edit the plugin's info.plist file --> | |
<!-- 2. Add the value A2E4D43F-41F4-4FB9-BB94-7177011C9AED to the key DVTPlugInCompatibilityUUIDs as shown below --> | |
<key>DVTPlugInCompatibilityUUIDs</key> | |
<array> | |
<string>A2E4D43F-41F4-4FB9-BB94-7177011C9AED</string> | |
</array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /Users/Shared/settings/sublime/Packages/PHP/PHP.tmLanguage | |
+++ /Users/DoubleBlue/Desktop/PHP.tmLanguage.original | |
@@ -265,7 +265,7 @@ | |
</dict> | |
</dict> | |
<key>match</key> | |
- <string>(?i)\b(new)\s+(\\)*(?:(\$[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)|(\w+))|(\w+)(?=::)</string> | |
+ <string>(?i)\b(new)\s+(?:(\$[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)|(\w+))|(\w+)(?=::)</string> | |
</dict> | |
<key>interpolation</key> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (NSString* family in [UIFont familyNames]) | |
{ | |
NSLog(@"%@", family); | |
for (NSString* name in [UIFont fontNamesForFamilyName: family]) | |
{ | |
NSLog(@" %@", name); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is equal to "0" then | |
do shell script "defaults write com.apple.finder AppleShowAllFiles 1" | |
else | |
do shell script "defaults write com.apple.finder AppleShowAllFiles 0" | |
end if | |
tell application "Finder" to quit | |
delay 2 | |
launch application "Finder" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod -RN ~/Library/Preferences |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# initial Computer setup | |
# Tim Westbaker | |
# Created 2-15-14 | |
# Git configuration | |
g config --global alias.b branch | |
g config --global alias.a add | |
g config --global alias.c commit | |
g config --global alias.co checkout | |
g config --global alias.d diff |