Skip to content

Instantly share code, notes, and snippets.

View nnattawat's full-sized avatar

Nattawat Nonsung nnattawat

  • Sydney, Australia
View GitHub Profile
@nnattawat
nnattawat / docker-compose.yml
Created April 10, 2020 15:52
Docker setup for Drupal with bootstrap theme
version: "2"
services:
drupal:
build:
context: .
dockerfile: drupal.Dockerfile
image: custom-drupal
ports:
- 8080:80
@nnattawat
nnattawat / keybase.md
Created February 20, 2019 00:10
keybase.md

Keybase proof

I hereby claim:

  • I am nnattawat on github.
  • I am nnonsung (https://keybase.io/nnonsung) on keybase.
  • I have a public key ASDoIuWJynPBNMnfzRuvlRQI2PKDUQSHETQZs5wC-InpGQo

To claim this, I am signing this object:

@nnattawat
nnattawat / README.md
Last active December 18, 2015 01:12
Ruby script to sync files locally using rsync

Ruby script to sync files using rsync

Change sources_destinations_mapping array to any of your paths

For other options, please read more about rsync

@nnattawat
nnattawat / README.md
Last active October 26, 2015 05:11
Useful sublime snippet for rails developer

Simple Sublime snippet that I am personnaly using to faster the development, such as binding.pry and rspec syntax.

Usage

Copy those file into your Sublime installation > Packages > User. For Mac users, it should locate at ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/. Then there will be snippet showing while you are typing in the ruby file.

Read more about Sublime Snippet

@nnattawat
nnattawat / README.md
Last active August 29, 2015 13:57
A reusable punchcard of yearly data

A reusable d3 punchcard inspired by Reuseable Charts article. Part of code is reused from mbostock's punchcard. Color and size of circles are varied based on their data point's value. I also add an option to use the same radius scale across all data sets.

The example can be view on bl.ocks.org.

@nnattawat
nnattawat / README.md
Last active March 6, 2017 16:46 — forked from mbostock/.block
Integrate brushing and scrolling zoom interactions
@nnattawat
nnattawat / README.md
Last active March 31, 2018 20:52
A reusable d3 donut chart
@nnattawat
nnattawat / README.md
Last active August 29, 2015 13:56
A reusable d3 line chart

A reusable d3 line chart inspired by Reuseable Charts article. Function line() is used to create a new chart instance. Graphs are rendered using randomly-generated data which will be updated repeatedly.

This example can be view on bl.ocks.org.

@nnattawat
nnattawat / .block
Last active May 6, 2023 11:50 — forked from mbostock/.block
Histogram chart using d3.
license: gpl-3.0
height: 620
border: no