Skip to content

Instantly share code, notes, and snippets.

View nacyot's full-sized avatar
🧶
The Science of Hitting

Daegwon Nacyot Kim nacyot

🧶
The Science of Hitting
View GitHub Profile
function splitHangul(words){
if (!words){ return []; }
return _.chain(Hangul.disassemble(words, true)).map((char) => {
return splitChoJungJong(char);
}).value();
}
function splitChoJungJong(jamos){
let endCho = false;
let cho = [];
// p5.js 한글 API
//
// http://codepen.io/nacyot/pen/Nrdjrd 에서 사용 가능
//
// 아래는 예제 코드
// 반드시,
// function setup(){
// //... 사이에 작성되어야함.
// }
//
import hashlib
import datetime
import json
from IPython.core.magic import Magics, magics_class, cell_magic
from IPython.display import HTML
@magics_class
class JavascriptMagics(Magics):
from IPython.core.magic import Magics, magics_class, cell_magic
from IPython.display import HTML
import hashlib
import datetime
import os
import sys
import shutil
import glob
import base64
on alfred_script(keyword)
set the clipboard to keyword
tell application id "DNtp"
activate
end tell
tell application id "com.apple.systemevents"
tell process id "DNtp"
keystroke "f" using {shift down, command down}
keystroke "v" using {command down}
keystroke return
on alfred_script(keyword)
set the clipboard to keyword
tell application id "DNtp"
activate
end tell
tell application id "com.apple.systemevents"
tell process id "DNtp"
keystroke "f" using {option down, command down}
keystroke "v" using {command down}
keystroke return
# Configuration file for ipython.
c = get_config()
#------------------------------------------------------------------------------
# InteractiveShellApp configuration
#------------------------------------------------------------------------------
# A Mixin for applications that start InteractiveShell instances.
#
from IPython.core.magic import Magics, magics_class, cell_magic
from IPython.display import HTML
import hashlib
import datetime
@magics_class
class D3jsMagics(Magics):
TEMPLATE = """
div#notebook{
background-color: white;
}
#notebook-container{
width: 99%;
}
div.code_cell{
flex-direction: row;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.