I hereby claim:
- I am null4bl3 on github.
- I am w0rld3nd3r (https://keybase.io/w0rld3nd3r) on keybase.
- I have a public key ASC8HfEXIRH9xFN_HxIMbmUVPPdxE9gp3BBF3x7VhrzrfQo
To claim this, I am signing this object:
{ | |
"id": 1, | |
"extId": null, | |
"institutionId": 9, | |
"activityClubId": 1, | |
"repeatId": 636, | |
"coverImage": 2, | |
"title": "Superman i bio.", | |
"description": "t2", | |
"vacation": 0, |
module.exports = function(app) { | |
var path = require('path'); | |
var models = require(path.resolve(__dirname, '../model-config.json')); | |
var datasources = require(path.resolve(__dirname, '../datasources.json')); | |
function autoUpdateAll(){ | |
Object.keys(models).forEach(function(key) { | |
if (typeof models[key].dataSource != 'undefined') { | |
if (typeof datasources[models[key].dataSource] != 'undefined') { | |
app.dataSources[models[key].dataSource].autoupdate(key, function (err) { |
I hereby claim:
To claim this, I am signing this object:
if ($http_user_agent ~* (360Spider|80legs.com|Abonti|AcoonBot|Acunetix|adbeat_bot|AddThis.com|adidxbot|ADmantX|AhrefsBot|AngloINFO|Antelope|Applebot|BaiduSpider|BeetleBot|billigerbot|binlar|bitlybot|BlackWidow|BLP_bbot|BoardReader|Bolt\ 0|BOT\ for\ JCE|Bot\ mailto\:craftbot@yahoo\.com|casper|CazoodleBot|CCBot|checkprivacy|ChinaClaw|chromeframe|Clerkbot|Cliqzbot|clshttp|CommonCrawler|comodo|CPython|crawler4j|Crawlera|CRAZYWEBCRAWLER|Curious|Curl|Custo|CWS_proxy|Default\ Browser\ 0|diavol|DigExt|Digincore|DIIbot|discobot|DISCo|DoCoMo|DotBot|Download\ Demon|DTS.Agent|EasouSpider|eCatch|ecxi|EirGrabber|Elmer|EmailCollector|EmailSiphon|EmailWolf|Exabot|ExaleadCloudView|ExpertSearchSpider|ExpertSearch|Express\ WebPictures|ExtractorPro|extract|EyeNetIE|Ezooms|F2S|FastSeek|feedfinder|FeedlyBot|FHscan|finbot|Flamingo_SearchEngine|FlappyBot|FlashGet|flicky|Flipboard|g00g1e|Genieo|genieo|GetRight|GetWeb\!|GigablastOpenSource|GozaikBot|Go\!Zilla|Go\-Ahead\-Got\-It|GrabNet|grab|Grafula|GrapeshotCrawler|GTB5|GT\:\:WWW|Guzz |
multitail -C -c -n 1000 /path/to/file |
// THIS EXAMPLE IS BASED ON LOOPBACK, BUT ANY LOGIC CAN REPLACE THE isAuthenticated() | |
import { Injectable } from '@angular/core'; | |
import { CanActivate } from '@angular/router'; | |
import { LoginApi } from './shared/sdk'; | |
@Injectable() | |
export class AuthGuard implements CanActivate { | |
constructor(private _loginApi: LoginApi) { } | |
canActivate() { |
process.stdout.write('\033c'); |
"files": { | |
"loopback#static": [ | |
{ | |
"paths": [ | |
"/" | |
], | |
"params": "$!../client/dist" | |
}, | |
{ | |
"paths": [ |
{ | |
"env": { | |
"node": true, | |
"es6": true | |
}, | |
"rules": { | |
"semi": 2, | |
"indent": ["error", 2], | |
"arrow-body-style": [ ERROR, "always" ], | |
"arrow-parens": [ ERROR, "always" ], |
formatBytes(bytes) { | |
if (bytes < 1024) { | |
return bytes + " Bytes"; | |
} else if (bytes < 1048576) { | |
return parseInt(Math.ceil(bytes / 1024).toFixed(3), 10) + " KB"; | |
} else if (bytes < 1073741824) { | |
return parseInt(Math.ceil(bytes / 1048576).toFixed(3), 10) + " MB"; | |
} else { | |
return parseInt(Math.ceil(bytes / 1073741824).toFixed(3), 10) + " GB"; | |
} |