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
[ | |
[ | |
"International Date Line West", | |
"GMT-11:00", | |
"(GMT-11:00) International Date Line West" | |
], | |
[ | |
"Midway Island", | |
"GMT-11:00", | |
"(GMT-11:00) Midway Island" |
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
<?php | |
// @reference: http://wordpress.org/plugins/json-api/ | |
// @from json-api/models/post.php | |
class JSON_API_Post { | |
// Note: | |
// JSON_API_Post objects must be instantiated within The Loop. | |
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
// Add a custom controller | |
add_filter('json_api_controllers', 'add_my_controller'); | |
function add_my_controller($controllers) { | |
$controllers[] = 'Korkmaz'; | |
return $controllers; | |
} | |
// Register the source file for our controller | |
add_filter('json_api_korkmaz_controller_path', 'korkmaz_controller_path'); | |
function korkmaz_controller_path($default_path) { |
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
### | |
Modernizr test for retina / high resolution / high pixel density | |
@ref https://gist.github.com/joaocunha/7675924 | |
@author Joao Cunha | |
@license MIT | |
### | |
Modernizr.addTest 'hires', -> | |
# starts with default value for modern browsers |
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
# ---------- | |
# Jasmine Server | |
# ---------- | |
grunt.registerTask 'jasmine-server', 'start web server for jasmine tests in browser', -> | |
grunt.task.run 'jasmine:tests:build' | |
grunt.event.once 'connect.tests.listening', (host,port) -> | |
specRunnerUrl = 'http://' + host + ':' + port + '/_SpecRunner.html' | |
grunt.log.writeln 'Jasmine specs available at: ' + specRunnerUrl | |
require('open')(specRunnerUrl) | |
grunt.task.run 'connect:tests:keepalive' |
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
{ | |
"author_name": "Ralph Crisostomo", | |
"author_email": "[email protected]", | |
"author_url": "http://ralphcrisostomo.net/" | |
} |
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
# source: http://mashable.com/2013/10/23/clean-install-os-x-mavericks/ | |
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction |
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
# source: http://macorios.com/blog/2013-2-28-sync-moom-between-two-or-more-macs | |
# Copy this file to the new mac. | |
~/Library/Preferences/com.manytricks.Moom.plist.lockfile |
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
git rm -r --cached . | |
git add . | |
git commit -m "fixed untracked files" |
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
<script type="text/javascript"> | |
// Avoid `console` errors in browsers that lack a console. | |
if (!(window.console && console.log)) { | |
(function() { | |
var noop = function() {}; | |
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn']; | |
var length = methods.length; | |
var console = window.console = {}; | |
while (length--) { | |
console[methods[length]] = noop; |