Skip to content

Instantly share code, notes, and snippets.

View sjoonk's full-sized avatar

Sukjoon Kim sjoonk

View GitHub Profile
@sjoonk
sjoonk / gist:1091615
Created July 19, 2011 07:44
FeedWordPress face image sample
// In a post context
<?php $img = get_feed_meta('face'); if (strlen($img) > 0): ?>
<img src="<?=$img?>" alt="" />
<?php endif; ?>
@sjoonk
sjoonk / gist:1099227
Created July 22, 2011 10:42
Facebook OpenGraph Integration with WordPress
<meta property="og:title" content="기업용으로 활용가능한 오픈소스 SNS 솔루션들" />
<meta property="og:site_name" content="유스풀패러다임" />
<meta property="og:description" content="시중에 출시되어 있는 많은 소셜 네트워킹(SNS) 솔루션들 중 기업이나 공공기관, 학교, 비영리단체 등 조직 내부에서 사용할 수 있는 오픈소스 기반 SNS 솔루션들을 몇 가지 소개합니다." />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://usefulparadigm.com/2011/06/21/oss-social-networking-solutions-for-enterprise/" />
<meta property="og:image" content="http://usefulparadigm.com/wp-content/uploads/2011/06/yammericon1.jpg" />
<meta property="fb:admins" content="[여기에 관리자 ID를 등록합니다]" />
<meta property="fb:app_id" content="[여기에 APP_ID를 등록합니다]" />
@sjoonk
sjoonk / gist:1199582
Created September 7, 2011 02:16
A Rails 3.1 template for adding the Backbone.js skeleton structure
inside('app/assets/javascripts') do
run "mkdir models"
run "mkdir views"
run "mkdir routes"
run "touch app.js"
end
@sjoonk
sjoonk / gist:1357064
Created November 11, 2011 02:59
Hello World Gadget
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="HelloWorld">
<Require feature="opensocial-0.9"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
Hello World!
]]>
</Content>
@sjoonk
sjoonk / aws-facebook-php.template
Created November 23, 2011 06:30
AWS Facebook PHP template
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Launch your Facebook applications within minutes. This template will create a Facebook Stack and configure a social file sharing sample application that upload files to Amazon S3 and notifies your friends by posting it on your wall. **WARNING** This template takes advantage of the AWS Free Usage Tier and if you are eligible since it creates one or more Amazon EC2 instances and a Elastic Load balancer. You will be billed for the AWS resources used.",
"Parameters": {
"AppURL": {
"Default": "http://aws-facebook.s3.amazonaws.com/aws-facebook-php-v2.tar.gz",
"Description": "URL of the application to be deployed",
"Type": "String"
@sjoonk
sjoonk / fan_event.html
Created November 28, 2011 08:47
Facebook Page Tab template
<!doctype html>
<html xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<meta charset="utf-8">
<title>Fan Event</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript"></script>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/ko_KR/all.js"></script>
@sjoonk
sjoonk / tr_server.erl
Created November 30, 2011 06:55
a erlang/otp gen_server module
%%%-------------------------------------------------------------------
%%% @author Martin & Eric <erlware-dev@googlegroups.com>
%%% [http://www.erlware.org]
%%% @copyright 2008-2010 Erlware
%%% @doc RPC over TCP server. This module defines a server process that
%%% listens for incoming TCP connections and allows the user to
%%% execute RPC commands via that TCP stream.
%%% @end
%%%-------------------------------------------------------------------
@sjoonk
sjoonk / gist:1470762
Created December 13, 2011 05:41
Facebook Add Page Tab
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<a href="#" onclick=window.open("http://www.facebook.com/dialog/pagetab?
app_id=YOUR_APP_ID&next=YOUR_URL","PageTab","width=500,height=200");>
Dialog</a>
</body>
</html>
@sjoonk
sjoonk / gist:1564068
Created January 5, 2012 06:56
Facebook OpenGraph Tag Sample
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description"
@sjoonk
sjoonk / self_signed_cert.rb
Created January 19, 2012 14:50 — forked from nickyp/self_signed_cert.rb
create a self-signed certificate using ruby-openssl
We couldn’t find that file to show.