Skip to content

Instantly share code, notes, and snippets.

View bguzryanto's full-sized avatar
🎯
Focusing

Bagus Rianto bguzryanto

🎯
Focusing
View GitHub Profile

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@acdlite
acdlite / app.js
Last active January 20, 2023 08:23
Quick and dirty code splitting with React Router v4
// getComponent is a function that returns a promise for a component
// It will not be called until the first mount
function asyncComponent(getComponent) {
return class AsyncComponent extends React.Component {
static Component = null;
state = { Component: AsyncComponent.Component };
componentWillMount() {
if (!this.state.Component) {
getComponent().then(Component => {
@fyears
fyears / note.md
Last active February 6, 2024 09:59
how to install scipy numpy matplotlib ipython in virtualenv

if you are using linux, unix, os x:

pip install -U setuptools
pip install -U pip

pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
@ogrrd
ogrrd / dnsmasq OS X.md
Last active June 1, 2025 05:55
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@geovedi
geovedi / 00-pemeriksa-ejaan.md
Last active November 29, 2023 06:07
Catatan pengembangan pemeriksa ejaan bahasa Indonesia

Isu Seputar Pemeriksa Ejaan

Tugas pemeriksaan ejaan adalah untuk mengetahui kata-kata yang salah eja dalam teks, dan juga untuk memberikan daftar pengganti dieja dengan benar.

Sebuah fasilitas pemeriksaan ejaan dapat menjadi aplikasi yang berdiri sendiri, atau terintegrasi dengan aplikasi lain pengolahan teks.

Mencari Kecocokan dalam Kosakata

Kosakata biasanya berupa kamus. Kamus yang memungkinkan untuk digunakan dapat berupa kamus statik (dengan kosakata yang tetap) dan kamus dinamik (memungkinkan melakukan operasi mikro seperti menyisipkan atau menghapus elemen dari sebuah kata).

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 11, 2025 03:13
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 14, 2025 04:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@vgoklani
vgoklani / mongodb_drop.py
Created January 3, 2012 18:40
drop a database or collection via pymongo
# dropping a database via pymongo
from pymongo import Connection
c = Connection()
c.drop_database('mydatabase')
# drop a collection via pymongo
from pymongo import Connection
c = Connection()
c['mydatabase'].drop_collection('mycollection')