Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using TapjoyUnity;
public class Tapjoy1 : MonoBehaviour {
int count = 0;
TJPlacement p;
// Use this for initialization
void Start () {
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
#include <cstdio>
#include <string>
#include <iostream>
//#include <regex>
#include <boost/regex.hpp>
using namespace rapidjson;
from PIL import Image
im = Image.open("ic_notify.png")
out = Image.new("RGBA", (96, 96))
pix = out.load()
blank = (0, 0, 0, 0)
white = (255, 255, 255, 255)
@keewon
keewon / MyUnityAppController.h
Last active February 25, 2016 01:54
Subclassing UnityAppController
//
// MyUnityAppController.h
//
#import "UnityAppController.h"
@interface MyUnityAppController : UnityAppController
@end
@keewon
keewon / gist:7637512
Created November 25, 2013 07:20
My vim settings
call pathogen#infect()
syntax on
set nocompatible
set bg=light
set ts=8 sts=4 sw=4 expandtab
set showmatch matchtime=2
set ic nobackup incsearch
"set guifont=Lucida_Console:h14:cANSI
set guifont=Monaco:h13
@keewon
keewon / gist:2f5668a0954b46dfb126
Created August 24, 2015 05:43
Bookmarklet for Clearing Tapjoy Developer Console
javascript:(function(){$('#consoleContainer')[0].innerHTML="";}());
@keewon
keewon / gist:4196bd0c73bbcaabf3e5
Created March 6, 2015 14:56
get Mongo primary uri
$ mongo --quiet --eval 'rs.isMaster()["primary"]'
air.local:27017
@keewon
keewon / gist:9920785f5cfcb2c82f88
Last active August 29, 2015 14:11
Fixing crash of Crema app on Android 5.0

In short, open the source, change Security.addProvider(something); to Security.insertProviderAt(something, 1);

Background

Android 5.0 (and 5.0.1) has a problem with SpongyCastle (https://code.google.com/p/android/issues/detail?id=68562)

Crema Android App also has this problem, but it can be avoided by following instruction on the Spongy Castle home.

I already fixed mine, but can't share it due to legal issue. Instead, I share DIY fix instruction.

@keewon
keewon / gist:82bc02f2dafcf5fc811f
Created November 20, 2014 15:57
AION 하우징 스크립트 - 어그린트
------------------------- 여기부터
-- 작성일: 2011-12-01 02:27
-- 참고한 게시물: http://aion.plaync.co.kr/board/server/view?articleID=4064053
-- 계산은 틀릴 수도 있습니다. 점검 시간에 따라 약간 달라질 수 있습니다.
DT20111125 = 1322226000;
DTBASE = DT20111125;
FREQ = 223200;
FREQ_SEASON = FREQ * 3;
@keewon
keewon / gist:588fb09d9df9ca6b17db
Created November 20, 2014 15:56
AION 하우징 스크립트 - 경마 게임
-- 아이온 하우징 스크립트 경마 게임
-- 최종수정일: 2011-12-17
-- 자유롭게 수정 배포 가능함
-- 한번에 이동할 거리
STEP = 0.18;
-- 최대 20회 움직임
RUN = 20;