Skip to content

Instantly share code, notes, and snippets.

@hjroh0315
hjroh0315 / designer.html
Last active November 9, 2015 10:56
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map-directions.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
// ==UserScript==
// @name Embed in bio
// @namespace http://tampermonkey.net/
// @version Noone cares about the version :P
// @description Embed in bio
// @author hjroh0315
// @match *://*.stackexchange.com/users/*/*
// @match *://stackoverflow.com/users/*/*
// @grant none
// ==/UserScript==
@hjroh0315
hjroh0315 / plz_send_teh_codez
Last active April 1, 2017 15:25
PPCG hates long codes :\
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+
@hjroh0315
hjroh0315 / ACOG.user.js
Last active January 18, 2019 16:28
ACOG mod krunker
// ==UserScript==
// @name ACOG mod
// @version 0.1
// @description ACOG in krunker!
// @author BuffSemi(hjroh0315, matt-roh)
// @match https://krunker.io/*
// @run-at document-idle
// @grant none
// ==/UserScript==
@hjroh0315
hjroh0315 / multidimensional_vector_prototype.cpp
Created January 2, 2022 06:18
변태같은 다차원벡터
#include <iostream>
#include <vector>
using namespace std;
template<int>
struct multivector;
template<>
struct multivector<1>
{
vector<int> vec;
@hjroh0315
hjroh0315 / wtf.cpp
Created January 2, 2022 07:16
하이퍼문제 이걸로 풀어보실 분 구합니다
#include <iostream>
#include <vector>
#include <deque>
#include <initializer_list>
using namespace std;
template<int>
struct multivector;
template<>
struct multivector<1>
@hjroh0315
hjroh0315 / istream_iterable_nonstring.cpp
Last active January 7, 2022 15:42
range-based for이 가능한 문자열제외 모든 타입에 대해 cin이 가능하게 해줍니다.
#include <iostream>
#include <type_traits>
#include <vector>
template<typename T>
struct is_string
: public std::disjunction<
std::is_same<char *, typename std::decay_t<T>>,
std::is_same<const char *, typename std::decay_t<T>>,
std::is_same<std::string, typename std::decay_t<T>>
> {
@hjroh0315
hjroh0315 / pythonic.cpp
Created January 10, 2022 16:27
Pythonic한 입력법을 C++에 구현하는법
#include <iostream>
#include <functional>
#include <vector>
#include <sstream>
#include <iterator>
#include <algorithm>
using namespace std;
template <class T, class Ty>
struct PipeOperation
{
@hjroh0315
hjroh0315 / cyclicshift_with_variable_width. cpp
Created January 12, 2022 12:28
rotr, rotl에 대한 크기를 런타임에 지정 가능한 구현
#include <iostream>
#include <bitset>
using namespace std;
template<class T>
T rotrN(T in, int N, int s);
template<class T>
T rotlN(T in, int N, int s);
@hjroh0315
hjroh0315 / compiletimefibo.cpp
Created January 21, 2022 15:19
정신나간 컴파일타임 피보나치
#include<iostream>
template <int ... Ns> struct sequence {};
template <int ... Ns> struct seq_gen;
template <int I,int J, int ... Ns>
struct seq_gen<I,J, Ns...>
{
using type = typename seq_gen<
J-I,I,J, Ns...>::type;