Skip to content

Instantly share code, notes, and snippets.

View acidsound's full-sized avatar

LEE JAE HO acidsound

View GitHub Profile
@acidsound
acidsound / upload.js
Created April 25, 2021 10:28
pastebin node.js API
const FormData = require('form-data')
const axios = require('axios')
const getUserKey = async ({
api_dev_key,
api_user_name,
api_user_password,
}) => {
const formData = new FormData()
formData.append('api_dev_key', api_dev_key)
@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