Skip to content

Instantly share code, notes, and snippets.

Aiden Choi m0er

Block or report user

Report or block m0er

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
View FeaturedContentDeserializeTest.kt
package com.styleshare.android.feature.feed.hot
import com.google.gson.GsonBuilder
import com.styleshare.android.network.BaseContentDeserializer
import com.styleshare.android.network.deserializer.ComponentDeserializer
import com.styleshare.android.network.model.component.Component
import com.styleshare.android.network.model.feed.hot.featured.FeaturedContentList
import com.styleshare.android.network.model.feed.hot.featured.FeaturedLiveContent
import com.styleshare.android.rest.model.feed.content.BaseContent
import org.junit.Assert.assertNotNull
@m0er
m0er / page.js
Last active Dec 10, 2015
cross-domain iframe communication
View page.js
// Reference
// http://benalman.com/projects/jquery-postmessage-plugin/
// http://softwareas.com/cross-domain-communication-with-iframes
// Related My post
// http://wp.me/p12fxZ-dS
// Wrapper page
var iframeSrc = "http://embedded-website.com/foobar/page.html#" + encodeURIComponent(document.location.href),
$iframe = $("<iframe>").attr("src", iframeSrc).appendTo("#container");
@m0er
m0er / moer-irc-scripts
Created Nov 12, 2012
[정보] IRC 스크립트 정리
View moer-irc-scripts
안녕하세요
아마 여러가지 이유로 IRC 쓰시는 분들이 많으신거 같은데 이상하게
스크립트 관련 글들이 없어서 제가 아는거 정리해서 올려봅니다.
다챗하고 최대한 비슷하게 만들어 봤구요, 주사위는 배경을 넣어서 눈에
잘 들어오게 해봤습니다.
@m0er
m0er / jquery-password-generator.js
Created Aug 1, 2012
jQuery password generator
View jquery-password-generator.js
// http://jquery-howto.blogspot.kr/2009/10/javascript-jquery-password-generator.html
$.extend({
password: function (length, special) {
var iteration = 0;
var password = "";
var randomNumber;
if(special == undefined){
var special = false;
}
while(iteration < length){
@m0er
m0er / Tuples.java
Created Apr 4, 2012 — forked from fupfin/Tuples.java
Scala's tuple implmentation for Java
View Tuples.java
package fupfin;
public abstract class Tuples {
private Tuples() {}
public static <T1, T2> Tuple2<T1, T2> tuple2(T1 v1, T2 v2) {
return new Tuple2<T1, T2>(v1, v2);
}
You can’t perform that action at this time.