This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"theme": "elegant" | |
}, | |
"basics": { | |
"name": "Benjamin Richard", | |
"label": "Manager technique / Concepteur d'application web", | |
"picture": "https://doschzharf1i9.cloudfront.net/personal_assets/user/200x200/1e784e20-2760-4b90-b0b6-0d7c03af34c1.png", | |
"email": "---.---@---.com", | |
"phone": "(+33) 6-- --- ---", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIT License | |
Copyright (c) 2018 Noel Bundick | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let monObjet = {name: "moi", job: "dev", city: "lyon"} | |
let monTableau = [1, "dessert", "soir", ] | |
ee = _.first(monTableau) | |
become | |
[ee] = monTableau | |
ee = _.last(monTableau) | |
become | |
[ee] = [...monTableau].reverse() // prevent monTableau mutation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const uri = 'https://ghibliapi.herokuapp.com/films' | |
Rx.Observable | |
.fromPromise( | |
fetch(uri) | |
) | |
.flatMap(res => res.json()) | |
.subscribe(res => console.log(res)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch --merged | grep -v '\*' | xargs -n 1 git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!git branch --merged | grep -v '\*' | xargs -n 1 git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* allow to cache response and/or to listen on newRequest event | |
* | |
* for cache system, it's freely adapted from https://github.com/pagekit/vue-resource/issues/252 @airtonix sample | |
*/ | |
export class HttpInterceptors { | |
_cache | |
constructor (Vue, ttlInHours) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="pages-block"> | |
<li v-for="page in pages"> | |
<a v-bind:href="page.url">{{page.name}}</a> | |
<debug :item="page"/> | |
</li> | |
</ul> | |
... | |
Vue.component('debug', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Type definitions for Meteor 1.3 | |
// Project: http://www.meteor.com/ | |
// Definitions by: Dave Allen <https://github.com/fullflavedave> | |
// Definitions: https://github.com/borisyankov/DefinitelyTyped | |
/** | |
* These are the common (for client and server) modules and interfaces that can't be automatically generated from the Meteor data.js file | |
*/ | |
interface EJSONable { |
NewerOlder