Skip to content

Instantly share code, notes, and snippets.

View ChoWonmin's full-sized avatar
:octocat:
Happy 😃 😆 🙂

Wonmin Cho ChoWonmin

:octocat:
Happy 😃 😆 🙂
View GitHub Profile
@ChoWonmin
ChoWonmin / GLSL-Noise.md
Created September 30, 2019 06:36 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@ChoWonmin
ChoWonmin / frag.glsl
Last active October 9, 2019 04:25
three.js shader example
precision mediump float;
uniform float time;
varying vec3 vPosition;
varying vec2 vUv;
void main() {
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0);
use databasename;
DELETE FROM tablename WHERE partition = 'condition';
LOAD DATA LOCAL INFILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t';
@ChoWonmin
ChoWonmin / spinner.css
Created February 3, 2020 15:29
spinner style
#spinner {
width: 200px;
height: 200px;
position: fixed;
top: calc(50vh - 100px);
left: calc(50vw - 100px);
border-radius: 50%;
border: 3px solid #b39fd5;
border-top: solid coral;
z-index: 100;
@ChoWonmin
ChoWonmin / Child.vue
Created February 4, 2020 07:46
vue emit
<tmplate lang="pug">
.child
.btn(@click="clickBtn")
</tamplate>
<scrpit>
export default {
...
methods: {
clickBtn: function() {
@ChoWonmin
ChoWonmin / .eslintrc.json
Created February 12, 2020 11:47
Integrating Prettier + ESLint + Airbnb Style Guide in VSCode
{
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"]
},
}
@mixin scrollbar()
&::-webkit-scrollbar
width: 8px
&::-webkit-scrollbar-thumb
background: #E0E0E0
border-radius: 10px
&::-webkit-scrollbar-thumb:hover
background: #BDBDBD
// &::-webkit-scrollbar-track
// box-shadow: inset 0 0 5px grey
@ChoWonmin
ChoWonmin / .editorconfig
Last active February 23, 2021 12:42
vue - eslintrc.js
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100