I hereby claim:
- I am cereme on github.
- I am cereme (https://keybase.io/cereme) on keybase.
- I have a public key ASDrG4ErPPjhRtDwsUAdViseRShglQqhbnYfAFE7wLKtUAo
To claim this, I am signing this object:
| div.thum { | |
| position: relative; | |
| width: 100%; | |
| padding-top: 100%; /* initial ratio of 1:1*/ | |
| } | |
| div.thum > img { | |
| width: 100% | |
| position: absolute; | |
| top: 0; |
I hereby claim:
To claim this, I am signing this object:
| import aiohttp | |
| def generate_logger(name): | |
| async def logger(session, trace_config_ctx, params): | |
| print(name) | |
| return logger | |
| trace_config = aiohttp.TraceConfig() | |
| handlers = filter(lambda x: x.startswith("on_"), dir(trace_config)) | |
| for handler_name in handlers: | |
| getattr(trace_config, handler_name).append(generate_logger(handler_name)) |
| import re | |
| lines = None | |
| char_dict = {} | |
| valid_regex = re.compile('[가-힣A-Za-z0-9]') | |
| def char_filter(elem): | |
| return bool(valid_regex.match(elem[0])) | |
| with open('./baram_email.txt', 'r') as f: | |
| lines = f.readlines() |
| class HashableTrap: | |
| def __init__(self, data): | |
| self.data = data | |
| def __repr__(self): | |
| return "EvenReprIsSame" | |
| def __hash__(self): | |
| return 1 |
| """ | |
| 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 |
| import * as React from 'react'; | |
| import { Input } from 'antd'; | |
| const { TextArea } = Input; | |
| export default function App(){ | |
| return ( | |
| <TextArea/> | |
| <Input.TextArea/> | |
| ) |
| #!/bin/bash | |
| array=($(ls -d */)) | |
| for elem in ${array[@]}; do | |
| sourcerer add ./${elem} | |
| done |
| 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)); |
| <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> |