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": "Personal rules (@fjyuu)", | |
"rules": [ | |
{ | |
"description": "Change spacebar to left_shift. (Post spacebar if pressed alone)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "spacebar", | |
"modifiers": { |
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
console.time('css'); | |
var a = $('html body form div.mb8p4 div.data_input table tbody tr td div p.font12 a'); | |
console.timeEnd('css'); | |
console.time('find') | |
var b = $('html') | |
.find('body') | |
.find('form') | |
.find('div.mb8p4') | |
.find('div.data_input') |
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 | |
########################################################### | |
# このスクリプトの特徴 | |
# | |
# 受信・通過については基本的に破棄し、ホワイトリストで許可するものを指定する。 | |
# 送信については基本的に許可する。ただし、サーバが踏み台になり外部のサーバに迷惑をかける可能性があるので、 | |
# 心配な場合は、送信も受信同様に基本破棄・ホワイトリストで許可するように書き換えると良い。 | |
########################################################### |
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 | |
########################################################### | |
# このスクリプトの特徴 | |
# | |
# 受信・通過については基本的に破棄し、ホワイトリストで許可するものを指定する。 | |
# 送信については基本的に許可する。ただし、サーバが踏み台になり外部のサーバに迷惑をかける可能性があるので、 | |
# 心配な場合は、送信も受信同様に基本破棄・ホワイトリストで許可するように書き換えると良い。 | |
########################################################### |
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 | |
########################################################### | |
# このスクリプトの特徴 | |
# | |
# 受信・通過については基本的に破棄し、ホワイトリストで許可するものを指定する。 | |
# 送信については基本的に許可する。ただし、サーバが踏み台になり外部のサーバに迷惑をかける可能性があるので、 | |
# 心配な場合は、送信も受信同様に基本破棄・ホワイトリストで許可するように書き換えると良い。 | |
########################################################### |
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
#!perl -pl | |
$n=index$_,"[";y/[]//d;@c=split//;@i=sort{$c[$a]cmp$c[$b]}0..$#c;$_=join"",map{$c[$n=$i[$n]]}@c |
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
\documentclass{jsarticle} | |
\usepackage[expert,deluxe]{otf} | |
\begin{document} | |
\noindent {\usekanji{JY1}{hmc}{m}{n} \Huge 漢字仮名交じり文の例:明朝} | |
\noindent {\mcfamily \Huge 漢字仮名交じり文の例:明朝} |
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
\documentclass[11pt,a4paper,landscape]{jsarticle} | |
\usepackage{amsmath,amssymb} | |
\usepackage{fancyhdr} | |
\AtBeginDvi{\special{landscape}} | |
\setlength{\headsep}{5truemm} | |
\setlength{\headheight}{5truemm} | |
\setlength{\topmargin}{3truemm} |
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
perl -nle 'print "$.: $_" unless /^\p{InBasicLatin}*$/' hoge.tex |
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/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use 5.010; | |
binmode STDOUT, ":utf8"; | |
my $text = "これはpenです"; | |
$text =~ s/(\p{IsNonSpacingCharacter})([^\p{IsNonSpacingCharacter}])/$1 $2/g; |