Skip to content

Instantly share code, notes, and snippets.

View zinozzino's full-sized avatar
😄
Always be happy

Jinho Jeong zinozzino

😄
Always be happy
View GitHub Profile
@zinozzino
zinozzino / index.css
Last active January 18, 2023 12:44
HTML 과제1번
.root {
background-color: yellow;
}
@zinozzino
zinozzino / use-derived-state.ts
Created May 14, 2020 09:04
useDerivedState hook
import {
useRef,
useEffect,
useState,
Dispatch,
SetStateAction,
} from 'react';
const noop = () => {
return undefined;
@zinozzino
zinozzino / dump-clipboard-data.html
Created October 17, 2019 02:20
Dump Clipboard Data
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
@zinozzino
zinozzino / mov-to-gif.sh
Created January 31, 2019 09:53
mov to gif
#!/bin/bash
# Original Gist: https://gist.github.com/baumandm/1dba6a055356d183bbf7
# Requirements:
# ffmpeg ( install via `brew install ffmpeg` )
SOURCE=$1
DEST=${SOURCE%%.*}
PALETTE="$(python -c "import uuid; print(uuid.uuid4().hex, end='')").png"
@zinozzino
zinozzino / nuxt.config.js
Last active June 14, 2018 04:59
Nuxt.js and Cordova
module.exports = {
// 이러면 build == generate 가 됨.
mode: 'spa',
build: {
// cordova에서 _ (underscore) 붙은 디렉토리는 앱 빌드에서 제외함.
publicPath: '/nuxt/',
// image asset을 제대로 불러오기 위해 필요.
extractCSS: false,
splitChunks: {
pages: false,
@zinozzino
zinozzino / termite.config.md
Last active July 25, 2019 16:04
My termite config

Generate color config by Terminal.sexy

Color scheme is Dracula Theme

[options]
allow_bold = true
browser = firefox
clickable_url = true
font = D2Coding 10 
@zinozzino
zinozzino / mpd-unixsocket.lua
Created January 21, 2016 18:41
If you want to use UNIX domain socket instead of a TCP socket in MPD Widget (copycat-killers/lain)
--[[ Before
mpdh = "telnet://" .. host .. ":" .. port
async.request(echo .. " | curl --connect-timeout 1 -fsm 3 " .. mpdh, function (f)
--]]
--[[ After
mpdh = "~/.config/mpd/socket"
async.request(echo .. " | ncat -U " .. mpdh, function (f)
@zinozzino
zinozzino / pulsebar.lua
Last active January 15, 2016 09:36
Pulseaudio widget for awesome using lain
--[[
Inspired by
Lain (https://github.com/copycat-killer/lain),
APW (https://github.com/mokasin/apw)
--]]
local newtimer = require("lain.helpers").newtimer
local read_pipe = require("lain.helpers").read_pipe
local awful = require("awful")