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
print("Hello World") |
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
% octave will search m-file here too | |
addpath('C:\Users\ang\Desktop') |
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
a <- 10 | |
b <- 32 | |
a+b |
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
soft hyphen (ISO 8859: 0xAD, Unicode U+00AD SOFT HYPHEN, HTML: ­ ­) | |
or syllable hyphen (EBCDIC: 0xCA), abbreviated SHY, | |
is a code point reserved in some coded character sets for the purpose of | |
breaking words across lines by inserting visible hyphens. |
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
remain <- c(11,12,11,13) | |
# name the elements | |
suits <- c("spades", "hearts", "diamonds", "clubs") | |
names(remain) <- suits | |
# shortcut | |
remain <- c(spades=11, hearts=12, diamonds=11, clubs=13) | |
str(remain) # see detail |
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
11:51 AM | |
วันนี้ ที่ achieve หลัก คือได้ tool จด knowledge แล้ว | |
ใช้ gist + gisto | |
gist.github.com/korakot | |
gisto app มีบนทั้ง mac/win | |
สำคัญคือเรื่อง #tag ให้ค้นหาง่าย | |
ถ้าเล่นบน ipad ก็ใช้ web interface ไป | |
ข้อเจ๋ง คือ backend เป็น git จึงมี track history และ compare versions ได้ | |
เรื่อง tool เก็บ knowledge เป็นเรื่องใหญ่มากของพี่ เพราะเป็น foundation ของเรื่องอื่นทุกเรื่อง |
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
alias ll="ls -l" |
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
# ลง hunspell + python ไม่สำเร็จ | |
# แต่มาเจอ pyenchant ที่ใช้ได้เหมือนกัน และมี custom word list ด้วย | |
>>> import enchant | |
>>> pwl = enchant.request_pwl_dict("royin_2542_wordlist.txt") | |
>>> pwl.check("กรกฎ") | |
True | |
>>> pwl.check("กรกำ") | |
False | |
>>> pwl.suggest("กรกำ") |
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
>>> import enchant | |
>>> d = enchant.request_pwl_dict("royin_2542_wordlist.txt") | |
>>> d.check("กรกำ") | |
False | |
>>> d.suggest("กรกำ") | |
['กรก', 'กรกฎ', 'กรกฏ', 'กรกช', 'กรำ', 'กร่ำ'] |
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
# From https://github.com/graphaelli/ipython-elasticsearch | |
import json | |
import os, re | |
import urllib.parse | |
from IPython.core.magic import Magics, magics_class, line_cell_magic | |
import requests | |
OlderNewer