Skip to content

Instantly share code, notes, and snippets.

Olivier Jacquemart ojacquemart

  • France
Block or report user

Report or block ojacquemart

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ojacquemart
ojacquemart / RxFirebase.java
Created May 30, 2016 — forked from gsoltis/RxFirebase.java
RxJava Bindings for Firebase
View RxFirebase.java
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 {
View gist:b409b5bb6aaa0dad71c2
$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
View gist:9280350
.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);
}
});
}
View gist:7126635
curl -i -H "Authorization: base64token" http://localhost:9000/api/foo
View gist:7042210
'use strict';
describe('Directive: afterDate', function () {
beforeEach(module('yoApp'));
var scope,
compile,
element
;
View gist:6982968
mongoexport --host HOST -u USER -p PASSWORD --db DB --collection COLL --out FILE.json
@ojacquemart
ojacquemart / gist:6473650
Created Sep 7, 2013
Heroku buildpack-scala#cleancache
View gist:6473650
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
View gist:5658745
mongorestore --db dbname path
To delete existing database:
use dbname
db.dropDatabase()
View gist:5658731
mongodump --host host --db db --port 10027 --username username --password pwd --out path
@ojacquemart
ojacquemart / mongom101j-week3-exercise1.scala
Last active Dec 15, 2015
Mongo M101J: Week3#Exercise1
View mongom101j-week3-exercise1.scala
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
You can’t perform that action at this time.