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
# test all voices available on macos | |
for voice in `say -v "?"|grep en_|sed -e 's/^\([a-zA-Z]*\).*$/\1/g'` | |
do say -v $voice Hello I am $voice | |
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
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
git remote add origin git@gitlab.com:XXyour_userXX/XXyour_projectXX.git | |
git add -A | |
git commit -m 'TDD from letsboot rocks!' | |
git push -u origin master |
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: node:latest | |
cache: | |
paths: | |
- node_modules/ | |
test_letslearn: | |
script: | |
- npm install | |
- ./node_modules/@angular/cli/bin/ng test --single-run=true --browsers PhantomJS --watch=false |
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
// Karma configuration file, see link for more information | |
// https://karma-runner.github.io/0.13/config/configuration-file.html | |
module.exports = function (config) { | |
config.set({ | |
basePath: '', | |
frameworks: ['jasmine', '@angular/cli'], | |
plugins: [ | |
require('karma-jasmine'), | |
require('karma-chrome-launcher'), |
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
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
{ | |
"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" | |
}, |
NewerOlder