Skip to content

Instantly share code, notes, and snippets.

View teslamint's full-sized avatar
💭
I may be slow to respond.

Jaehoon You teslamint

💭
I may be slow to respond.
View GitHub Profile
500 Internal Server Error
Sorry, something went wrong.
A team of highly trained monkeys has been dispatched to deal with this situation.
If you see them, show them this information:
svjW146l4mDlBncBMG96qWALGAksjpGytWA82tRaB0idMnqxonwuybhJcSt-
uXoorAfE5xAJuMTyARlzf2Dy0dYGLoCuWNndfyRGzSsjuw57CnP_Knj57sPM
3MuOw-8ilDjrZ14bAVCF6xnOfbca9KxJW-eqTBPe6d3ty7trFJr4IUu32HNb
@teslamint
teslamint / hamming_weight.cpp
Created May 13, 2011 12:58
Hamming Weight
#include <iostream>
using namespace std;
const unsigned int m1 = 0x55555555; // 0101 0101 0101 0101 0101 0101 0101 0101
const unsigned int m2 = 0x33333333; // 0011 0011 0011 0011 0011 0011 0011 0011
const unsigned int m4 = 0x0f0f0f0f; // 0000 1111 0000 1111 0000 1111 0000 1111
void main() {
unsigned int a = 0x12345678; // 0001 0010 0011 0100 0101 0110 0111 1000
@teslamint
teslamint / gist:1144720
Created August 14, 2011 08:56 — forked from netj/gist:912261
한국 토렌트 사이트의 자바스크립트 다운로드 링크 변환 북마크릿
javascript:var%20s=document.createElement("script");s.src="http://code.jquery.com/jquery-1.5.2.js";document.body.appendChild(s);s.onload=function(){$('a[href^="javascript:file_download("]').each(function(){this.href=eval("var%20file_download=function(a,b){return%20a/*+'#'+b*/;};"+decodeURI(this.href.substring("javascript:".length)));});/*add%20more%20code%20here*/};
@teslamint
teslamint / MacOSXDefaultFontFallbacksChanger.command
Created August 23, 2011 08:07 — forked from netj/MacOSXDefaultFontFallbacksChanger.command
맥의 기본 한글 글꼴을 바꿔주는 스크립트 - A script for changing Mac OS X's default font fallbacks
#!/usr/bin/env bash
# A script for changing Mac OS X's default fonts
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2011-07-22
### MacOSXDefaultFontFallbacksChanger #########################################
## Mac OS X 기본 글꼴 설정 변경 도구 – 1.2.1 (2012-08)
## http://netj.github.com/MacOSXDefaultFontFallbacksChanger
###############################################################################
@teslamint
teslamint / aniplus.js
Created September 17, 2011 06:23
ClickToFlash AniPlus(paid) Killer Script
var killer = new Object();
addKiller("AniPlus", killer);
killer.canKill = function(data) {
if(data.params.movie.indexOf("aniplustv.com/live/") !== -1) {return true;}
return false;
};
killer.process = function(data, callback) {
var flashvars = parseFlashVariables(data.params.flashvars);
@teslamint
teslamint / SKCommsVideo.js
Created September 17, 2011 09:16
ClickToFlash SKComms Video(Nate/Egloos/Cyworld) Killer Script
addKiller("SKCommsVideo", {
"canKill": function(data) {
if (/v.nate.com/.test(data.src)) { data.site="nate"; return true;}
if (/v.(egloos|empas).com/.test(data.src)) { data.site="egloos"; return true;}
if (/dbi.video.cyworld(.nate)?.com/.test(data.src)) { data.site="cyworld"; return true; }
return false;
},
"process": function(data, callback) {
var flashvars = parseFlashVariables(data.params.flashvars);
@teslamint
teslamint / debug.css
Created April 9, 2012 08:22 — forked from premist/debug.css
Javascript-less DOM Debugger for HTML5
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { outline: #FF0000 dotted 1px !important; }

NDC 2012 Note

소셜 게임 1년 그리고 대격변

Speaker: 김윤상 (와일드카드 컨설팅)

소개

  • 생략

소셜 게임의 개념

@teslamint
teslamint / MY_Model.php
Last active October 9, 2015 14:27
CodeIgniter CI_Model extended
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* extended CI_Model
*
* @access public
* @extends CI_Model
* @see http://thetechnofreak.com/technofreak/hook-system-php/ for hook system reference
*/
class MY_Model extends CI_Model {
@teslamint
teslamint / log.php
Last active October 10, 2015 02:48
custom log function for CodeIgniter
<?php
class example extends CI_Controller {
/**
* leave log message
*
* @access private
* @param string $func (default: __FUNCTION__)
* @param string $level (default: 'debug')
* @param string $message (default: '')
* @return void