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
/* | |
このコードはKotlinでPEM形式のRSAおよびEC公開鍵暗号を利用したサンプルプログラムです。 | |
**警告**: 文字列になっている公開暗号鍵ペアは絶対にそのまま使用しないこと。 | |
opensslコマンドを打って必ず自分で生成してください。 | |
実行結果: | |
[RSA/ECB/PKCS1Padding] matched: true, original: Hello world!, decrypted: Hello world! | |
[SHA256withRSA] valid: true, original: Hello world! | |
[SHA256withECDSA] valid: true, original: Hello world! |
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
import dgram from 'dgram'; | |
import radius from 'radius'; | |
const server = dgram.createSocket('udp4'); | |
const RADIUS_SECRET = 'HOGEHOGE'; // RADIUSの共有シークレット | |
function auth(mac: string): boolean { | |
return mac === '00:00:00:00:00:00'; // 認証したいMACアドレス | |
} |
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
package example | |
import kotlinx.coroutines.* | |
import java.util.concurrent.Executors | |
import java.util.concurrent.TimeUnit | |
import java.util.concurrent.atomic.AtomicInteger | |
fun main() { | |
val nCount = 100000 |
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
from urllib.request import * | |
from urllib.parse import * | |
import json | |
import base64 | |
from sympy import * | |
q = 'W1t4LCAxXV1AW1sxLCAtODcuNjcwNV0sWy04Ny42NzA1LCA0OTc1LjQwNDQxXV1AW1t4XSwgWzFdXQ%3D%3D' | |
formula = base64.b64decode(unquote(q)).decode('utf-8') | |
x = Symbol('x') |
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
exports.decorateBrowserOptions = (options) => { | |
return Object.assign({}, options, { | |
titleBarStyle: 'hidden' | |
}); | |
} | |
exports.getTermProps = (uid, parentProps, props) => { | |
return Object.assign(props, { | |
onDecorated: (term) => { | |
term.term.setOption('letterSpacing', 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
{ | |
"title": "chimerast's custom bindings", | |
"rules": [ | |
{ | |
"description": "Input backslash(\\) if pressed Yen-mark", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "international3", |
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
{ | |
/* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
* | |
* This is a pretty good set, especially considering that many emacs bindings | |
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
* perhaps a few more, are already built into the system. | |
* | |
* BEWARE: | |
* This file uses the Option key as a meta key. This has the side-effect | |
* of overriding Mac OS keybindings for the option key, which generally |
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 | |
set -eux | |
INPUT_FILE=${1} | |
OUTPUT_FPS=${2:-8} | |
OUTPUT_HEIGHT=${3:--1} | |
TEMPFILE_CUT=cut.mp4 | |
TEMPFILE_PALLETE=pallete.png |
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
Index: src/java/net/java/sen/util/DoubleArrayTrie.java | |
=================================================================== | |
--- src/java/net/java/sen/util/DoubleArrayTrie.java (revision 89) | |
+++ src/java/net/java/sen/util/DoubleArrayTrie.java (working copy) | |
@@ -1,3 +1,18 @@ | |
+ | |
+ | |
+ | |
+ | |
+ |
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
Index: pom.xml | |
=================================================================== | |
--- pom.xml (revision 19341) | |
+++ pom.xml (working copy) | |
@@ -13,7 +13,7 @@ | |
<artifactId>buildnumber-maven-plugin</artifactId> | |
<packaging>maven-plugin</packaging> | |
<name>Build Number Maven Plugin</name> | |
- <version>1.2</version> | |
+ <version>1.2.1</version> |
NewerOlder