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
/* magic kaito and detective conan live tweet correcting script */ | |
/*jslint node: true */ | |
'use strict'; | |
var Twitter = require('twitter'); | |
var fs = require('fs'); | |
var util = require('util'); | |
require('date-utils'); | |
var today = new Date(); | |
var todaystr = today.toFormat("YY-MMM-DD"); | |
var restInterval = 7; |
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
/* global __dirname console exports process require */ | |
// useragent parser for PC,tablet,smartphone,featurephone | |
/* | |
usage: | |
UAparser = require('./useragent');//require this file | |
result = UAparser('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/31.0.1650.63 Chrome/31.0.1650.63 Safari/537.36'); | |
console.log(result); | |
{ device: 'PC', | |
os: 'Linux', |