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
" 括弧補完 | |
inoremap { {}<LEFT> | |
inoremap [ []<LEFT> | |
inoremap ( ()<LEFT> | |
inoremap " ""<LEFT> | |
inoremap ' ''<LEFT> | |
vnoremap { "zdi^V{<C-R>z}<ESC> | |
vnoremap [ "zdi^V[<C-R>z]<ESC> | |
vnoremap ( "zdi^V(<C-R>z)<ESC> | |
vnoremap " "zdi^V"<C-R>z^V"<ESC> |
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 Google Image Tab Before Style | |
// @namespace GoogleImgTabBeforeStyle | |
// @description Googleの画像タブの位置を以前の位置へ移動する | |
// @include /^https:\/\/.*google\..*\/.*&q=.*$/ | |
// ==/UserScript== | |
function imgNode(nodes) { | |
for (var i = 0; i < nodes.length; ++i) { | |
if (nodes[i].innerText == '画像') return nodes[i]; |
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
javascript:function imgNode(nodes){ for(var i = 0; i < nodes.length; ++i){ if(nodes[i].innerText == '画像') return nodes[i]; } return false; } node = imgNode(document.getElementsByClassName('hdtb_mitem')); menu = document.getElementById('hdtb_msb'); menu.removeChild(node); menu.insertBefore(node, menu.childNodes[1]); |
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
javascript:(function (){var counts=document.querySelectorAll('td.likes span.count');for(var i=0;i<counts.length;++i){if((+counts[i].innerText)>=5){var node = counts[i].parentNode;node.style.backgroundColor = '#8F5';}}})(); |
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(){window.gruppi_alert = [];func = function(){var s = document.querySelectorAll("#chat_timeline > div");if(s.length != window.gruppi_alert.length){alert("NEW MESSAGE"+document.querySelector("#group_title > h1").innerText)} window.gruppi_alert = s;}; setInterval(func, 4000);})(); |
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
class Base | |
CONSTANT = 1 | |
def initialize | |
puts CONSTANT | |
end | |
def puts_constant_base | |
puts CONSTANT | |
end |
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
import java.util.*; | |
import java.io.*; | |
import java.util.*; | |
import java.io.*; | |
class HelloWorld { | |
public static void main(String[] args) { | |
System.out.printf("Hello World!\n"); // util | |
System.out.println("Hello World!"); // io |
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://simple-asta.blogspot.jp/2013/06/c-instanceof.html | |
#include <iostream> | |
class Object { | |
public: | |
template<typename T> | |
inline bool instance_of() | |
{ | |
return dynamic_cast<const T*>(this) != 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
--- sixamo-utf.rb 2014-04-21 11:00:11.120860891 +0900 | |
+++ sixamo-utf-fixed.rb 2014-04-21 11:01:17.724191103 +0900 | |
@@ -4,7 +4,7 @@ | |
# $Id: sixamo.rb,v 1.52 2007/03/05 08:31:23 hori Exp hori $ | |
# | |
-$KCODE = 'e' | |
+# $KCODE = 'e' | |
# for ruby 1.6 |
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
# Assembly Interpret | |
# @author Shusui MOYATANI | |
# @license GNU General Public License version 3 | |
$memory = [] | |
$calreg = 0 | |
# パースして$memoryに保存 | |
def parse_store(str) | |
tmp = str.split(/\s+/) |
OlderNewer