This file contains 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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
#app { | |
font-family: Avenir, Helvetica, Arial, sans-serif; | |
text-align: center; | |
margin-top: 60px; |
This file contains 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
item[0].type === "screen" |
This file contains 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
curl -s https://www.staticgen.com/ \ | |
| hgrep -t "p[class*=Card__]" \ | |
| sed -e 's/\s\+/\n/g' \ | |
| sed -e 's/\.//g' \ | |
| sed -e 's/,//g' \ | |
| tr [:upper:] [:lower:] \ | |
| sort \ | |
| uniq -c \ | |
| sort -r \ | |
| head -10 |
This file contains 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
<!dohctype html> | |
<html> | |
<head lang='en'> | |
<meta charset='utf-8'> | |
<meta name='viewport' content='width=device-width'> | |
<title>This is a smallgame</title> | |
<style> | |
body { | |
font-family: 'Helvetica Neue', Arial, sans-serif; |
This file contains 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
#!/usr/bin/env bash | |
command -v jar >/dev/null 2>&1 || { echo >&2 "I require jar program but it's not on the path. Aborting."; exit 1; } | |
command -v aapt >/dev/null 2>&1 || { echo >&2 "I require aapt program but it's not on the path. Aborting."; exit 1; } | |
ICON_FILE="$(aapt d --values badging "$1" | grep "application: label" | cut -f 3 -d "=" | cut -f 2 -d "'")" | |
jar xvf "$1" "${ICON_FILE}" > /dev/null | |
cp "${ICON_FILE}" . | |
rm -r "${ICON_FILE}" | |
IFS='/' read -r -a array <<< "${ICON_FILE}" | |
echo "${array[-1]}" |
This file contains 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
#!/usr/bin/env node | |
const cli = require('cli'); | |
let line_number = 0, re; | |
cli.withInput(function (line, newline, eof) { | |
line_number = line_number + 1; | |
re = new RegExp(process.argv[2]); | |
if (!eof) { | |
if(line.match(re)) { | |
this.output(line.replace(/\)\s*;\s*$/, ', "'+line_number+'");')); |
This file contains 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
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev python3.6-dev | |
#Optional: so vim can be uninstalled again via `dpkg -r vim` | |
sudo apt-get install checkinstall | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
cd ~ |
This file contains 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
#!/usr/bin/env node | |
const cli = require('cli'), | |
moment = require('moment'), | |
config = require('./config'); | |
function getAndroidTimeStr(str) { | |
const timeRe = /^\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d/; | |
let resultStr = timeRe.exec(str); | |
return resultStr === null ? "" : resultStr[0]; | |
} |
This file contains 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
[Desktop Entry] | |
Type=Action | |
Name[ko]=날짜 폴더 | |
Tooltip[ko]=오늘 날짜 이름으로 폴더를 만든다 | |
Icon[ko]=add | |
TargetContext=false | |
TargetLocation=true | |
ToolbarLabel[ko]=날짜 디렉토리 | |
Profiles=profile-zero; |
This file contains 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
function hits() { | |
echo $(curl -s https://agvim.wordpress.com/ | hgrep -t '#blog-stats-18 > ul > li') $(date +"%m월%d일") | |
} |
NewerOlder