This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var d=document; | |
var a=d.querySelectorAll('.anchor_super'); | |
for(var i=0;i<a.length;i++){ | |
var href = a[i].getAttribute("href"); | |
var elem = href.split(/[\?\&]/); | |
var wiki = elem[0]; | |
var page = elem[2].split('=')[1]; | |
var hid = elem[3].split('=')[1]; | |
var ne = d.createElement('a'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FreeStyleWiki PermLinker | |
// @namespace http://www.suchi.org/ | |
// @version 0.2 | |
// @description add permlink dagger | |
// ==/UserScript== | |
var a = document.querySelectorAll('h2>a,h3>a,h4>a'); | |
for(i = 0; i < a.length; i++) { | |
h = a[i].parentNode; | |
dag = d.createElement('a'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Chrome Killer | |
taskkill /FI "IMAGENAME eq chrome*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define _C(c) c | |
#define C_C(c) _C(c) | |
#define DOOOO | |
#define DDDOOOO(DD) DOOOO | |
#define OOODDDD(OD) OD | |
#define ODODODOD(_ODD) _ODD | |
#define C__(c) C_C(_C(c)) | |
#define CCCCOOOOOOO(C___) DDDOOOO(C___) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define _C(c) c | |
#define C_C(c) _C(c) | |
#define C__(c) C_C(_C(c)) | |
#define CCC(CC_,_CC) C__(CC_) C_C(_CC) | |
#define C_CC(CCCC, _CCC) CCC(CCCC,_CCC) | |
#define C_CC_CC(CCC_CC) C_CC(C_C(CCC_CC), "World\n") | |
#define C_CCCC(_C_) C_CC_CC(_C_) | |
#define CC_CC_(_C_C) C_CCCC(_C_C) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define _USE_MATH_DEFINES 1 | |
#include <math.h> | |
int main() | |
{ | |
int n = 1; | |
double d = M_PI; | |
printf("%d %f\n", d, n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ShiawaseDojo Permlinker | |
// @namespace SDP | |
// @description ShiawaseDojo Permlinker | |
// @include http://www.htb.co.jp/announcers/mami/* | |
// ==/UserScript== | |
d=document,e=d.querySelectorAll('.entry-date'),a=d.querySelectorAll('a[name*="entry_"]');for(i=0;i<a.length;i++){a[i].appendChild(e[i]);a[i].href='#'+a[i].name}void(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ['2.3.8', '2.3.9', '2.3.10', '2.3.11'].include?(Rails.version) && Gem.available?('mongrel', Gem::Requirement.new('~>1.1.5')) && self.class.const_defined?(:Mongrel) | |
# Pulled right from latest rack. Old looked like this in 1.1.0 version. | |
# | |
# def [](k) | |
# super(@names[k] ||= @names[k.downcase]) | |
# end | |
# | |
module Rack | |
module Utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy(vs.begin(), vs.end(), ostream_iterator<string>(cout, "\n")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <ctype.h> | |
typedef unsigned char uchar; | |
struct wc { | |
enum wctype { | |
KANJI, // 0 | |
HIRAKATA, // 1 | |
PUNKT, // 2 |