Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Yann Bertrand yannbertrand

:octocat:
View GitHub Profile
View homebrew-cheatsheet.md

Install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)

BREW

Install package

@yannbertrand
yannbertrand / fixtures.json
Created Feb 2, 2019
2019 Six Nations fixtures
View fixtures.json
[
{
"matchNumber": 1,
"kickOff": "2019-02-01T20:00:00.000Z",
"teamA": "France",
"teamB": "Wales",
"location": "Stade de France, Paris",
"finalScore": "19-24"
},
{
@yannbertrand
yannbertrand / index.js
Created Jan 14, 2017
electron-config default usage not working
View index.js
const Config = require('electron-config');
const config = new Config();
config.set('unicorn', '🦄');
console.log(config.get('unicorn'));
//=> '🦄'
// use dot-notation to access nested properties
config.set('foo.bar', true);
console.log(config.get('foo'));
View using_xdebug_with_postman.md

Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM

@yannbertrand
yannbertrand / useful-mac-apps.md
Last active Mar 23, 2017
The Mac apps I'm using
View useful-mac-apps.md

f.lux - Make the color of your computer's display adapt to the time of day

Bartender - Organize your menu bar apps

Clean My Mac - Cleaning software

Molotov - French live TV and VOD

CyberDuck - Libre FTP, SFTP, WebDAV, S3, Backblaze B2, Azure & OpenStack Swift browser

View mysql-cheatsheet.md

MySQL Cheat Sheet

connect to MySQL as a root

$ mysql -u root -proot

show the list of databases

mysql> show databases;
@yannbertrand
yannbertrand / index.css
Last active Oct 2, 2016
Electron drag macOS
View index.css
html,
body {
padding: 0;
margin: 0;
}
body {
font-family: -apple-system, 'Helvetica Neue', Helvetica, sans-serif;
-webkit-app-region: drag;
}
@yannbertrand
yannbertrand / gulpfile.js
Created Sep 11, 2016
Issue #58 electron-connect
View gulpfile.js
const gulp = require('gulp');
const babel = require('gulp-babel');
const debug = require('gulp-debug');
const cache = require('gulp-cached');
const plumber = require('gulp-plumber');
const notify = require("gulp-notify");
const electron = require('electron-connect').server.create();
const errorTemplate = '<%= error.message %>';
@yannbertrand
yannbertrand / DatepickerDirective.js
Created Aug 24, 2016
An Angular datepicker directive (angular-ui-bootstrap datepicker overlay)
View DatepickerDirective.js
(function () {
'use strict';
angular.module('solisPaiementApp.directives')
.directive('myDatepicker', ['$timeout', function ($timeout) {
return {
restrict: 'A',
require: ['^?form', 'ngModel'],
scope: {
@yannbertrand
yannbertrand / Preferences.sublime-settings
Last active Nov 14, 2016
My Sublime Text's user preferences settings
View Preferences.sublime-settings
{
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"folder_exclude_patterns":
[
"dist",
"node_modules",
".git"
],
"font_options":
[