(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.
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
(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.
| #!/bin/bash | |
| ## LICENSE | |
| ## Copyright (c) 2017, Luca Bertolasi. All Rights Reserved. | |
| ## | |
| ## This source code is licensed under the terms of the MIT license, | |
| ## a copy of which can be found at https://choosealicense.com/licenses/mit/ | |
| cat << EOF > $(pwd)/parent.sh | |
| #!/bin/bash |
| /** | |
| * @license | |
| * Copyright (c) 2017, Luca Bertolasi. All Rights Reserved. | |
| * | |
| * This source code is licensed under the terms of the MIT license, | |
| * a copy of which can be found at https://choosealicense.com/licenses/mit/ | |
| */ | |
| function evalOrGoogle(str) { | |
| const ELLIPSIS = `\u2026` |
| /** | |
| * @license | |
| * Copyright (c) 2017, Luca Bertolasi. All Rights Reserved. | |
| * | |
| * This source code is licensed under the terms of the MIT license, | |
| * a copy of which can be found at https://choosealicense.com/licenses/mit/ | |
| */ | |
| function urlParser(url) { | |
| // fallback to location object if no arg has been provided |
| /** | |
| * @license | |
| * Copyright (c) 2017-present, Luca Bertolasi. All Rights Reserved. | |
| * | |
| * This software is licensed under the terms of the MIT license, | |
| * a copy of which can be found at https://opensource.org/licenses/MIT | |
| */ | |
| // REQUIRES: https://github.com/wymsee/cordova-HTTP |
| /** | |
| * @license | |
| * Copyright (c) 2017-present, Luca Bertolasi. All Rights Reserved. | |
| * | |
| * This software is licensed under the terms of the MIT license, | |
| * a copy of which can be found at https://opensource.org/licenses/MIT | |
| */ | |
| // REQUIRES: http://ngcordova.com/docs/plugins/sqlite/ |
| /** | |
| * @license | |
| * Copyright (c) 2017-present, Luca Bertolasi. All Rights Reserved. | |
| * | |
| * This software is licensed under the terms of the MIT license, | |
| * a copy of which can be found at https://opensource.org/licenses/MIT | |
| */ | |
| // To cancel the request, iterate over '$http.pendingRequests', find the nth request and call '$http.pendingRequests[nth].cancel.resolve()' |
| #!/usr/bin/env node | |
| /** | |
| * @license | |
| * Copyright (c) 2017-present, Luca Bertolasi. All Rights Reserved. | |
| * | |
| * This software is licensed under the terms of the MIT license, | |
| * a copy of which can be found at https://opensource.org/licenses/MIT | |
| */ | |
| /** | |
| * @license | |
| * Copyright (c) 2017-present, Luca Bertolasi. All Rights Reserved. | |
| * | |
| * This software is licensed under the terms of the MIT license, | |
| * a copy of which can be found at https://opensource.org/licenses/MIT | |
| */ | |
| @mixin background($attachment: scroll, | |
| $clip: border-box, |