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
# Serve proxy auto-configuration file | |
Param( | |
[int]$PacPort = 2694, | |
[int]$SocksPort = 1080 | |
) | |
# Write your pac file content here: | |
$pac = [System.Text.Encoding]::UTF8.GetBytes(@" | |
function FindProxyForURL(url, host) { |
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
// Original code by Constellation | |
// http://d.hatena.ne.jp/Constellation/20100203/1265207970 | |
function convertToHTMLString(source, safe) { | |
if (!source || (source.getRangeAt && source.isCollapsed)) return ''; | |
var range = source.getRangeAt ? source.getRangeAt(0) : null; | |
var node = range ? range.cloneContents() : source.cloneNode(true); | |
if (safe) { | |
var root = range && range.commonAncestorContainer.cloneNode(false) | |
if (!root || root.nodeType !== root.ELEMENT_NODE) |
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
/* | |
* This code is in the public domain. | |
* | |
* ChromeFiles.get("chrome://browser/content/") | |
* => [ "chrome://browser/content/NetworkPanel.xhtml", | |
* "chrome://browser/content/aboutDialog.css", | |
* ..., | |
* "chrome://browser/content/browser.css", | |
* "chrome://browser/content/browser.js", | |
* "chrome://browser/content/browser.xul", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>host of cloned 'a' element</title> | |
</head> | |
<body> | |
<script> | |
var a = document.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
// classify -- emulate 'class' of class-based object-oriented languages. | |
// | |
// This file is in the public domain. | |
// | |
// classify(constructor, members) | |
// classify(constructor, superConstructor) | |
// classify(constructor, superConstructor, members) | |
// | |
// If you specify 'superConstructor', you can call 'callSuper' method in 'constructor'. | |
// |
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
// An emitter implementation to mixin. | |
// | |
// This file is in the public domain. | |
// | |
// Usage: | |
// | |
// import Emittable from "..."; | |
// | |
// class MyEmitter implements Emittable { | |
// on = Emittable.on; |
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
# Usage: $0 <property> | |
# | |
# Print a JavaScript regular expression pattern | |
# corresponding to a Perl regular expression pattern `\p{property}`. | |
# | |
# See `perldoc perluniprops` for values that can be specified as <property>. | |
# | |
# Author: nanto_vi | |
# License: Public Domain |
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
package main | |
import "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
ret := make([][]uint8, dy) | |
for y := range(ret) { | |
ret[y] = make([]uint8, dx) | |
for x := range(ret[y]) { | |
if x % 8 == 0 || y % 8 == 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
太郎屋 | |
京のおばんざい | |
http://tabelog.com/kyoto/A2602/A260201/26000639/ | |
醪音 | |
「英勲」の酒蔵の直営店 | |
http://tabelog.com/kyoto/A2602/A260201/26017974/ | |
ななたに | |
地鶏ローストチキン |
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
use Our::App; | |
use Try::Tiny; | |
use Devel::StackTrace::WithLexicals; | |
builder { | |
enable sub { | |
my $app = shift; | |
sub { | |
my $trace; | |
local $SIG{__DIE__} = sub { |
NewerOlder