This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # ホームディレクトリにあったスクリプト. | |
| # 何に使ったんだっけか. | |
| # | |
| # ファイル名から推測するに, | |
| # 古い Gnumeric で日本語が EUC-JP で保存されていたものをサルベージしたか何か. | |
| import sys | |
| import re |
This file contains hidden or 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
| (let ((path "a:b:c...")) | |
| (setenv "PATH" path) | |
| (setq exec-path (split-string path ":"))) |
This file contains hidden or 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
| on replace {src, tg, rp} | |
| set oldDel to AppleScript's text item delimiters | |
| set AppleScript's text item delimiters to tg | |
| set myList to text items of src | |
| set AppleScript's text item delimiters to rp | |
| set myText to myList as string | |
| set AppleScript's text item delimiters to oldDel | |
| return myText | |
| end replace |
This file contains hidden or 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
| cat > /etc/insserv/overrides/vzquota <<'EOD' | |
| ### BEGIN INIT INFO | |
| # Provides: vzquota | |
| # Required-Start: $syslog | |
| # Required-Stop: $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: | |
| # Short-Description: vzquota | |
| ### END INIT INFO | |
| EOD |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # | |
| # makes a unicode character from keyword as 4-hexadecimal codepoint | |
| # and put it into clipboard. | |
| # | |
| # query MUST be escaped double quotation marks and backslashes. | |
| # | |
| from subprocess import Popen, PIPE | |
| try: |
This file contains hidden or 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 | |
| mvn archetype:generate \ | |
| -DarchetypeArtifactId=android-quickstart \ | |
| -DarchetypeGroupId=de.akquinet.android.archetypes \ | |
| -DarchetypeVersion=1.0.11 \ | |
| -DgroupId=org.nkm3 \ | |
| -DartifactId=plurk-headspin \ | |
| -Dversion=1.0.0 \ | |
| -Dplatform=10 |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # https://codeiq.jp/ace/joboffer_apli/q377 | |
| import unittest | |
| N = 6 | |
| def normalize(s, c): | |
| if c == u'○': | |
| s.append(-1) |
This file contains hidden or 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(d,$$,n,m,ms){ms=$$('meta');for(n=ms.length;n--;)if(ms[n].name=='viewport')ms[n].parentNode.removeChild(ms[n]);m=d.createElement('meta');m.name='viewport';m.content='width=device-width';$$('head')[0].appendChild(m);})(document,function(x){return document.getElementsByTagName(x);}) |
This file contains hidden or 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
| diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l | |
| index d2e7243..31b1d33 100644 | |
| --- a/Zend/zend_language_scanner.l | |
| +++ b/Zend/zend_language_scanner.l | |
| @@ -1984,7 +1984,7 @@ inline_html: | |
| return T_COMMENT; | |
| } | |
| -<ST_IN_SCRIPTING>("?>"|"</script"{WHITESPACE}*">"){NEWLINE}? { | |
| +<ST_IN_SCRIPTING>("?>"|"</script"{WHITESPACE}*">") { |
This file contains hidden or 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
| diff --git a/plugin/skk.vim b/plugin/skk.vim | |
| index 24bd4df..4cc9053 100644 | |
| --- a/plugin/skk.vim | |
| +++ b/plugin/skk.vim | |
| @@ -1212,6 +1212,7 @@ if !exists("skk_rom_kana_rules") | |
| \. "zj ↓\<NL>" | |
| \. "zk ↑\<NL>" | |
| \. "zl →\<NL>" | |
| + \. "z \<NL>" | |
| \. "zo ぞ ゾ\<NL>" |