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
// this | |
// JS Function : Without using the "strict" mode, this refers to the context in which someFunction() was called | |
// In "strict" mode, this would be undefined, which is slightly less confusing. | |
// http://jsbin.com/vekawimihe/2/edit?js,console | |
// When this is used inside an arrow function JavaScript uses the this from the outer scope | |
// class | |
class Hamburger { | |
constructor() { | |
// This is the constructor. |
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
// Le typage TypeScript ne se base pas sur les interfaces mais sur les "Shapes" inspirées du "Duck Typing" Python. | |
// "If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck." | |
// If we don't have access to external classes | |
class User { | |
firstName: string; | |
lastName: string; | |
email: string; | |
} |
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
// Install the TypeScript transpiler using npm: | |
$ npm install -g typescript | |
// Then use tsc to manually compile a TypeScript source file into ES5: | |
$ tsc test.ts | |
$ node test.js | |
// Since TypeScript@1.8.2, tsc has a default rule for --module option: target === 'ES6' ? 'ES6' : 'commonjs' (more details can be found here), so we can simply run: | |
$ tsc ./a.ts ./b.ts | |
// For Angular 2 projects there are a number of specific settings that need to be configured in a project's |
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
// Observables (= streams) open up a continuous channel of communication in which multiple values of data can be emitted over time. | |
// a pattern of dealing with data by using array-like operations to parse, modify and maintain data | |
// The subscribe pattern | |
// ---------------------- | |
import {Component} from '@angular/core'; | |
import {Observable} from 'rxjs/Observable'; | |
@Component({ |
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
http://courses.wishtack.com/agile/without-agile | |
NODE | |
http://courses.wishtack.com/nodejs/restful-api | |
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
*********** | |
ORILAB | |
SHARED SERVICES | |
- username in header | |
- ngDestroy eventEmitter.unsubscribe(); | |
private _subscription: Subscription; | |
ngOnDestroy() { |
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
cd ~/_APP && mkdir -p pr2017_tests && | |
cd ~/_APP/pr2017_tests && | |
npm init -f && | |
npm install g codeceptjs && | |
npm install -g nightmare nightmare-upload && | |
codeceptjs init | |
//Choose webdrive.io | |
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
// CACHE | |
//cached between jobs | |
// put it inside job or globally | |
// Locally defined cache overrides globally defined options | |
// cache per job avec key: "$CI_JOB_NAME" | |
// per-branch caching : key: "$CI_COMMIT_REF_NAME" | |
// per-job and per-branch caching: key: "$CI_JOB_NAME/$CI_COMMIT_REF_NAME" | |
// per-branch and per-stage caching : key: "$CI_JOB_STAGE/$CI_COMMIT_REF_NAME" | |
ou par build : |
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
## PREZ : Dynamic Forms Prototyping (step 1) | |
-------------------------------------------- | |
# object of discussion : | |
for Biotracking, being able to generate dynamic forms | |
# difficulties : | |
Ex : to populate the sample_number dropdown with correct values depending of the path (selection context) |
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
// Obvious API - REDUX | |
// https://hackernoon.com/o-api-an-alternative-to-rest-apis-e9a2ed53b93c | |
const ACTIONS = { | |
USERS: { | |
CART: { | |
ADD: 'ADD_PRODUCT_TO_CART', | |
}, | |
SIGN_IN: 'SIGN_IN', | |
SIGN_OUT: 'SIGN_OUT', |
OlderNewer