Skip to content

Instantly share code, notes, and snippets.

View dragon3's full-sized avatar
🍺
🍺 🍻 🍺 🍻 🍺

Ryuzo Yamamoto dragon3

🍺
🍺 🍻 🍺 🍻 🍺
View GitHub Profile
diff --git a/xpi/chrome/content/quickPostForm.js b/xpi/chrome/content/quickPostForm.js
index 1ac39b6..6693133 100755
--- a/xpi/chrome/content/quickPostForm.js
+++ b/xpi/chrome/content/quickPostForm.js
@@ -42,7 +42,7 @@ function DialogPanel(position, message){
window.addEventListener('keydown', bind('onKeydown', this), true);
// 不可視にして描画を隠す
- self.elmWindow.style.opacity = 0;
+ // self.elmWindow.style.opacity = 0;
<html>
<head>
</head>
<body>
<div id="b"></div>
<div id="c"></div>
</body>
<script type="text/javascript">
function a() {
var t = setTimeout(function() {
#!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->agent(
"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
my $res = $ua->get("http://twitter.jp");
/*
* TechTouch #0b10001
*
* kill parent
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
;;; pit.el --- Manipulate pit data.
;; Copyright (C) 2008 Takeru Naito
;; Author: Takeru Naito <takeru.naito@gmail.com>
;; Original: cho45 http://lowreal.rubyforge.org/pit/
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published
;; by the Free Software Foundation; either version 2, or (at your
;; option) any later version.
;;
;; custom url-generator for typing-outputz.el
;;
(defun my-typing-outputz-url-generator ()
(typing-outputz-percent-encode
(replace-regexp-in-string
"c\\+\\+" "cpp"
(format "http://%s.localhost/"
(symbol-name major-mode)))))
(setq typing-outputz-url-generator-function 'my-typing-outputz-url-generator)
p "HogeCamelCase".split('').each_with_index.map{ |i, index|
i.downcase! && index != 0 ? "_" + i : i
}.join('')
str = 'fooBar'
if ( (match = str[/^[A-Z]/]) != nil )
p match
end
function Deferred() { console.log(this); return (this instanceof Deferred) ? this.init() : new Deferred() }
Deferred.prototype = {
init: function() { console.log("init"); }
};
new Deferred();
Deferred();
//Object
var F = function() {
this.foo = function() { return "foo" };
}
var f = new F();
console.log(f.foo()); // foo
F.prototype.foo = function() { return "prototype.foo" };