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);
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use databasename; | |
DELETE FROM tablename WHERE partition = 'condition'; | |
LOAD DATA LOCAL INFILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tmplate lang="pug"> | |
.child | |
.btn(@click="clickBtn") | |
</tamplate> | |
<scrpit> | |
export default { | |
... | |
methods: { | |
clickBtn: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": ["airbnb", "prettier"], | |
"plugins": ["prettier"], | |
"rules": { | |
"prettier/prettier": ["error"] | |
}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*.{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 |