Skip to content

Instantly share code, notes, and snippets.

View acidsound's full-sized avatar

LEE JAE HO acidsound

View GitHub Profile
@acidsound
acidsound / main.js
Created February 15, 2021 16:54
xlsx generator
const jszip = new require('jszip')
const zip = new jszip()
const fs = require('fs')
const csv = require('csvtojson')
const exec = async (templateFileName, sourceFileName) => {
const data = fs.readFileSync(templateFileName)
const content = await zip.loadAsync(data)
const targetFile = 'xl/sharedStrings.xml'
const doc = await content.files[targetFile].async('string')
@acidsound
acidsound / main.js
Last active December 24, 2020 02:33
gitlab에서 merge request 목록 가져오기
PRIVATE_TOKEN=XXXXXXXXXXXX
API=https://XXXXXX/api/v4
@acidsound
acidsound / README.md
Last active December 4, 2020 11:50
blocks test gist

test it

import React, {useCallback, useRef, useState} from 'react';
import {Drawer, makeStyles} from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
dragger: {
height: '4px',
cursor: 'ns-resize',
padding: '0 4px',
borderLeft: '1px solid #ddd',
position: 'absolute',
@acidsound
acidsound / prompt.sh
Created June 12, 2020 03:10
windows git bash 용 prompt 설정
export PS1="\[\e[36;1m\]\u@\[\e[31;1m\]\W:\033[36m\]`__git_ps1`\[\033[0m\]$ "
@acidsound
acidsound / figmaAPI.json
Last active June 5, 2020 03:24
figma API
{
"document": {
"id": "0:0",
"name": "Document",
"type": "DOCUMENT",
"children": [
{
"id": "0:1",
"name": "Page 1",
"type": "CANVAS",
@acidsound
acidsound / README.md
Created January 16, 2020 07:05
Glitch Synth

Javascript glitch synth

@acidsound
acidsound / meteor_create.md
Last active June 12, 2020 03:12
meteor handson - create

meteor original

meteor create --bare ex1 && cd ex1
meteor remove static-html
meteor add blaza-html-template
mkdir client server lib
vi client/index.html
<body>
@acidsound
acidsound / ping.go
Last active October 17, 2019 04:50
a ping example compatible with the redis-benchmark
package main
import (
"bufio"
"io"
"net"
)
type Server struct {
listener net.Listener
@acidsound
acidsound / consumer.csv
Last active October 17, 2019 05:02
kafka bench
start.time end.time data.consumed.in.MB MB.sec data.consumed.in.nMsg nMsg.sec [rebalance.time.ms](http://rebalance.time.ms/) [fetch.time.ms](http://fetch.time.ms/) fetch.MB.sec fetch.nMsg.sec
2019-10-17 04:04:55:967 2019-10-17 04:04:58:113 47.6885 22.2220 5000498 2330148.1827 16 2130 22.3890 2347651.6432