Skip to content

Instantly share code, notes, and snippets.

View sambatriste's full-sized avatar

Tsuyoshi Kawasaki sambatriste

View GitHub Profile
@1natsu172
1natsu172 / .eslintrc
Last active March 26, 2025 13:00
My airbnb based ESLint config for "typescript-eslint" with React & prettier
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "."
},
"env": {
"browser": true,
"jest/globals": true
},
@rbtnn
rbtnn / gist:739a2fabf3317a95c965
Created July 1, 2015 15:07
nyagos gitブランチ補完
nyagos.completion_hook = function (c)
local bs = {
"submodules",
"add",
};
if c.text:match('^git ') then
for b in nyagos.eval('git branch'):gmatch('[^ \n*>-/]+') do
table.insert(bs, b);
end
@wuyongzheng
wuyongzheng / ECDH_BC.java
Last active January 15, 2025 14:14
Elliptic curve Diffie–Hellman using Bouncy Castle v1.50 example code
import java.math.BigInteger;
import java.security.PublicKey;
import java.security.PrivateKey;
import java.security.KeyFactory;
import java.security.Security;
import java.security.KeyPairGenerator;
import java.security.KeyPair;
import java.security.SecureRandom;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.ECGenParameterSpec;
;; Usage Example:
;;
;; <!--- BEGIN RECEIVE ORGTBL ${1:YOUR_TABLE_NAME} -->
;; <!--- END RECEIVE ORGTBL $1 -->
;;
;; <!---
;; #+ORGTBL: SEND $1 orgtbl-to-gfm
;; | $0 |
;; -->