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
// workaround for https://github.com/ionic-team/ionic/issues/13294 | |
// probably breaks iPhone X support | |
.ios ion-nav > .ion-page > .toolbar.statusbar-padding:first-child, | |
.ios ion-nav > .ion-page > ion-header > .toolbar.statusbar-padding:first-child, | |
.ios ion-tab > .ion-page > .toolbar.statusbar-padding:first-child, | |
.ios ion-tab > .ion-page > ion-header > .toolbar.statusbar-padding:first-child, | |
.ios ion-tabs > .ion-page.tab-subpage > ion-header > .toolbar.statusbar-padding:first-child, | |
.ios ion-menu > .menu-inner > .toolbar.statusbar-padding:first-child, | |
.ios ion-menu > .menu-inner > ion-header > .toolbar.statusbar-padding:first-child { | |
padding-top: calc(20px + 4px) !important; |
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
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
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 | |
tmux has-session -t dev | |
if [ $? != 0 ] | |
then | |
tmux new-session -s dev -n "TEST" -d | |
tmux split-window -h -t dev:0 | |
tmux split-window -v -t dev:0.1 | |
tmux send-keys -t dev:0.0 'cd ~/foo/bar' C-m | |
tmux send-keys -t dev:0.1 'autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" test@test -t "cd ~/bar;bash"' C-m |
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
version: '2' | |
services: | |
myapp: | |
build: . | |
container_name: "myapp" | |
image: debian/latest | |
environment: | |
- NODE_ENV=development | |
- FOO=bar | |
volumes: |
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
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |