This file contains 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
var orientation = (window.innerHeight > window.innerWidth)? "portrait" : "landscape"; | |
$(window).on("orientationchange resize", checkOrientation); | |
var checkOrientation = function() { | |
var newOrientation = (window.innerHeight > window.innerWidth)? "portrait" : "landscape"; | |
if(newOrientation == orientation) { return; } // no change | |
setInterval(checkOrientation, 1000); // recheck after 1 second for Android devices | |
orientation = newOrientation; | |
if(orientation == "portrait") { | |
// do something | |
} |
This file contains 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
var orientation = (window.innerHeight > window.innerWidth)? "portrait" : "landscape"; | |
$(window).on("orientationchange resize", checkOrientation); | |
var checkOrientation = function() { | |
var newOrientation = (window.innerHeight > window.innerWidth)? "portrait" : "landscape"; | |
if(newOrientation == orientation) { return; } // no change | |
orientation = newOrientation; | |
if(orientation == "portrait") { | |
// do something | |
} | |
else { // portrait |
This file contains 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
# Critical default settings: | |
disable_system_gems | |
disable_rubygems | |
bundle_path ".gems/bundler_gems" | |
# List gems to bundle here: | |
gem "appengine-apis", "~>0.0.25" | |
gem "appengine-rack", "~>0.0.13" | |
gem "sinatra", "1.2.6" | |
gem "sinatra-reloader" |
This file contains 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
require 'rubygems' | |
%w(active_support active_record i18n).each{ |g| require g } | |
module Skills | |
def main | |
{ | |
programming_languages: %w(Ruby Javascript Golang Bash), | |
development_frameworks: %w(Rails Node/Express.js Sinatra Grape React), | |
data_stores: %w(PostgreSQL MySQL Redis Cassandra Memcached), |