Skip to content

Instantly share code, notes, and snippets.

View hipertracker's full-sized avatar

Jaroslaw Zabiello hipertracker

View GitHub Profile
@christianalfoni
christianalfoni / promises.js
Created August 17, 2016 14:05
A comparison of promises and signals
module.exports = (data, progress, resolve, reject) => {
const loggedProfileRef = firebase.database()
.ref(`loggedActivities/${data.datetime}/${data.profileUid}`);
const profileChallengesRef = firebase.database()
.ref(`profileChallenges/${data.profileUid}`);
const selectedActivity = getActivity(activities, data.activityKey);
const selectedActivitySubCategory = getSubCategory(activities, data.activityKey);
const transactionCallback = toggleLoggedActivity(data, activities, selectedActivity, selectedActivitySubCategory);
let existingActivities = {};
let updatedActivities = {};
@teamon
teamon / Application.scala
Created February 19, 2012 21:51
Play router
package controllers
// import play.api._
import play.api.mvc._
object Application extends Controller {
def index: Action[_] = Action {
@dahlia
dahlia / lisp.rb
Created September 2, 2010 07:52
30 minutes Lisp in Ruby
# 30 minutes Lisp in Ruby
# Hong Minhee <http://dahlia.kr/>
#
# This Lisp implementation does not provide a s-expression reader.
# Instead, it uses Ruby syntax like following code:
#
# [:def, :factorial,
# [:lambda, [:n],
# [:if, [:"=", :n, 1],
# 1,
"PHP: a fractal of bad design"
http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/
"PHP Sucks, But It Doesn't Matter"
http://www.codinghorror.com/blog/archives/001119.html
"PHP cannot be fixed. I've said it before and I'll say it again:
its developers don't have a clue about language design,
have no interest in whatever happened in the last 40 years
of language design, and have no concept of security.