Skip to content

Instantly share code, notes, and snippets.

View zikosw's full-sized avatar

Supakorn Warodom zikosw

View GitHub Profile
@zikosw
zikosw / LumaSharpenHook.glsl
Created February 22, 2020 16:16 — forked from voltmtr/LumaSharpenHook.glsl
usage: vo=opengl-hq:user-shaders="~/config_directory/LumaSharpenHook.glsl"
// vim: set ft=glsl:
/*
LumaSharpenHook 0.3
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk
port to glsl by Anon
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image.
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts.
@zikosw
zikosw / depth_chart.html
Created February 20, 2020 16:01 — forked from flavioespinoza/depth_chart.html
D3 Market Depth Chart built from Order Book
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>d3 depth chart</title>
<script type="text/javascript" src="https://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<style>
@zikosw
zikosw / .tmux.conf
Created November 15, 2019 08:33 — forked from choestelus/.tmux.conf
Chochoe's tmux config, use tmux plugin manager to install plugin first
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set -s escape-time 0
set -ga terminal-overrides ",*256col*:Tc"
set -g mouse on
set -g focus-events on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
# Raw transaction API example work-through
# Send coins to a 2-of-3 multisig, then spend them.
#
# For this example, I'm using these three keypairs (public/private)
# 0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86 / 5JaTXbAUmfPYZFRwrYaALK48fN6sFJp4rHqq2QSXs8ucfpE4yQU
# 04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a986818a7cb624532f062c1d1f8722084861c5c3291ccffef4ec6874 / 5Jb7fCeh1Wtm4yBBg3q3XbT6B525i17kVhy3vMC9AqfR6FH2qGk
# 048d2455d2403e08708fc1f556002f1b6cd83f992d085097f9974ab08a28838f07896fbab08f39495e15fa6fad6edbfb1e754e35fa1c7844c41f322a1863d46213 / 5JFjmGo5Fww9p8gvx48qBYDJNAzR9pmH5S389axMtDyPT8ddqmw
# First: combine the three keys into a multisig address:
./bitcoind createmultisig 2 '["0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86","04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a9
@zikosw
zikosw / select.cljs
Created June 17, 2017 08:31 — forked from pesterhazy/select.cljs
Using react-select with reagent
;; in your project definition
;; [cljsjs/react-select "1.0.0-rc.1" :exclusions [cljsjs/react]]
;; See react-select documentation: https://github.com/JedWatson/react-select
(ns example.select
(:require [reagent.core :as r]
[cljsjs.react-select]))
(defn select
@zikosw
zikosw / Inventory.md
Last active August 31, 2015 13:34 — forked from Drnutsu/Inventory.md

หมายเหต : ที่ค่า LA์N จะมี form คือ LAN = จำนวน interface(interface ที่เสียบอยู่) ทีไม่ได้ใส่คือเสียบหมด

HP1

  • SAS = 2
  • LAN = 3(2)

HP2

  • Serial SCSI = 4
  • LAN = 3