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 com.firebase.client; | |
import com.firebase.client.core.Constants; | |
import rx.Observable; | |
import rx.Subscriber; | |
import rx.functions.Action0; | |
import rx.functions.Func1; | |
import rx.subscriptions.Subscriptions; | |
public class RxFirebase { |
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
$scope.showDate = function() { | |
event.stopPropagation(); | |
if (window.plugins && window.plugins.datePicker) { | |
window.plugins.datePicker.show({ | |
date : $scope.date, | |
mode : 'time' | |
}, function(date) { | |
$scope.$apply(function() { | |
// Store date |
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
.directive('bindKeydown', function () { | |
return { | |
restrict: 'A', | |
link: function (scope, element) { | |
element.bind('keydown', function (e) { | |
if (e.target === element[0]) { | |
scope.$broadcast('body:keydown', e.keyCode); | |
} | |
}); | |
} |
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
curl -i -H "Authorization: base64token" http://localhost:9000/api/foo |
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
'use strict'; | |
describe('Directive: afterDate', function () { | |
beforeEach(module('yoApp')); | |
var scope, | |
compile, | |
element | |
; |
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
mongoexport --host HOST -u USER -p PASSWORD --db DB --collection COLL --out FILE.json |
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
heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-scala.git#cleancache --app myapp | |
git push heroku master | |
heroku config:remove BUILDPACK_URL --app myapp | |
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
mongorestore --db dbname path | |
To delete existing database: | |
use dbname | |
db.dropDatabase() |
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
mongodump --host host --db db --port 10027 --username username --password pwd --out path |
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 tengen | |
import play.api._ | |
import play.api.libs.json._ | |
import play.api.mvc._ | |
import play.api.Logger | |
import play.api.Play.current | |
import play.modules.reactivemongo._ | |
import play.modules.reactivemongo.ReactiveMongoPlugin |
NewerOlder