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
#!/bin/bash | |
# print command in shell script and wait for confirmation before executing it | |
trap 'read -p "run: $BASH_COMMAND"' DEBUG | |
echo "do something interesting" | |
echo "do the next interesting thing" |
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
brew install upx | |
go build -ldflags="-s -w" | |
upx $(basename $(pwd)) |
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
tooloud() { | |
messages=( "beep beep" "lower voice" "a bit to loud" "the puppies are sleeping" "you are waking up the kittens" "hello hello") | |
voices=( "Alex" "Daniel" "Serena" "Tessa" "Veena") | |
while true; do \ | |
soundmeter --trigger +3000 4 --action stop | |
randomMessage=$[$RANDOM % ${#messages[@]}] | |
randomVoice=$[$RANDOM % ${#voices[@]}] | |
say -v ${voices[randomVoice]} ${messages[randomMessage]} | |
done | |
} |
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 { Kurs } from '@letsboot/angular'; | |
@Component({ | |
selector: 'Angular-Kurs-Zürich', | |
templateUrl: './smooth_material.html', | |
styleUrls: ['./great_trainers.css'] | |
}) | |
export class AngularKursComponent { | |
register(you: developer) { | |
this.participantsService.add(you); |
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": "somenode-stuff", | |
"version": "1.0.0", | |
"description": "Some Node Stuff", | |
"main": "dist/index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start": "source env.sh; nodemon dist/index.js", | |
"debug": "source env.sh; node --inspect-brk=9229 dist/index.js" | |
}, |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch via NPM", |
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
image: trion/ng-cli-karma | |
cache: | |
paths: | |
- node_modules/ | |
deploy_stage: | |
stage: deploy | |
environment: Stage | |
only: |
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
image: trion/ng-cli-karma | |
cache: | |
paths: | |
- node_modules/ | |
deploy_stage: | |
stage: deploy | |
environment: Stage | |
only: |
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
# run this in the terminal | |
npm install -g @angular/cli | |
ng new letslearn --prefix lsl | |
cd letslearn | |
ng e2e | |
ng test --watch false | |
ng serve -o |
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 { LetslearnPage } from './app.po'; | |
describe('letslearn App', () => { | |
let page: LetslearnPage; | |
beforeEach(() => { | |
page = new LetslearnPage(); | |
}); | |
it('Should display Letslearn title', () => { |
NewerOlder