samverschueren / dev-time-cli Goto Github PK
View Code? Open in Web Editor NEWGet the current local time of a GitHub user.
License: MIT License
Get the current local time of a GitHub user.
License: MIT License
Give the output some colors.
$ dev-time SamVerschueren
SamVerschueren
HTTPError: Response code 403 (Forbidden)
at /Users/Hemanth/.nvm/versions/node/v5.1.0/lib/node_modules/dev-time-cli/node_modules/got/index.js:102:11
at BufferStream.<anonymous> (/Users/Hemanth/.nvm/versions/node/v5.1.0/lib/node_modules/dev-time-cli/node_modules/read-all-stream/index.js:64:3)
at emitNone (events.js:72:20)
at BufferStream.emit (events.js:166:7)
at finishMaybe (/Users/Hemanth/.nvm/versions/node/v5.1.0/lib/node_modules/dev-time-cli/node_modules/readable-stream/lib/_stream_writable.js:509:14)
at endWritable (/Users/Hemanth/.nvm/versions/node/v5.1.0/lib/node_modules/dev-time-cli/node_modules/readable-stream/lib/_stream_writable.js:519:3)
at BufferStream.Writable.end (/Users/Hemanth/.nvm/versions/node/v5.1.0/lib/node_modules/dev-time-cli/node_modules/readable-stream/lib/_stream_writable.js:484:5)
at Unzip.onend (_stream_readable.js:490:10)
at Unzip.g (events.js:260:16)
at emitNone (events.js:72:20)
This looks like I have exceeded the request limit, should we log something meaningful here?
Say like use an auth-token?
It would be nice to have a good looking screenshot to show what it does.
It will be useful if this util takes a list of devs.
C:\Users\Andre\MEGA\game\wizz>dev-time SamVerschueren
C:\Users\Andre\AppData\Roaming\npm\node_modules\dev-time-cli\cli.js:3
const updateNotifier = require('update-notifier');
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
OS : Win 8.0
Node : 0.12.0
Npm: 2.5.1
Should we show an elegant spinner when providing only one user? Didn't do it at first to be able to pipe it to another function.
It would cool to have tab completion on username based on those present at ~/.config/configstore/dev-time.json
It will be useful to know the time offset between the local time and the dev-time (lazy to do the math)
I work on a large international team using GitHub Enterprise. I think it would be cool to support that. We could probably do something like check if we are in a git working tree and if the origin
is not github.com
then to try the origin as a GitHub Enterprise URL, falling back to github.com
.
The trickiest part would be authorization. Would it be reasonable to ask users to place access tokens somewhere?
From de77c2b#commitcomment-14815063.
It might be useful to include the timezone too, so I don't have to calculate it in my head.
I would also go with07
=>7
.
And the time first.
Ok usecase: Lets say we have a webpage that lists all the members of an github org, will their current time ;) [Wired usecase, this is the first thing that came to my mind]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.