(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.
#!/usr/bin/env bash | |
rm -rf "${HOME}/Library/Caches/CocoaPods" | |
rm -rf "`pwd`/Pods/" | |
pod update |
# Download and Install the Latest Updates for the OS | |
apt-get update && apt-get upgrade -y | |
# Set the Server Timezone to CST | |
echo "America/Chicago" > /etc/timezone | |
dpkg-reconfigure -f noninteractive tzdata | |
# Enable Ubuntu Firewall and allow SSH & MySQL Ports | |
ufw enable | |
ufw allow 22 |
(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.
private class LRUCacheNode<Key: Hashable, Value> { | |
let key: Key | |
var value: Value | |
var previous: LRUCacheNode? | |
var next: LRUCacheNode? | |
init(key: Key, value: Value) { | |
self.key = key | |
self.value = value | |
} |
import Darwin | |
enum Signal: Int32 { | |
case HUP = 1 | |
case INT = 2 | |
case QUIT = 3 | |
case ABRT = 6 | |
case KILL = 9 | |
case ALRM = 14 | |
case TERM = 15 |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
module.exports = { | |
“extends”: “../src/.eslintrc.js”, | |
“rules”: { | |
“import/no-extraneous-dependencies”: “error” | |
} | |
}; |
declare module 'react-native-material-kit' { | |
import * as React from 'React'; | |
import { | |
ViewProperties, | |
ViewStyle, | |
TextStyle, | |
KeyboardType, | |
TextInputProperties, | |
TouchableWithoutFeedbackProperties | |
} from 'react-native'; |
// tslint:disable:max-classes-per-file | |
declare module 'react-native-paper' { | |
import { Component, ReactNode } from 'react'; | |
import { | |
StyleProp, | |
TextProps, | |
TextStyle, | |
TouchableHighlightProps, | |
TouchableNativeFeedbackProps, | |
ViewProps, |