Tiny Cross-browser DOM ready function in 111 bytes of JavaScript.
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.mobile.vmouse.js | |
* | |
* https://github.com/jquery/jquery-mobile/blob/1.3.1/js/jquery.mobile.vmouse.js | |
* | |
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors | |
* Released under the MIT license. | |
* http://jquery.org/license | |
*/ |
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
#! /usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
require 'dbus' | |
IBUS_SERVICE="org.freedesktop.IBus" | |
IBUS_PATH_IBUS="/org/freedesktop/IBus" | |
IBUS_INTERFACE_IBUS="org.freedesktop.IBus" | |
IBUS_INTERFACE_INPUTCONTEXT="org.freedesktop.IBus.InputContext" |
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
~ ~ | |
, 、 | |
. 。 | |
/ ・ | |
: ー | |
; っ | |
[ 「 | |
] 」 | |
a あ | |
ba ば |
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
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
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(function($){ | |
if(location.href.indexOf("http://www.lancers.jp/work/") === 0){ | |
var proposes = $("table.prof > tbody > tr > td.stats.propose"); | |
proposes.each(function(e){ | |
var $this = $(this); | |
if($this.children().length === 3){ | |
var current = $this.children()[1].innerText; | |
var t = $this.children()[2].innerText; | |
var r = /^\(募集 ([0-9]+)件\)$/; | |
var total = t.match(r)[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
COND_A = NO | |
COND_B = YES | |
all: | |
# AND condition | |
ifeq ($(COND_A) $(COND_B), YES YES) | |
@echo "A and B is true" | |
else | |
@echo "A and B is false" | |
endif |
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
sudo yum install epel-release -y | |
sudo yum install byobu -y --enablerepo=epel-testing |
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
#!/bin/bash | |
## | |
## << How to install >> | |
## $ curl -Lo g.sh http://bit.ly/of-vscode | |
## $ chmod +x g.sh | |
## $ mv g.sh /usr/local/bin/of-vscode-project-generator | |
## | |
echo |
OlderNewer