Skip to content

Instantly share code, notes, and snippets.

View Bue-von-hon's full-sized avatar

김태훈 Bue-von-hon

  • VROONG
  • seoul
  • 22:03 (UTC +09:00)
View GitHub Profile
@kde713
kde713 / safepass.js
Last active February 2, 2024 08:21
국민대학교 안전교육 이수 스크립트 (2020.04.09 동작확인)
const INTERVAL = 10000;
var getQueryVariable = function (key) {
let query = window.location.search.substring(1);
let vars = query.split('&');
for (let i = 0; i < vars.length; i++) {
let pair = vars[i].split('=');
if (decodeURIComponent(pair[0]) == key) {
return decodeURIComponent(pair[1]);
}
@algon-320
algon-320 / auto_get_rating.html
Last active June 9, 2021 13:39
AtCoder・Codeforces・TopCoderのレーティングを取得して色付きで表示する
<p>
AtCoder : <a id="atcoder" target="_blank" style="text-decoration:none;font-weight:bold;">loading</a><br>
Codeforces : <a id="codeforces" target="_blank" style="text-decoration:none;font-weight:bold;">loading</a><br>
TopCoder SRM : <a id="topcoder" target="_blank" style="text-decoration:none;font-weight:bold;">loading</a><br>
</p>
<script type="text/javascript" src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
var ratings = { 'atcoder':0, 'codeforces':0, 'topcoder':0 };
var handles = { 'atcoder':'algon', 'codeforces':'algon_320', 'topcoder':'algon_320' };
# zsh
EMOJI=(💩 🐦 🚀 🐞 🎨 🍕 🐭 👽 ☕️ 🔬 💀 🐷 🐼 🐶 🐸 🐧 🐳 🍔 🍣 🍻 🔮 💰 💎 💾 💜 🍪 🌞 🌍 🐌 🐓 🍄 )
function random_emoji {
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]"
}
PROMPT="$(random_emoji) "
RPROMPT='%c'