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
from google.appengine.api import users | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
class MainPage(webapp.RequestHandler): | |
def get(self): | |
user = users.get_current_user() | |
if user: | |
self.response.headers['Content-Type'] = 'text/plain' |
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
sudo find . -type d -name .svn -depth -exec rm -rf {} \; |
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
<!DOCTYPE HTML> | |
<html lang="ko"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi"> | |
<title>sample</title> | |
<style type="text/css"> | |
input {width:300px} |
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
var romeoh = {} | |
romeoh.webdb = {} | |
romeoh.webdb.db = null | |
romeoh.webdb.open = function() { | |
var dbSize = 5 * 1024 * 1024; // 5MB | |
romeoh.webdb.db = openDatabase("test", "1.0", "Todo manager", dbSize); | |
} | |
romeoh.webdb.onError = function(tx, e) { |
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 defer> | |
function gate(fn, number_of_calls_before_opening) { | |
console.log(arguments.callee) | |
return function() { | |
arguments.callee._call_count = (arguments.callee._call_count || 0) + 1; | |
if (arguments.callee._call_count >= number_of_calls_before_opening) | |
fn.apply(null, arguments); | |
}; | |
} | |
var f = gate(function(arg) { |
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
document.querySelector('#ele').style['webkitTransform'] = 'translate3d(100px,0,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
/******************************************** | |
* mpui.js | |
* morpheus UI Framework | |
* Author : 백국경 ([email protected]) | |
* Copyright © 2013 Uracle Co., Ltd. | |
* 166 Samseong-dong, Gangnam-gu, Seoul, 135-090, Korea All Rights Reserved. | |
* 베타버전입니다. 버그는 [email protected]로 보고해주세요. | |
*******************************************/ | |
(function(g, d, w, undefined) { |
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
/******************************************** | |
* mpui.js | |
* morpheus UI Framework | |
* Author : 백국경 ([email protected]) | |
* Copyright © 2013 Uracle Co., Ltd. | |
* 166 Samseong-dong, Gangnam-gu, Seoul, 135-090, Korea All Rights Reserved. | |
* 베타버전입니다. 버그는 [email protected]로 보고해주세요. | |
*******************************************/ | |
(function(g, d, w, undefined) { |
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
function onInitPage(){ | |
console.log(toHex('김')) | |
console.log(toHex('K')) | |
} | |
function toHex(str){ | |
var hex = ''; | |
for (var i=0; i<str.length; i++){ | |
hex += str.charCodeAt(i).toString(16); | |
} | |
return hex; |
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
// by value | |
var ref_1 = "string..."; | |
var test_1 = ref_1; | |
ref_1 = "none"; | |
console.log(test_1) | |
// by value : Wrapper Object (String, Number, Boolean) | |
var ref_2 = new String("hello world"); | |
var test_2 = ref_2; | |
ref_2 = new String("world"); |