Skip to content

Instantly share code, notes, and snippets.

View oktavianidewi's full-sized avatar
🏠
Working from home

Dewi Oktaviani oktavianidewi

🏠
Working from home
View GitHub Profile
@oktavianidewi
oktavianidewi / redis_cheatsheet.bash
Created May 23, 2019 03:47 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@oktavianidewi
oktavianidewi / SWNReader.py
Created April 12, 2016 10:41 — forked from DJSagarAhire/SWNReader.py
A short utility to read SentiWordNet made in Python.
import sys
def split_line(line):
cols = line.split("\t")
return cols
def get_words(cols):
words_ids = cols[4].split(" ")
words = [w.split("#")[0] for w in words_ids]
return words
@oktavianidewi
oktavianidewi / 0_reuse_code.js
Created February 29, 2016 05:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console