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
{ | |
"title": "My Dashboard", | |
"services": { | |
"query": { | |
"idQueue": [], | |
"list": { | |
"0": { | |
"id": 0, | |
"color": "#7EB26D", | |
"query": "title:\"踊ってみた\"", |
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
jQuery.unique( | |
jQuery.makeArray( | |
jQuery('*').map(function(){ | |
return parseInt(jQuery(this).css('font-size').slice(0, -2)); | |
}) | |
).sort(function(a, b){ | |
return a < b | |
}) | |
) |
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
require 'nil_guard' | |
include NilGuard::Helper | |
foo = Foo.new | |
# 'foo' may be nil, 'bar' may be nil, 'text' may ... | |
value = nilg(foo).bar.text.to_s.to_value_or_nil #=> nil or value |
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== | |
// @match http://*/* | |
// ==/UserScript== | |
(function() { | |
var inputs = document.querySelectorAll('input[type=text]'); | |
for(var i = 0; i < inputs.length; i++) { | |
inputs[i].webkitSpeech = true; | |
inputs[i].addEventListener('speechchange', changed, false); | |
inputs[i].addEventListener('webkitspeechchange', changed, false); | |
} |
NewerOlder