Skip to content

Instantly share code, notes, and snippets.

View johanleroch's full-sized avatar

Johan le Roch johanleroch

View GitHub Profile
@johanleroch
johanleroch / urls
Last active April 2, 2019 09:58
test url
[{ url: '/spectacles/paris' },{ url: '/spectacles/nantes' },{ url: '/spectacles/brest' }]
@johanleroch
johanleroch / .zshrc
Last active December 22, 2017 12:32
# enable code command in zsh terminal
function code {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
local argPath="$1"
[[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}"
open -a "Visual Studio Code" "$argPath"
fi
@johanleroch
johanleroch / javascript.json
Last active March 9, 2018 20:19
Visual studio code snippets
{
"ES6 Import": {
"prefix": "xim",
"body": [
"import { $0 } from '${1}';"
],
"description": "ES6 Import"
},
"Initial State Reducer": {
"prefix": "xin",