Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shanselman
shanselman / gist:5422230
Last active March 28, 2024 10:33
Evil Blog Comment Spammer just exposed his template through some error and the whole thing showed up in my comments.
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
@mtsukamoto
mtsukamoto / MySAXHandler.pm
Created April 16, 2013 07:01
My sample XML::SAX handler module. With this sample handler, current path and path nodes' name are available in "characters" sub.
package MySAXHandler;
use base qw(XML::SAX::Base);
# --- SYNOPSYS ---
# use XML::SAX;
# use MySAXHandler;
# my $parser = XML::SAX::ParserFactory->parser(Handler => MySAXHandler->new);
# $parser->parse_uri("sample.xml");
sub start_document {

2013 年の新卒研修メニュー

Rails Tutorial

目的

  • 2013 年にモダンな方法で一通り Web アプリケーションを自分一人で作れるようになってもらう
  • 作る過程で Web 開発で必要とされるアプリケーションレイヤのスキルセットを身につけてもらう

教科書

@maripo
maripo / wikipedia_language_labels.user.js
Created October 21, 2012 02:25
Enhance links to other languages on Wikipedia
// ==UserScript==
// @name Wikipedia Language Labels
// @namespace org.maripo.neta
// @description Enhance links to other languages (e.g. Change "Français" to "Étoile (Français)" on http://en.wikipedia.org/wiki/Star )
// @include http://*.wikipedia.org/wiki/*
// @grant none
// @version 1
// ==/UserScript==
@codingjester
codingjester / three_legged_oauth.py
Last active December 9, 2018 02:34
Tumblr 3 Legged OAuth using Python lib OAuth2
import urlparse
import oauth2 as oauth
consumer_key = 'consumer_key'
consumer_secret = 'consumer_secret'
request_token_url = 'https://www.tumblr.com/oauth/request_token'
access_token_url = 'https://www.tumblr.com/oauth/access_token'
authorize_url = 'https://www.tumblr.com/oauth/authorize'
@codingjester
codingjester / xauth_request.py
Last active May 14, 2020 23:40
Python xAuth Example
#!/usr/bin/env python
import urllib
import urlparse
import oauth2 as oauth
import json
consumer_key="consumer_key"
consumer_secret="consumer_secret"
access_token_url = 'https://www.tumblr.com/oauth/access_token'
@ssig33
ssig33 / app.rb
Created May 27, 2011 01:29
フォローしてる人のタイムラインを RSS に変換するやつ
require "oauth"
require "json"
require "sinatra"
require "builder"
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
TOKEN = ''
SECRET =''
@kentaro
kentaro / gist:982412
Created May 20, 2011 05:33
sleep-sort
(require 'deferred)
(defun sleep-sort (list)
(mapc (lambda (i)
(lexical-let ((sec i))
(deferred:$
(deferred:wait (* sec 1000))
(deferred:nextc it
(lambda ()
(princ (format "%d\n" sec)))))))
@mattn
mattn / kurukuruimg.user.js
Created April 5, 2010 01:17 — forked from hitode909/kurukuruimg.user.js
webkit version
// ==UserScript==
// @name kurukuruimg
// @namespace http://www.hatena.ne.jp/hitode909
// @include *
// ==/UserScript==
var style = document.createElement('style');
document.body.appendChild(style);
style.textContent = "img, canvas, video {\n" + "-webkit-transform: rotate(0deg);\n" + " }";