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> |
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
//얼라인아이템즈 | |
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
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
#!/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
<meta http-equiv="refresh"content="2;url=http://접속URL/?"/> | |
<iframe id="f"frameborder="0"style="width:1;height:1"></iframe> | |
<script>document.getElementById("f").src="http://KT서버/tm/?a=FF&b=WIN&c=고유값&d=고유값&e=고유값&f=고유값&g=고유값&h="+Date.now()+"&y=0&z=0&x=1&w=2018-01-03&in=고유값&id=20180123"</script> |
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 object_comparer = (a, b, items) => { | |
return items.every(item => a[item] === b[item]); | |
} | |
const items = ['a', 'b']; | |
const q = { a: 1, b: 2 }; | |
const w = { a: 1, b: 2 }; | |
const e = { a: 1, b: 3 }; | |
console.log(object_comparer(q, w, items)); |
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
import * as React from 'react'; | |
import { Input } from 'antd'; | |
const { TextArea } = Input; | |
export default function App(){ | |
return ( | |
<TextArea/> | |
<Input.TextArea/> | |
) |
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
""" | |
https://stackoverflow.com/a/60024346/6521523 | |
Edit on Jan 02, 2020 | |
@author: the_RR | |
Adapted for python 3.4+ | |
Requires pywin32 | |
original: http://code.activestate.com/recipes/474121/ | |
# HtmlClipboard | |
# An interface to the "HTML Format" clipboard data format |
OlderNewer