Skip to content

Instantly share code, notes, and snippets.

View funatsufumiya's full-sized avatar

Fumiya Funatsu funatsufumiya

View GitHub Profile
@dciccale
dciccale / README.md
Last active October 22, 2021 21:52
Tiny Cross-browser DOM ready function in 111 bytes of JavaScript

DOM Ready

Tiny Cross-browser DOM ready function in 111 bytes of JavaScript.

@moroya
moroya / jquery.mobile.events.js
Created April 24, 2013 08:48
jQuery mobile 1.3.1からモバイルイベント部分のみを取り出したもの
/**
* 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
*/
@noborus
noborus / ibus_toggle.rb
Last active November 6, 2021 11:48
ibus_toggle のRuby版(iBus 1.4以下対応) ruby-dbusが必要($ gem install ruby-dbus)
#! /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"
@youcune
youcune / romantable.txt
Last active March 19, 2024 01:37
AZIK配列のいつも使うGoogle日本語入力用ローマ字テーブル
~ ~
, 、
. 。
/ ・
: ー
; っ
[ 「
] 」
a あ
ba ば
@roundand
roundand / OpenWithSublimeText3.bat
Last active March 13, 2024 17:38 — forked from mrchief/LICENSE.md
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@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
@funatsufumiya
funatsufumiya / script.js
Last active February 3, 2016 04:42
Lancersで終了済みのタスクを灰色表示するためのスクリプト(for Chrome's CJS plugin)
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];
@alpha22jp
alpha22jp / Makefile
Created October 20, 2016 01:38
MakefileでAND/OR条件判定
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
@eai04191
eai04191 / install_byobu_on_centos7.sh
Last active July 28, 2023 04:46 — forked from tinkertims/install_byobu_on_centos7.sh
Install byobu to CentOS 7
sudo yum install epel-release -y
sudo yum install byobu -y --enablerepo=epel-testing

PowerShell Gives You Wrongs

三年半の格闘の末に僕が見たもの、あるいは試行錯誤の覚書、すなわち二番煎じ。

はじめに

PowerShell 3.0以上のバージョンを使用すること。2.0以下のバージョンは、書き捨ては仕方ないとしても、保守対象のスクリプトを書くべきではないし、あらゆる言及に値しない。全力でバージョンアップをしろ。

式と文の常識を超えて

@funatsufumiya
funatsufumiya / of-vscode-project-generator.sh
Last active May 6, 2024 04:02
VSCode Project Generator for openFrameworks 0.9.8 - 0.12.x, compatible with Mac, Windows (git-bash), Linux
#!/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