Skip to content

Instantly share code, notes, and snippets.

View RiansyahTohamba's full-sized avatar
💭
on learning

Riansyah Tohamba RiansyahTohamba

💭
on learning
View GitHub Profile
import nltk
# ubah jadi tipe nltk
def convertToText(filename):
# raw/str -> token/list -> convert ke nltk.Text
raw = open(filename).read()
# type(raw) == string
tokens = nltk.word_tokenize(raw)
# type(tokens) == list
# token bisa berupa tanda-baca{?.,etc}, pos = {adverb,adj,}
return nltk.Text(tokens)
@hauthorn
hauthorn / postman.desktop
Last active May 17, 2024 12:19
Postman desktop entry
[Desktop Entry]
Categories=Development;
Comment=Supercharge your API workflow
Exec="/home/hauthorn/Programs/Postman/Postman"
Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png
Name=Postman
Terminal=false
Type=Application
Version=1.0
@mmcgahan
mmcgahan / gist:9fa045d98c7c122f1c0b
Created June 18, 2014 19:09
Handlebars template inheritance
# Template composition with inclusion
Every template language I have seen provides some mechanism for one template to include another, thus supporting the reuse of repeated elements like headers and footers. The included templates are called partials in Mustache parlance:
```html
<!-- home.hbs -->
<html>
<body>
{{> header}}
<p> HOME </p>
{{> footer}}