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
[Unit] | |
Description=Redis | |
After=syslog.target | |
[Service] | |
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf | |
RestartSec=5s | |
Restart=on-success | |
[Install] |
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
sudo yum -y update | |
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime | |
sudo yum -y install gcc make tcl | |
cd /usr/local/src | |
sudo wget http://download.redis.io/redis-stable.tar.gz | |
sudo tar xvzf redis-stable.tar.gz | |
sudo rm -f redis-stable.tar.gz | |
cd redis-stable | |
sudo yum groupinstall "Development Tools" | |
sudo make distclean |
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
"deploy:dev": "firebase use dev && ng build --aot && firebase deploy --only hosting", | |
"deploy:prod": "firebase use prod && ng build --prod && firebase deploy --only hosting" |
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
var found = datasetarr.find(o => o.accountID === receiptlist[i].accountID && o.subtype === ritemlist[k].type) | |
if (found === undefined){ | |
//do computation | |
} |
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
var functions = require('firebase-functions'); | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
router.post('/register', registerFunction); | |
router.post('/verify', verifyFunction); | |
app.use('/fns', router); |
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
{ | |
"database": { | |
"rules": "database.rules.json" | |
}, | |
"hosting": { | |
"public": "build/default/public", | |
"rewrites": [ | |
{ | |
"source": "/fns/**", | |
"function": "fns" |
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
ng new myvis --style=scss --routing |
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
<ul> | |
<li *ngFor="let item of items; let i = index" [attr.data-index]="i"> | |
{{item}} | |
</li> | |
</ul> |
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
async function processArray(array) { | |
for (const item of array) { | |
await delayedLog(item); | |
} | |
console.log('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
declare var bulmaQuickview: any; |
NewerOlder