Skip to content

Instantly share code, notes, and snippets.

Eunjae Lee eunjae-lee

Block or report user

Report or block eunjae-lee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@eunjae-lee
eunjae-lee / .rubocop.yml
Created May 5, 2018
Default Rubocop configuration
View .rubocop.yml
AllCops:
Exclude:
- "db/schema.rb"
- "node_modules/**/*"
- "tmp/**/*"
- "vendor/**/*"
Documentation:
Enabled: false
Metrics/LineLength:
Max: 100
@eunjae-lee
eunjae-lee / 0_reuse_code.js
Created Jul 13, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@eunjae-lee
eunjae-lee / guide.md
Last active Dec 3, 2015
밸류포션 엔딩 인터스티셜 연동 가이드
View guide.md

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

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

1. SDK 업데이트 (필수)

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

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

View timer.py
#!/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"
View gist:9922beeafe26a4b57b7d
// 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
View gist:6effe6f80291083415fa
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
View gist:a542e563cc6d0eb13c19
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
@eunjae-lee
eunjae-lee / parcelable.html
Created Jun 4, 2014
Android - parcelable model class generator
View parcelable.html
<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!" />
View gist:9105693
{
"name": "Eunjae Lee",
"noshow": false,
"albuminfo": {
"count": 10
}
}
View Android - Generating device unique id for push.java
public static String generateDeviceUniqueId() {
Context context = WithApplication.getInstance().getApplicationContext();
final TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
final String tmDevice, tmSerial, androidId;
tmDevice = "" + tm.getDeviceId();
tmSerial = "" + tm.getSimSerialNumber();
androidId = "" + android.provider.Settings.Secure.getString(context.getContentResolver(),
android.provider.Settings.Secure.ANDROID_ID);
You can’t perform that action at this time.