Skip to content

Instantly share code, notes, and snippets.

{
"name": "Eunjae Lee",
"noshow": false,
"albuminfo": {
"count": 10
}
}
@eunjae-lee
eunjae-lee / parcelable.html
Created June 4, 2014 14:23
Android - parcelable model class generator
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<title>parcelable</title>
</head>
<body>
<input type="text" id="className" placeholder="className" value="" />
<textarea id="textarea" style="width:600px; height:400px;"></textarea>
<input type="button" id="button" value="generate!" />
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
@eunjae-lee
eunjae-lee / gist:9922beeafe26a4b57b7d
Created February 26, 2015 02:59
Slate Configuration File
// https://github.com/jigish/slate
// https://github.com/jigish/slate/wiki/JavaScript-Configs
// https://github.com/jigish/dotfiles/blob/master/slate.js
S.cfga({
"defaultToCurrentScreen" : true,
"secondsBetweenRepeat" : 0.1,
"checkDefaultsOnLoad" : true,
"focusCheckWidthMax" : 3440,
"orderScreensLeftToRight" : true
@eunjae-lee
eunjae-lee / timer.py
Last active August 29, 2015 14:16
Timer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Foundation import NSUserNotification
from Foundation import NSUserNotificationCenter
from Foundation import NSUserNotificationDefaultSoundName
from optparse import OptionParser
import time
# usage : ./timer.py -t "5s" -m "This is an alarm"
@eunjae-lee
eunjae-lee / hogan-express-adapter
Created July 18, 2012 16:59
hogan-express adapter
###
hogan-express.coffee
###
exports.init = (hogan, fs) ->
return (path, options, fn) ->
fs.readFile path, 'utf8', (err, str) ->
return fn(err) if err
result = hogan.compile(str).render(options)
fn null, result
@eunjae-lee
eunjae-lee / gist:3491069
Created August 27, 2012 18:22
Get WordPress Posts via XmlRcp from JavaScript
var wpService = new rpc.ServiceProxy("http://blahblah/xmlrpc.php", {
asynchronous: true,
protocol: "XML-RPC",
sanitize: false,
methods: ['wp.getPosts']
});
rpc.setDateRegexp(wpService, /^(\d\d\d\d)(\d\d)(\d\d)T(\d\d):(\d\d):(\d\d)$/);
wpService.wp.getPosts({
@eunjae-lee
eunjae-lee / guide.md
Last active December 3, 2015 11:31
밸류포션 엔딩 인터스티셜 연동 가이드

엔딩 인터스티셜 연동 가이드

이 문서에서는 안드로이드에서 Back Key 를 눌러 앱을 종료하려는 시점에, '엔딩 인터스티셜' 광고가 뜨도록 하는 방법을 안내합니다.

1. SDK 업데이트 (필수)

최신 SDK (v1.0.34) 로 업데이트를 해주세요 : https://github.com/valuepotion/valuepotion-android-sdk/blob/master/SDK/valuepotion.jar

2. 엔딩 인터스티셜 광고 호출 (필수)

function openTwitterShare() {
var msg = ".......";
window.open(
'https://twitter.com/intent/tweet?source=webclient&text='+encodeURIComponent(msg),
'twitter',
'width=626,height=330');
}
function openFacebookShare() {
var url = "........";