This file contains hidden or 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
#!/bin/bash | |
array=($(ls -d */)) | |
for elem in ${array[@]}; do | |
sourcerer add ./${elem} | |
done |
This file contains hidden or 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
const your_api_key = ""; | |
const region_code = "kr"; | |
fetch(`https://www.googleapis.com/youtube/v3/videoCategories?part=snippet®ionCode=${region_code}&key=${your_api_key}`,{method:'get'}) | |
.then(res=>res.json()) | |
.then(res=>res.items.filter(e=>e.snippet.assignable).forEach(e=>console.log(e.id, e.snippet.title))); | |
/* | |
1 Film & Animation | |
2 Autos & Vehicles | |
10 Music | |
15 Pets & Animals |
This file contains hidden or 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
//얼라인아이템즈 | |
const alignItems = | |
(items) => items.filter(item => item.age < 19); |
This file contains hidden or 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
class GlobalState{ | |
constructor(){ | |
this.foo = true; | |
this.observers = []; | |
} | |
_mutateFoo(foo){ | |
this.foo = foo; | |
for(let component of this.observers){ | |
component.setState({foo: this.foo}); |
This file contains hidden or 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
<script type="text/javascript" src="{{ url_for('static', filename='main.js') }}"></script></body> |
NewerOlder