> mkdir projet && cd projet
> npm init
> npm i webpack --save-dev
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 path = require('path'); | |
module.exports = { | |
entry: "./app", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "bundle.js" | |
}, | |
devServer: { |
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
[1, 2, 3, '4'].map(function (x) { | |
if (typeof x === 'number') return x + 1; | |
}); |
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
[ | |
{ | |
"id": 1, | |
"title": "La caverne du dragon de jade", | |
"chapters": [ | |
{ | |
"id": 1, | |
"story": "Vous êtes dans une salle plein de pièges. Une porte en face. Lancez un dé pour savoir si vous êtes chanceux.", | |
"moves": [ | |
{ |
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
Au bout de 100ms | |
source1: 0, source2: null, source: null | |
Au bout de 150ms | |
source1: 0, source2: 0, source: 0,0 | |
Au bout de 200ms | |
source1: 1, source2: 0, source: 1,0 | |
Au bout de 300ms (source2 et source1 sont théo au même moment, mais en fait source1 est déclenché avant en rx5 et après en <5) |
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
Exposé du problème : | |
* private1.com et private2.com ne sont accessibles que via vpn | |
* je ne veux pas connecter directement mon pc au vpn | |
Idée (qui marche avec un virtualbox) : | |
1. Créer un dock avec | |
* une connexion au vpn |
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
#!/usr/bin/env node | |
// INSTALLATION : | |
// install phantomjs && node | |
// > (sudo) npm install -g marked | |
// > (sudo) npm install -g tmp | |
// Copy this script in a bin directory (/usr/local/bin) as "md2pdf" | |
// > (sudo) chmod a+x /usr/local/bin/md2pdf | |
// USAGE : |
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
{ | |
"name": "fake", | |
"version": "0.0.0", | |
"license": "BSD-2-Clause", | |
"dependencies": { | |
"lodash": "~2.4.1", | |
"express": "~3.4.7", | |
"node-uuid": "~1.4.1" | |
} | |
} |
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
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body ng-app ng-init="users = []"> | |
<ul> | |
<li ng-repeat="item in users">{{ item }} <a href="" ng-click="users.splice($index, 1)">x</a></li> | |
</ul> | |
<input ng-model="item" placeholder="todo"><button ng-click="users.push(item);item='';">Add</button> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script> |
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
<!doctype html> | |
<html ng-app="ui"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Angular numeric Stepper</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, height=device-height, maximum-scale=1" /> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.2/css/bootstrap-theme.css" /> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.2/css/bootstrap.css" /> |