Skip to content

Instantly share code, notes, and snippets.

View ArnaudValensi's full-sized avatar

Arnaud Valensi ArnaudValensi

View GitHub Profile
(mise à jour le 13/11/17)
Bars / Clubs
4ème Mur - Speakeasy où les cocktails sont excellents. Il y a parfois des spectacles burlesques et des p'tits concerts. Incontournable !!! (http://le4emur.com)
Ma Brasserie - Meilleure sélection de bières de MTL (http://mabrasserie.com)
Le Saint-Bock - Brasserie Artisanale avec un immense choix de bières ! (http://www.saintbock.com)
BENELUX - Micro-brasserie proche du MAC (http://brasseriebenelux.com)
Broue Pub Brouhaha Rosemont - Ambiance de folie lors des matchs et soirées concert (http://www.brouepubbrouhaha.com/evenements-actualites-rosemont)
Waverly (https://www.facebook.com/BarWaverly)
Brasserie Harricana (http://www.brasserieharricana.com)
@ArnaudValensi
ArnaudValensi / forestSmartActionLaravel.php
Last active April 27, 2018 10:18
Example of a Forest Smart Action on Laravel 5.5.x+
<!-- config/forest.php -->
<?php
return [
'secret_key' => '7a3049f8cd14e719c219e6d75e2a7715eef38bf6ec4be2ffc774a3374c9196a8',
'auth_key' => 'l8oeFltNrdrbq6pPeEGzxbG47h2qCK46',
'models_path' => 'app',
'url' => 'http://localhost:3001',
'debug_mode' => true,
'actions' => [
import Ember from 'ember';
import SmartViewMixin from 'client/mixins/smart-view-mixin';
export default Ember.Component.extend(SmartViewMixin.default, {
router: Ember.inject.service('-routing'),
store: Ember.inject.service(),
actions: {
selectTreatment(patientId) {
const treatmentCollection = this.findCollectionByName('treatment');
const treatmentCollectionId = treatmentCollection[0].get('id');
'use strict';
import Ember from 'ember';
import SmartViewMixin from 'client/mixins/smart-view-mixin';
export default Ember.Component.extend(SmartViewMixin, {
router: Ember.inject.service('-routing'),
store: Ember.inject.service(),
conditionAfter: null,
conditionBefore: null,
loaded: false,
@ArnaudValensi
ArnaudValensi / docker-compose.yml
Created June 29, 2018 10:08
Docker compose mongodb
MongoDB:
image: sameersbn/mongodb:latest
ports:
- "27017:27017"
volumes:
- ./data/mongodb:/var/lib/mongodb
@ArnaudValensi
ArnaudValensi / composer.json
Created January 4, 2018 16:39
Laravel link package
"repositories": [
{
"type": "path",
"url": "/Users/arnaud/dev/forest/repos/forest-laravel",
"options": {
"symlink": true
}
}
],
"require": {
query IntrospectionQuery {
__schema {
queryType {
name
}
types {
...FullType
}
}
}
import Ember from 'ember';
let previousMouseX = 0;
let previousMouseY = 0;
let mouseXInImage = 0;
let mouseYInImage = 0;
let scale = 1;
const zoomSpeed = 0.1;
export default Ember.Component.extend({
@ArnaudValensi
ArnaudValensi / app.js
Last active April 12, 2019 14:15
Developer Experience - Improve liana api.
const Liana = require('forest-express-sequelize');
const express = require('express');
const initCollections = require('./collections');
const initModels = require('./models');
const Sequelize = require('sequelize');
const sequelize = new Sequelize({
dialect: 'sqlite',
storage: 'database.sqlite',
});
This file has been truncated, but you can view the full file.
[
{
"name": "PLAYERUNKNOWN'S BATTLEGROUNDS",
"owners_before_sale": 0,
"owners": 63688000,
"sales": 63688000,
"price": 29.99,
"metascore": 86,
"median_playtime_in_minutes": 11995
},