- Masteriser Vim ou Emacs
- Savoir faire du ssh : -vvv pour débugger les problèmes, -i pour utiliser une clé publique
- ctrl + r : historique intérractif
- ctrl + w : Efface des blocs de lettre
- ctrl + e : Va à la fin de la commande
- ctrl + a : Va à début de la commande
- ctrl + l : Efface les lignes du terminal
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 'package:/unittest/unittest.dart'; | |
void main() { | |
group ("WTF? Dart", (){ | |
test("doesn't recognize that a function is equals to itself...", () { | |
expect(myFunction != myFunction , isTrue); | |
}); | |
}); | |
} |
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
library minesweeper; | |
class Minesweeper { | |
int width; | |
int height; | |
List<String> _lines; | |
Minesweeper (){ | |
width = 0; | |
height = 0; |
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
var gamepadSupport = { | |
ticking: false, | |
gamepads: [], | |
prevRawGamepadTypes: [], | |
prevTimestamps: [], | |
init: function() { | |
var gamepadSupportAvailable = !!navigator.webkitGetGamepads | |
|| !!navigator.webkitGamepads | |
|| (navigator.userAgent.indexOf('Firefox/') != -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
pm http GET https://registry.npmjs.org/simple-template/0.0.1 | |
npm http GET https://registry.npmjs.org/connect/1.8.7 | |
npm http GET https://registry.npmjs.org/http-error/0.0.1 | |
npm http GET https://registry.npmjs.org/amd-loader/0.0.4 | |
npm http GET https://registry.npmjs.org/async/0.1.21 | |
npm http GET https://registry.npmjs.org/dryice/0.4.10 | |
npm http GET https://registry.npmjs.org/optimist/0.3.4 | |
npm http GET https://registry.npmjs.org/architect/0.1.4 | |
npm http GET https://registry.npmjs.org/netutil/0.0.1 | |
npm http GET https://registry.npmjs.org/connect-architect/0.0.6 |
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 roundDecimal(number, precision) { | |
precision = precision || 2; | |
const tmp = Math.pow(10, precision); | |
return Math.trunc(Math.round(number * tmp) / tmp, precision); | |
} |
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, Input } from '@angular/core'; | |
import { User } from '../../shared'; | |
@Component({ | |
selector: 'jsr-user-form', | |
templateUrl: './user-form.component.html', | |
styleUrls: ['./user-form.component.scss'] | |
}) | |
export class UserFormComponent { |
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 { FooService } from './foo.service'; | |
import { TestBed } from '@angular/core/testing'; | |
function itLotOfTime(description: string, itBody: () => void) { | |
for (let i = 0; i < 1000; i++) { | |
it(description, itBody); | |
} | |
} |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |