This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
// import play.api._ | |
import play.api.mvc._ | |
object Application extends Controller { | |
def index: Action[_] = Action { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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. |