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/sh | |
for X in `find . -name "*"`;do | |
utf-8_filename=`echo $X | iconv -f euc-kr -t utf-8` | |
mv "$X" "$utf-8_filename" | |
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
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
var letters = 'abcdefghijklmnopqrstuvwxyz'; | |
async function inviteAllUsers() { | |
for(var i = 0; i < letters.length; i++){ | |
await sleep(300); | |
$('#channel_actions_toggle').click(); | |
await sleep(300); |
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
from JSAnimation import IPython_display | |
from matplotlib import animation | |
fig = plt.figure() | |
ax = plt.axes() | |
def init(): | |
ax.plot(some_data) | |
def step(i): | |
ax.plot(other_ith_data) |
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
# Configure | |
import logging, sys | |
reload(logging) | |
logger = logging.getLogger('program_name') | |
logger.setLevel(logging.INFO) | |
fh = logging.FileHandler('logfilename.log') | |
fh.setLevel(logging.INFO) | |
ch = logging.StreamHandler(sys.stdout) | |
ch.setLevel(logging.INFO) | |
formatter = logging.Formatter('%(asctime)s %(name)s [%(levelname)s] %(message)s') |
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
from __future__ import print_function | |
from IPython.html.widgets import interact, interactive, fixed | |
from IPython.html import widgets | |
@interact(w_ord=(0,100)) | |
def viz_data(w_ord): | |
pass |
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
set tabstop=4 | |
set shiftwidth=4 | |
set cindent | |
set autoindent | |
set smartindent | |
set nu | |
syntax on | |
filetype on | |
set backspace=start,indent,eol | |
set history=1000 |
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
iconv -f=euc-kr -t=UTF-8 filename | |
mencoder movie.avi -sub movie.srt -o movie.hardsubs.avi -oac copy -ovc lavc -lavcopts vbitrate=1200 |