Skip to content

Instantly share code, notes, and snippets.

nakayuki nakayuki805

Block or report user

Report or block nakayuki805

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nakayuki805
nakayuki805 / mkdctw.js
Created Nov 5, 2014
magic kaito and detective conan tv tweet correcting script
View mkdctw.js
/* 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;
@nakayuki805
nakayuki805 / useragent.js
Last active Nov 8, 2016
User agent parser for node.js
View useragent.js
/* 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',
You can’t perform that action at this time.