Skip to content

Instantly share code, notes, and snippets.

View 5pecia1's full-sized avatar
πŸ˜€
Rustaceans

sol 5pecia1

πŸ˜€
Rustaceans
View GitHub Profile
@5pecia1
5pecia1 / Galaxy.desktop
Created January 5, 2022 05:02
μΉ΄μΉ΄μ˜€ν†‘μ„ μœ„ν•œ scrcpy desktop app file
[Desktop Entry]
Name=Galaxy
Comment=Android Mirror
Exec=/usr/bin/scrcpy -S -K
Terminal=false
Type=Application
Category=Network;WebBrowser;
@5pecia1
5pecia1 / expandVars.js
Last active August 13, 2021 04:58 — forked from tohagan/expandVars.js
JavaScript - Expand variables in string
// Polyfill to expand variables in a string
// Example: expandEnv("Welcome back ${name}. Glad to see you");
// Example: expandEnv("Welcome back $name. Glad to see you");
// eslint-disable-next-line no-extend-native
function expandEnv(s: string): string {
return s.replace(/\$([\w]+|{([^{}]*)})/g, (str, varName) => {
const vName = varName.startsWith("{") ? varName.substring(1, varName.length - 1) : varName;
var value = process.env[vName];
@5pecia1
5pecia1 / Fabric κΈ°μ—¬ 방법.md
Last active December 30, 2020 00:37
fabric κΈ°μ—¬ 방법

Hyperlegder Fabric κΈ°μ—¬ 방법

λŒ€λΆ€λΆ„μ˜ λ‚΄μš©μ€ Contributions Welcome!에 λ‚˜μ™€ 있기 λ•Œλ¬Έμ— μ—¬κΈ°μ„œλŠ” Contributions Welcome!에 λ‚˜μ˜€μ§€ μ•ŠλŠ” μ„Έμ„Έν•œ λ‚΄μš©μ„ 닀룬닀.

Github

Develop

  • κΈ°μ—¬ν•˜κ³ μž ν•˜λŠ” ν”„λ‘œμ νŠΈλ₯Ό githubμ—μ„œ forkν•˜μ—¬ 진행함
@5pecia1
5pecia1 / change_go.sh
Created August 14, 2020 00:23
change default go version
sudo rm -rf /usr/local/go
sudo ln -s $PWD/$1 /usr/local/go
@5pecia1
5pecia1 / dodo_fighter_agent.py
Created August 18, 2018 12:22 — forked from segfault87/dodo_fighter_agent.py
도도 νŒŒμ΄ν„°(https://pycon-2018-dodo-fighter.spoqa.com) μ—μ΄μ „νŠΈ 예제 μ½”λ“œ
import json
import sys
# 도도 νŒŒμ΄ν„°μ— μ°Έκ°€ν•˜κΈ° μœ„ν•΄μ„œλŠ” μ—μ΄μ „νŠΈλ₯Ό λ§Œλ“€μ–΄μ„œ μ œμΆœν•΄ μ£Όμ…”μ•Ό ν•©λ‹ˆλ‹€.
# μ—μ΄μ „νŠΈλŠ” μ‚¬μš©μžκ°€ μž‘μ„±ν•˜λŠ” 인곡지λŠ₯ μ½”λ“œλ‘œμ„œ, μ£Όμ–΄μ§€λŠ” ν˜„μž¬ κ²Œμž„ μƒνƒœλ₯Ό λ°”νƒ•μœΌλ‘œ
# μ–΄λ–€ μ•‘μ…˜μ„ μ·¨ν• μ§€λ₯Ό κ²°μ •ν•˜λŠ” 역할을 ν•©λ‹ˆλ‹€.
#
# μ•‘μ…˜ μ„€λͺ…
# - idle - 아무것도 ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
# - forward - μ•žμœΌλ‘œ μ›€μ§μž…λ‹ˆλ‹€. μƒλŒ€κ°€ λ°”λ‘œ μ•žμ— μžˆμ„ 경우 더 움직이지 μ•ŠμŠ΅λ‹ˆλ‹€.
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
import tensorflow as tf
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, shape=[None, 784])
y_ = tf.placeholder(tf.float32, shape=[None, 10])
W = tf.Variable(tf.zeros([784,10]))
b = tf.Variable(tf.zeros([10]))
sess.run(tf.global_variables_initializer())
0x05E7bE3755f987Caed5387487B4Cc5CD23102108
@5pecia1
5pecia1 / deleteCards.js
Last active December 9, 2017 15:58
delete multiple cards in list in trello
/**
* CAUTION!
* Copy board before run.
* Lists start at 0.
*/
function deleteCardsInList(listNumber) {
var list = document.getElementsByClassName("list-cards")[listNumber];
var a = list.getElementsByTagName('a');
var aLength = a.length;
@5pecia1
5pecia1 / .gitconfig
Last active May 26, 2017 14:15
add git pretty log alias
git config --global alias.lg "log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@5pecia1
5pecia1 / 8x8_binary_ascii.txt
Last active May 26, 2017 02:19
convert hexadecimal ascii to binary ascii (8 x 8)
Space - Ascii 32
[
00000000,
00000000,
00000000,
00000000,
00000000,
00000000,
00000000,
00000000