Skip to content

Instantly share code, notes, and snippets.

View oshanz's full-sized avatar
🌴
On vacation

Oshan Wisumperuma oshanz

🌴
On vacation
View GitHub Profile
@oshanz
oshanz / books.md
Last active May 27, 2020 09:01
books
@oshanz
oshanz / Visualization.md
Last active May 7, 2020 11:35
Visualization
* The [Vega ecosystem](https://vega.github.io/)
  * [Altair](https://github.com/altair-viz/altair) - declarative data visualization
  * [Voyager](https://github.com/vega/voyager) - Automatic Exploratory Data Analysis
  * [Lyra](https://github.com/vega/lyra) - Tableau-like data visualization design
* [Seaborn](https://github.com/mwaskom/seaborn)
* [Plot.ly](https://github.com/plotly/plotly.py)
@oshanz
oshanz / postgraphile.md
Created April 23, 2020 11:21
tune postgraphile

npx postgraphile -c my_db_name -s my_schema_name

postgraphile --disable-query-log --simple-collections only --disable-graphiql --legacy-relations omit --no-setof-functions-contain-nulls --max-pool-size 20

@oshanz
oshanz / be efficient with leagacy code.md
Last active April 16, 2020 15:20
how to start development fast on legacy systems
  1. ask for a walkthrough from someone who know it
  • identify the design patterns

  • familiar with domain tech terms

  • scan the code, method: read and jump and again...

  • know the process

  • be a shadow developer
  • select development ongoing task
  • know code guidlines, workflow throug out the team
@oshanz
oshanz / Unit Testing What not to Test.md
Last active April 15, 2020 10:59
Unit Testing What not to Test

identify the goals

  • help to maintain the app
  • reduces the cost of bug

all features? how to decide

  • prioritize the feature (MoSCoW method) Must have, Should have, Could have, Won't have
  • cost to write and run vs benifit
@oshanz
oshanz / kushan todo list.md
Last active April 8, 2020 04:48
kushan todo list

shopping cart

  • auth login - permissions
  • add, list products
  • order placement
  • sandbox payment gateway intergration
  • approve order
  • reports and charts
  • unit tests
  • deploy
@oshanz
oshanz / bootsnap tests.md
Created March 26, 2020 04:01
boostsnap profile

before

$ time DISABLE_SPRING=1 bin/rails r 'exit 0'

real	0m6.617s
user	0m4.880s
sys	0m1.600s

after

@oshanz
oshanz / database.yml
Created March 2, 2020 18:55 — forked from henrik/database.yml
Per-branch development database with Git and Ruby on Rails.
<%
DEFAULT_DB = 'myapp_development'
DB_BRANCHES = %w[ t79 ]
branch = `git symbolic-ref HEAD 2> /dev/null`.chomp.split('/').last
dev_db = DB_BRANCHES.include?(branch) ? branch.gsub(/[^a-zA-Z0-9_]/, '') : DEFAULT_DB
puts "Using dev database: #{dev_db.inspect}"
%>
development:
database: <%= dev_db %>
@oshanz
oshanz / cheapest vps
Created February 28, 2020 04:19
cheapest vps
https://www.scaleway.com
https://www.vultr.com
https://www.hetzner.com/