Skip to content

Instantly share code, notes, and snippets.

View deholic's full-sized avatar

Euigyom Kim deholic

View GitHub Profile
@deholic
deholic / gist:5081102
Created March 4, 2013 09:38
Convert .pem to .p12 for using APNS Service.
$ openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns_development_cert.p12
$ openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns_development_key.p12
@deholic
deholic / gist:10098455
Created April 8, 2014 07:01
Return play store rank from app identifier
// app identifier를 찾아서 검색한다
$.map($("div.card"), function(n, i) {
if($(n).attr("data-docid").indexOf("APP.IDENTIFIER") != -1)
{
console.log(i, $(n).attr("data-docid"));
}
});
@deholic
deholic / route.js
Last active August 26, 2015 09:52
REST API Routing Code
// USER API
server.get('/:version/user/:userId', route, finished);
server.post('/:version/user', route, finished);
server.put('/:version/user/:userId', route, finished);
function route(req, res, next)
{
var routeString = getRoutePathString(req.url);
var target;