Mac OS X
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
| // Kudos to Grumdrig | |
| // http://stackoverflow.com/questions/1207008/how-do-i-lock-the-orientation-to-portrait-mode-in-a-iphone-web-application | |
| $(document).ready(function () { | |
| function reorient(e) { | |
| var portrait = (window.orientation % 180 == 0); | |
| $("body > div").css("-webkit-transform", !portrait ? "rotate(-90deg)" : ""); | |
| } | |
| window.onorientationchange = reorient; | |
| window.setTimeout(reorient, 0); |
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
Show hidden characters
| { | |
| // Settings | |
| "passfail" : false, // Stop on first error. | |
| "maxerr" : 100, // Maximum errors before stopping. | |
| // Predefined globals whom JSHint will ignore. | |
| "browser" : true, // Standard browser globals e.g. `window`, `document`. | |
| "node" : true, |
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
| # Centos 설치 후 | |
| # -------------- | |
| # 한글 설정 | |
| # /etc/sysconfig/i18n 파일에서 다음을 설정 한다. | |
| LANG="ko_KR.UTF-8" | |
| # 인터넷 접속여부 확인 | |
| ping -c3 google.com |
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
| // node.js proxy server example for adding CORS headers to any existing http services. | |
| // yes, i know this is super basic, that's why it's here. use this to help understand how http-proxy works with express if you need future routing capabilities | |
| var httpProxy = require('http-proxy'), | |
| express = require('express'); | |
| var proxy = new httpProxy.RoutingProxy(); | |
| var proxyOptions = { | |
| host: 'devpc.baedali.co.kr', |
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
| $ = jQuery | |
| queues = {} | |
| running = false | |
| queue = (name) -> | |
| name = 'default' if name is true | |
| queues[name] or= [] | |
| next = (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
| #---------------------------------------------------------------------------- | |
| # Ignore these files when commiting to a git repository | |
| # | |
| # The original version of this file is found here: | |
| # https://github.com/fortuity/rails3-gitignore/raw/master/gitignore.txt | |
| # | |
| # Corrections? Improvements? Create a GitHub issue: | |
| # https://github.com/fortuity/rails3-gitignore/issues | |
| #---------------------------------------------------------------------------- |
NewerOlder