Skip to content

Instantly share code, notes, and snippets.

@savage69kr
savage69kr / example.html
Created July 10, 2012 12:12 — forked from riaf/example.html
Facebook API が callback 地獄になる対策的な。こういうイメージかなあ?
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="fb-root"></div>
<script src="//connect.facebook.net/en_US/all.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="facebook-deferred.js"></script>
@savage69kr
savage69kr / README.md
Created July 17, 2012 15:18 — forked from fnichol/README.md
Download a cacert.pem for RailsInstaller

Why?

There is a long standing issue in Ruby where the net/http library by default does not check the validity of an SSL certificate during a TLS handshake. Rather than deal with the underlying problem (a missing certificate authority, a self-signed certificate, etc.) one tends to see bad hacks everywhere. This can lead to problems down the road.

From what I can see the OpenSSL library that Rails Installer delivers has no certificate authorities defined. So, let's go fetch some from the curl website. And since this is for ruby, why don't we download and install the file with a ruby script?

Installation

The Ruby Way! (Fun)

@savage69kr
savage69kr / nodeconf_2012.md
Created July 21, 2012 03:20 — forked from outsideris/nodeconf_2012.md
a list of slides from nodeconf 2012
@savage69kr
savage69kr / dabblet.css
Created July 24, 2012 02:26 — forked from clagom/dabblet.css
I'm not a clone! I'm a human being!
/**
* I'm not a clone! I'm a human being!
*/
body{
background: #ffd200;
margin:0;
padding:0;
}
@savage69kr
savage69kr / RegexUtils.java
Created August 7, 2012 13:06 — forked from keesun/RegexUtils.java
Fucking Java Matcher & String class. Please add this method to String class.
/**
* @author Keesun Baik
*/
public class RegexUtils {
public static String[] match(String input, String regexp) {
Matcher matcher = Pattern.compile(regexp).matcher(input);
String[] results = new String[matcher.groupCount() + 1];
@savage69kr
savage69kr / gist:3303652
Created August 9, 2012 12:06 — forked from avalanche123/gist:981817
GitHub Emoji
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
@savage69kr
savage69kr / LICENSE
Created August 13, 2012 12:43 — forked from irae/LICENSE
Auto-growing textareas with jQuery — The perfectionist way
MIT License
===========
Copyright (c) 2009–2011
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@savage69kr
savage69kr / README.md
Created August 16, 2012 11:50 — forked from jgranick/README.md
How to setup Cordova support for NME

Install NME

First, go to http://www.haxenme.org/download and install NME.

Update to Beta

Since Cordova support is only in development builds, you will need to update your copy of the NME library. You still want to use the installer above, because it installs the dependencies in one step.

@savage69kr
savage69kr / links.md
Created September 2, 2012 05:00 — forked from igrigorik/links.md
HAR Show links & resources
{
"w": 67001,
"o": 94,
"u": "http://www.igvita.com/",
"r": 9,
"i": "ydefault",
"lt": 502,
"g": {
"ynumreq": {
"score": 100,