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
Can you answer Michael Seibel’s questions about your startup?
These are questions Michael Seibel mentioned that he likes to ask startups as part of his 2018 “Building Product” Startup School presentation.
Problem
What problem are you solving?
What problem will be solved at the end of what you are doing? What do we expect the result to be?
Can you state the problem clearly in two sentences?
Have you experienced the problem yourself?
@oshanz
oshanz / javafx
Last active June 16, 2019 17:05
javaFx
https://stackoverflow.com/questions/39722904/javafx-loading-additional-fxml-into-fxml-template
https://www.pixelduke.com/projects/#modellus
https://github.com/mhrimaz/AwesomeJavaFX
frameworks
https://github.com/controlsfx/controlsfx
https://github.com/jfoenixadmin/JFoenix
https://github.com/Oshan96/CustomStage
https://github.com/silentsoft/actlist
@oshanz
oshanz / gsoc 2019
Last active April 9, 2019 10:50
gsoc 2019
Disa
https://summerofcode.withgoogle.com/organizations/5066160681254912/
https://summerofcode.withgoogle.com/organizations/4860558113767424/
# My List
https://summerofcode.withgoogle.com/organizations/5542255322988544/
https://github.com/rubygsoc/rubygsoc/wiki/Ideas-for-RubyGems
@oshanz
oshanz / django admin
Created April 7, 2019 10:46
django admin
https://www.craigderington.me/solved-django-admin-tabularinline-formset-override/
http://www.catharinegeek.com/how-to-set-initial-data-for-inline-model-formset-in-django/
https://stackoverflow.com/questions/12384973/django-admin-inline-forms-initial-data-for-every-instance
https://stackoverflow.com/questions/10904848/adding-inline-many-to-many-objects-in-django-admin/10999074#10999074
https://stackoverflow.com/questions/4316606/how-to-access-both-directions-of-manytomanyfield-in-django-admin
https://stackoverflow.com/questions/3570898/django-update-field-value-based-on-other-fields/3573204#3573204
https://stackoverflow.com/questions/9082603/django-admin-how-to-prepopulate-inline-foreign-key-field-based-on-parent-mode/9083499#9083499
https://stackoverflow.com/questions/442040/pre-populate-an-inline-formset
@oshanz
oshanz / python event driven programming
Last active April 2, 2019 12:31
python event driven programming
https://www.twistedmatrix.com/trac/
http://eventlet.net
http://www.tornadoweb.org/en/stable/
http://www.gevent.org/contents.html
https://github.com/stackless-dev/stackless
https://stackoverflow.com/questions/588958/what-are-the-drawbacks-of-stackless-python
https://code.google.com/archive/p/gevent/wikis/ProjectsUsingGevent.wiki
https://realpython.com/async-io-python/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oshanz
oshanz / rate limit and throttle
Created March 22, 2019 16:13
rate limit and throttle
https://stackoverflow.com/questions/12358396/rate-limit-outgoing-phpcurl-requests
https://stackoverflow.com/questions/49994598/best-way-to-apply-rate-limit-throttling-on-multi-processes-api-caller-using-ce
https://en.wikipedia.org/wiki/Leaky_bucket
https://en.wikipedia.org/wiki/Generic_cell_rate_algorithm
https://github.com/mantacode/aws-cache
https://github.com/rwz/redis-gcra
https://github.com/vesess/fine_tune
https://github.com/shishirsharma/Unthrottle
@oshanz
oshanz / software license
Created March 22, 2019 16:09
software license
https://keygen.sh/
https://hackernoon.com/finding-issues-and-guessing-solutions-43e6b7ed823e
https://paddle.com/
https://github.com/glebd/cocoafob/
https://fastspring.com/
https://gumroad.com/
https://stackoverflow.com/questions/599837/how-to-generate-and-validate-a-software-license-key/52019368#52019368
@oshanz
oshanz / workflow engines
Last active February 16, 2019 03:16
workflow engines
https://github.com/apache/airflow
http://toil.ucsc-cgl.org/
https://spiffworkflow.readthedocs.io/en/latest/
https://github.com/viewflow/viewflow/
https://github.com/meirwah/awesome-workflow-engines
https://open-stand.org/
@oshanz
oshanz / my first functional ruby.rb
Last active January 31, 2019 05:58
my first functional ruby
def reorder_numbers
reload_relations
return if pages.empty?
# this solution has a time complexity of O(log n)
get_missing_number = lambda { |source, min = 0, max = (source.length - 1)|
if min >= max
return false if min + 1 == source.max
return min + 1