Skip to content

Instantly share code, notes, and snippets.

View GCorbel's full-sized avatar

Guirec Corbel GCorbel

  • Sept-Îles, Qc Canada
View GitHub Profile
@GCorbel
GCorbel / test.sh
Created February 4, 2019 16:23
11
echo 1
version: '3.5'
services:
web:
image: dimelo/rc-engage:2018-12-19
command: ./docker-files/start.sh
working_dir: /app
ports:
- 5000:3000
environment:
- BUNDLE_JOBS=4
@GCorbel
GCorbel / model-field.js
Last active October 21, 2018 16:27
A form has many fields. Association are include in data.fields instead of data.included.
import DS from 'ember-data';
import { computed } from '@ember-decorators/object';
import { attr, belongsTo } from '@ember-decorators/data';
export default class Field extends DS.Model {
@belongsTo('form', { async: false }) form
@attr controlType
@attr label
@attr placeholder
@GCorbel
GCorbel / controllers.application.js
Last active October 20, 2018 18:46 — forked from poteto/controllers.application.js
hasmany-relations
import Ember from 'ember';
import AdultValidations from '../validations/adult';
import ChildValidations from '../validations/child';
import { reservedEmails } from '../validators/uniqueness';
import { schema } from '../models/user';
const { get } = Ember;
const { keys } = Object;
export default Ember.Controller.extend({
@GCorbel
GCorbel / v1.rb
Last active March 13, 2018 13:38
it 'updates categories' do
expect {
put :update_categories, id: contents(:adsl_cancel_question).id, category_ids: [categories(:mobile).id, categories(:technical).id], thread_id: content_threads(:adsl_cancel).id
}.to change { contents(:adsl_cancel_question).reload.categories.to_a.sort }.from(array_including([categories(:internet), categories(:sales)])).to(array_including([categories(:technical), categories(:mobile)]))
end
This file has been truncated, but you can view the full file.
window.EmberENV = {"FEATURES":{}};
var runningTests = false;
;var loader, define, requireModule, require, requirejs;
(function (global) {
'use strict';
This file has been truncated, but you can view the full file.
window.EmberENV = {"FEATURES":{}};
var runningTests = false;
;var loader, define, requireModule, require, requirejs;
(function (global) {
'use strict';
oscar
description: Desktop Computer
product: To be filled by O.E.M. (To be filled by O.E.M.)
vendor: Gigabyte Technology Co., Ltd.
version: To be filled by O.E.M.
serial: To be filled by O.E.M.
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 smp vsyscall32
configuration: boot=normal chassis=desktop family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=90022B03-3404-3905-B406-1D0700080009
*-core
@GCorbel
GCorbel / gist:a3920f62c6b9b9579ceaaf4f27628eae
Created October 29, 2017 16:29
Problem with ubuntu 17.10
[ 0.000000] microcode: microcode updated early to revision 0x1c, date = 2015-02-26
[ 0.000000] random: get_random_bytes called from start_kernel+0x42/0x4e8 with crng_init=0
[ 0.000000] Linux version 4.13.0-16-lowlatency (buildd@lcy01-02) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu2)) #19-Ubuntu SMP PREEMPT Wed Oct 11 19:51:52 UTC 2017 (Ubuntu 4.13.0-16.19-lowlatency 4.13.4)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.13.0-16-lowlatency root=UUID=3782021f-4ec1-4339-9b40-fee88014fea5 ro quiet splash vt.handoff=7
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
@GCorbel
GCorbel / Dockerfile
Last active July 25, 2017 09:21
My docker setup to use it in dev
# In the Dockerfile I add tools I like
RUN apt-get install wget && wget https://github.com/GCorbel/dotfiles/raw/master/development_docker_install.sh -O - | sh