Skip to content

Instantly share code, notes, and snippets.

View boldijar's full-sized avatar
🏄‍♂️
surfing through native android and ios codebases

Boldijar Paul boldijar

🏄‍♂️
surfing through native android and ios codebases
View GitHub Profile
@vasile
vasile / infofer.rb
Created October 5, 2015 20:58
data.gov.ro infofer parser
require 'nokogiri'
require 'sqlite3'
require 'FileUtils'
def seconds_to_hhmm (total_seconds)
# From http://stackoverflow.com/a/9916691
seconds = total_seconds % 60
minutes = (total_seconds / 60) % 60
hours = total_seconds / (60 * 60)
@passsy
passsy / OperatorSemaphore.java
Created April 28, 2015 14:33
A Presenter when using RxAndroid which delays delivering to the View when the View isn't ready
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Konstantin Mikheev sirstripy-at-gmail-com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is