Skip to content

Instantly share code, notes, and snippets.

View Rebolon's full-sized avatar
🤩
going back to Angular (v16)

Benjamin RICHARD Rebolon

🤩
going back to Angular (v16)
View GitHub Profile
@Rebolon
Rebolon / resume.json
Created November 12, 2020 14:54
Resume extracted from linkedin to json (jsonresume.org). Download resume-cli and export with `resume export resume.pdf` you can also use a theme to take care of end of line and tabulation
{
"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-- --- ---",
@Rebolon
Rebolon / LICENSE
Created August 30, 2018 20:43 — forked from noelbundick/LICENSE
Exclude WSL installations from Windows Defender realtime protection
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:
@Rebolon
Rebolon / nginx.conf
Created January 8, 2018 12:36 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@Rebolon
Rebolon / lodash2es6.js
Last active October 19, 2017 14:51
replace some feature from lodash/underscore with pure es6
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
@Rebolon
Rebolon / gist:18256816554392f03322ebe44fbb656b
Created October 12, 2017 20:20
Fetch API with Rxjs and their Observable
const uri = 'https://ghibliapi.herokuapp.com/films'
Rx.Observable
.fromPromise(
fetch(uri)
)
.flatMap(res => res.json())
.subscribe(res => console.log(res))
@Rebolon
Rebolon / gitclean.sh
Created September 27, 2017 08:46
clean git branch
git branch --merged | grep -v '\*' | xargs -n 1 git branch -d
@Rebolon
Rebolon / git-clean-branch
Created September 20, 2017 08:00
clean git branch already merged
!git branch --merged | grep -v '\*' | xargs -n 1 git branch -d
@Rebolon
Rebolon / interceptors.js
Created March 13, 2017 17:32
#vuejs : vue-resource cache plugin with PouchDB
/**
* 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) {
@Rebolon
Rebolon / vue.debug.js
Created November 5, 2016 20:50
A solution to use debugger in v-for for VueJS
<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', {
@Rebolon
Rebolon / meteor.d.ts
Created April 11, 2016 20:33 — forked from tomitrescak/meteor.d.ts
Typescript definition for Meteor 1.3
// 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 {