This file contains hidden or 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
class CustomInput { | |
//constructor with default values | |
constructor({value = '', maxlength = 200, type = 'text', label = ''} = {}) { | |
this._value = value; | |
this.maxlength = maxlength; | |
this.type = type; | |
this.label = label; | |
} | |
get value() { |
This file contains hidden or 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
/* Tested with these devices | |
Smartwatch: https://www.aliexpress.com/item/JUNWER-Graphene-ECG-Smart-Band-CK12-Heart-Rate-Monitor-Blood-Pressure-Monitoring-Smart-Wriatband-IP67-Waterproof/32824701799.html | |
Nokia Scale: https://www.amazon.com/Nokia-Body-Composition-Wi-Fi-Scale/dp/B071XW4C5Q | |
*/ | |
//list of GATT servicess (excluding incompatibles or not recognized) | |
const gattServices = [ | |
'alert_notification', | |
'automation_io', | |
'battery_service', |
This file contains hidden or 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
# Strip www. from all requests (including subdomains) | |
# and force HTTPS | |
server { | |
listen 80 ; | |
listen [::]:80; | |
server_name www.custom.com; | |
# If the request has www prefix, strip it | |
if ($host ~* ^www\.(.*)) { | |
set $host_without_www $1; |
This file contains hidden or 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
<speak> | |
<say-as interpret-as='interjection'> | |
aah. | |
a lo mejor. | |
a mano. | |
a todo dar. | |
abracadabra. | |
achís achís. | |
aguas. | |
ah. |
This file contains hidden or 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
# suite config | |
suites: | |
acceptance: | |
actor: AcceptanceTester | |
path: . | |
modules: | |
enabled: | |
- WebDriver: | |
url: http://localhost:8080/ | |
browser: chrome |
This file contains hidden or 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
# public | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/index.php$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !\.(php|css|gif|ico|jpg|js|png|swf|txt|svg|woff|ttf|eot)$ | |
RewriteRule (.*) index.php/$1 [QSA,L,E=PATH_INFO:/$1] |
This file contains hidden or 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
choco install firacode |
This file contains hidden or 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": "mroldan/php-mvc", | |
"description": "MVC micro framework demo", | |
"type": "project", | |
"require-dev": { | |
"friendsofphp/php-cs-fixer": "^2.13", | |
"phpmd/phpmd": "2.6.0", | |
"squizlabs/php_codesniffer": "3.3.2", | |
"codeception/codeception": "^2.5" | |
}, |
This file contains hidden or 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
nohup php artisan queue:work --daemon > storage/logs/laravel.log & |
This file contains hidden or 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 | |
for i in $(say -v \? | awk '{print $1;}'); do echo $i; say -v $i "wubadubadubdub\!"; done |