We'll first generate a new SSH key, by running:
ssh-keygen -t rsa -b 4096 -C "my.email@microsoft.com"`| #!/usr/bin/env bash | |
| # Usage: ./check-axios.sh [directory] | |
| # Scans all repos in the given directory (default: current) for compromised axios versions. | |
| # You can run it directly from gist with: | |
| # curl -sL https://gist.githubusercontent.com/sinedied/5de454c07042f5e9b231b0d62da7b30f/raw/check-axios.sh | bash -s | |
| # | |
| # A Powershell version of this script is also available here: | |
| # https://gist.github.com/cmaneu/87de57c7d3b79aa2a58b6b661d739fe9 | |
| set -euo pipefail |
| { | |
| "sessions": { | |
| "869f7c938bf1dd95f95a0dc5b2d585f3": { | |
| "id": "869f7c938bf1dd95f95a0dc5b2d585f3", | |
| "tags": [ | |
| "Cloud & DevOps", | |
| "Workshop" | |
| ], | |
| "title": "Coder votre infrastructure avec votre langage préféré !", | |
| "startTime": "2023-01-25T09:30+02:00", |
| // Usage: fastRead('Lorem ipsum dolor sit amet') | |
| function fastRead(text, left = '<b>', right = '</b>') { | |
| return text?.replace(/[A-Za-zÀ-ÖØ-öø-ÿ0-9]+/gm, (word) => { | |
| const split = word.length > 3 ? Math.ceil(word.length / 2) : 1; | |
| return left + word.substring(0, split) + right + word.substring(split); | |
| }); | |
| } |
| const fs = require('fs'); | |
| const input = fs.readFileSync('input.txt', 'utf-8'); | |
| const prog = input.split('\n'); | |
| new Array(prog.length) | |
| .fill('') | |
| .map((_, i) => { | |
| const variant = prog.slice(); | |
| const inst = prog[i]; | |
| const newInst = inst[0] === 'j' ? inst.replace('jmp', 'nop') : inst.replace('nop', 'jmp'); |
BPM+1-16BPM+Knob APATTERN then 1-16 as you wantWRITE+PATTERN then 1-16 for destination*+PATTERNWRITE + turn knobKnob A/BBPM to cycle modes| import { Inject, Injectable, InjectionToken, Injector, Optional } from '@angular/core'; | |
| import { HttpClient, HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import { ErrorHandlerInterceptor } from './error-handler.interceptor'; | |
| import { CacheInterceptor } from './cache.interceptor'; | |
| // HttpClient is declared in a re-exported module, so we have to extend the original module to make it work properly | |
| // (see https://github.com/Microsoft/TypeScript/issues/13897) | |
| declare module '@angular/common/http/src/client' { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#Comprehensive Introduction to @ngrx/store By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Angular (aka Angular 2) is a new framework completely rewritten from the ground up, replacing the famous AngularJS framework (aka Angular 1.x).
More that just a framework, Angular should now be considered as a whole platform which comes with a complete set of tools, like its own CLI, debug utilities or performance tools.