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":{ | |
"name":"Bulbasaur", | |
"attack":49, | |
"defense":49, | |
"evolveLevel":16, | |
"evolveTo":"2", | |
"type":"grass", | |
"moves":[ | |
"tackle", |
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
(function() { | |
'use strict'; | |
angular.module('myApp', []); | |
angular | |
.module('myApp') | |
.config(myAppConfig); | |
myAppConfig.$inject = ['$httpProvider']; |
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
public class ThreadTest { | |
public static void main(String[] args) throws InterruptedException, ExecutionException { | |
List<String> refs = new ArrayList<String>(); | |
refs.add("AA907"); | |
refs.add("H0704"); | |
refs.add("FD123"); | |
refs.add("DV067"); | |
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
UPDATE wp_options SET option_value = REPLACE(option_value, 'http://monsite.preprod.fr', 'http://www.prod.fr') WHERE option_value LIKE '%http://monsite.preprod.fr%'; | |
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://monsite.preprod.fr', 'http://www.prod.fr') WHERE post_content LIKE '%http://monsite.preprod.fr%'; | |
UPDATE wp_posts SET guid = REPLACE(guid, 'http://monsite.preprod.fr', 'http://www.prod.fr') WHERE guid LIKE '%http://monsite.preprod.fr%'; |
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
(function () { | |
'use strict'; | |
/** | |
Online documentation : https://github.com/gulpjs/gulp/blob/master/docs/API.md | |
Main tasks : | |
* gulp serve : | |
serve application on http://localhost:9000 |
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
export class AuthenticationService { | |
loginState: Subject<any> = new Subject(); | |
constructor(private http: Http) { | |
} | |
logout() { | |
this.http.get('http://logout...') | |
.subscribe(() => { |
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
import {Component} from '@angular/core'; | |
import {Team} from '../../../models/team'; | |
import {Sprint} from '../../../models/sprint'; | |
import {Observable} from 'rxjs/Observable'; | |
import {Http, Response} from '@angular/http'; | |
@Component({ | |
selector: 'app-test-backlog-agile', | |
templateUrl: './test-backlog-agile.component.html', | |
styleUrls: ['./test-backlog-agile.component.scss'] |
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
public launchCachePreloading() { | |
this.nomenclatureService.getUniverses().pipe( | |
flatMap(e => e), | |
mergeMap(universe => this.nomenclatureService.getFamilies(universe.id).pipe( | |
flatMap(e => e), | |
map(family => ({universeId: universe.id, familyId: family.id})), | |
)), | |
toArray(), | |
mergeMap(families => interval(1000).pipe( | |
filter(() => this.router.url === '/'), |