8000 GitHub - jimkang/observatory: Observes the work you've done; kind of an anti-planner.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jimkang/observatory

Folders and files

NameName
Last commit message
Last commit date

8000 Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

observatory

Observes the work you've done; kind of an anti-planner.

TODO:

  • Disable panning beyond earliest and latest activities.
  • Make activities squares within a column instead of squares on a line.

Installation

First, install Node. Then:

npm install
npm install wzrd -g

Usage

make run    

Then, wzrd will say something like:

wzrd index.js
server started at http://localhost:9966

You can open your browser to that.

Run eslint . before committing.

Tests

Run tests with make test, make test-chrome, and make test-firefox.

Testing whether or not updating existing repos works on large numbers of repos

  • make test-long > previous-run-repo-states.json

  • node tests/long/get-user-commits-tests.js previous-run-repo-states.json > next-run-repo-stats.json

  • Edit the above JSON files down to only the repo dumps – pure JSON, no test reports.

  • In a Node REPL:

      var fs = require('fs');
      var prevRun = JSON.parse(fs.readFileSync('previous-run-repo-states.json'));
      var followupRun = JSON.parse(fs.readFileSync('next-run-repo-states.json'));
      var beforeAndAfterCommitCounts = {};
      prevRun.forEach(repo => beforeAndAfterCommitCounts[repo.name] = [repo.commits ? repo.commits.length : 0, -1])
      followupRun.forEach(repo => beforeAndAfterCommitCounts[repo.name][1] = repo.commits ? repo.commits.length : 0);
      beforeAndAfterCommitCounts
    
  • You should get a dictionary whose values are before-and-after commit count pairs, like this:

      {
        observatory: [ 21, 21 ],
        'andersonkang.com': [ 2129, 4285 ],
        'blank-things-glitch': [ 8, 8 ],
        knowledge: [ 30, 30 ],
        necromanticbot: [ 4, 4 ],
        toad: [ 46, 46 ],
        'slack-gis': [ 25, 25 ],
        'namedlevels-api': [ 36, 36 ],
        smidgeodice: [ 41, 41 ],
        'transform-word-bot': [ 34, 34 ],
        'can-i-chime-in': [ 29, 29 ],
        iscool: [ 94, 94 ],
        godtributes: [ 419, 419 ],
        toptracks: [ 5, 5 ],
        'lampbearer-data': [ 468, 468 ],
        linkfinds: [ 112, 112 ],
        'route-state': [ 7, 7 ],
        'where-is-your-time': [ 10, 10 ],
        'get-archive-audio': [ 1, 1 ],
        'girl-are-you-bot': [ 2, 2 ],
        wordnok: [ 23, 23 ],
        offbrandvine: [ 26, 26 ],
        'off-brand-vine': [ 47, 47 ],
        'github-file-test': [ 760, 978 ],
        'github-file': [ 20, 20 ],
        lampbearer: [ 81, 81 ],
        'gdal-zelda': [ 7, 7 ],
        'get-video-from-twitter-timeline': [ 7, 7 ],
        'boil-tweet-to-video': [ 1, 1 ],
        'through-stream-testbed': [ 1, 1 ],
        'what-has-he-done': [ 0, 37 ],
        jimp: [ 0, 0 ],
        exogenite: [ 0, 16 ],
        accessor: [ 0, 6 ],
        'spotify-resolve': [ 0, 18 ],
        'd3-queue': [ 0, 1 ],
        'call-next-tick': [ 0, 9 ],
        'lets-see-it': [ 0, 11 ],
        'get-w2v-google-news-neighbors': [ 0, 6 ],
        'get-spotify-sample': [ 0, 4 ],
        'jimkang.github.io': [ 0, 56 ],
        'what-has-he-done-data': [ 0, 8 ],
        'github-token-exchanger': [ 0, 2 ],
        stairs: [ 0, 24 ],
        simplescroll: [ 0, 8 ],
        portals: [ 0, 19 ],
        'node-module-boilerplate': [ 0, 17 ],
        'list-em-all': [ 0, 27 ],
        sprigot: [ 0, 74 ],
        'sprigot-web': [ 0, 65 ],
        'scratch-repo': [ 0, 8 ],
        'basic-browser-request': [ 0, 27 ],
        autocompleterap: [ 0, 65 ],
        'annoy-node': [ 0, 42 ],
        'secret-site-web': [ 0, 15 ],
        'spawn-secret-site': [ 0, 21 ],
        '7drl': [ 0, 18 ],
        'handle-error-web': [ 0, 1 ],
        'get-rgba-palette': [ 0, 1 ],
        probable: [ 0, 44 ],
        'ngram-seance': [ 0, 57 ],
        'get-spotify-client-credentials': [ 0, 1 ],
        chronicler: [ 0, 19 ],
        council: [ 0, 63 ],
        'render-grid-scratch': [ 0, 10 ],
        'steve-reich-it': [ 0, 2 ],
        nounfinder: [ 0, 15 ],
        'word2vec-google-news-api': [ 0, 9 ],
        demakebot: [ 0, 17 ],
        'hail-ants-bot': [ 0, 56 ],
        'scale-to-fit': [ 0, 18 ],
        'd3-batcher': [ 0, 6 ],
        'd3-render-batch': [ 0, 14 ],
        'roll-a-guy': [ 0, 18 ],
        tracery: [ 0, 1 ],
        annoy: [ 0, 0 ],
        'nearest-neighbor-test-data': [ 0, 1 ],
        word2vec2annoy: [ 0, 13 ],
        warplog: [ 0, 1 ],
        'walk-machine': [ 0, 6 ],
        'reply-decision-kit': [ 0, 7 ],
        embody: [ 0, 1 ],
        enmeaten: [ 0, 17 ],
        'fork-bone': [ 0, 21 ],
        'post-image-to-twitter': [ 0, 1 ],
        'dependency-parser': [ 0, 42 ],
        'basic-2d-math': [ 0, 1 ],
        'meat-talk': [ 0, 1 ],
        'widen-bend': [ 0, 17 ],
        'pokemon-nypl-bot': [ 0, 13 ],
        'random-apod': [ 0, 3 ],
        'public-domain-nypl-captures': [ 0, 11 ],
        'head-filter-urls': [ 0, 2 ],
        figurator: [ 0, 7 ],
        'log-format': [ 0, 1 ],
        word2vec: [ 0, 0 ],
        'namedlevels-bot': [ 0, 16 ],
        levelnamer: [ 0, 31 ],
        aggrandizer: [ 0, 16 ],
        'weblog-src': [ 0, 71 ],
        kilwala: [ 0, 4 ],
        swarm: [ 0, 10 ],
        'filtered-followback': [ 0, 16 ],
        quidprofollow: [ 0, 25 ],
        'assert-no-error': [ 0, 1 ],
        'paste-bitmaps': [ 0, 7 ],
        'web-photo-booth-service': [ 0, 5 ],
        'web-photo-booth': [ 0, 25 ],
        'node-webshot': [ 0, 1 ],
        'link-finding': [ 0, 21 ],
        'if-you-are-reading-this': [ 0, 58 ],
        claps: [ 0, 3 ],
        'aw-yea-bot': [ 0, 12 ],
        'a-tyranny-of-words': [ 0, 26 ],
        circlejams: [ 0, 20 ],
        'street-mode-sheet-mode': [ 0, 5 ],
        businesswords: [ 0, 10 ],
        whosthereautocomplete: [ 0, 15 ],
        'material-monsters-bot': [ 0, 6 ],
        'material-monsters': [ 0, 15 ],
        monsters: [ 0, 13 ],
        'triple-a-titles': [ 0, 19 ],
        nsssbuild: [ 0, 31 ],
        'standard-bail': [ 0, 7 ],
        namedlevels: [ 0, 19 ],
        'namedlevels-web': [ 0, 60 ],
        'fucking-shakespeare': [ 0, 11 ],
        nonstopscrollbot: [ 0, 5 ],
        'magic-pizzas': [ 0, 4 ],
        phonemenon: [ 0, 45 ],
        'split-to-words': [ 0, 1 ],
        'smidgeo-headporters': [ 0, 69 ],
        twitterjerkdetector: [ 0, 25 ],
        pizza: [ 0, 4 ],
        'get-images-from-tweet': [ 0, 1 ],
        'g-i-s': [ 0, 14 ],
        'annotated-rogue': [ 0, 12 ],
        docco: [ 0, 2 ],
        questingbot: [ 0, 2 ],
        rapgamemetaphor: [ 0, 16 ],
        rime: [ 0, 37 ],
        collectivizer: [ 0, 25 ],
        'spline-emitter': [ 0, 5 ],
        nonstopscrollshop: [ 0, 146 ],
        makemerch: [ 0, 5 ],
        'get-from-library': [ 0, 7 ],
        encounterer: [ 0, 19 ],
        systemjams: [ 0, 4 ],
        MemeFi: [ 0, 69 ],
        'streaming-video-talk': [ 0, 7 ],
        'trenchant-insights': [ 0, 18 ],
        tablenest: [ 0, 1 ],
        csscrown: [ 0, 3 ],
        'randomgraph.js': [ 0, 2 ],
        ohay: [ 0, 2 ],
        'emoji-jury': [ 0, 5 ],
        massdaycare: [ 0, 46 ],
        kyo: [ 0, 3 ],
        strokerouter: [ 0, 18 ],
        'daycare-provider-api': [ 0, 6 ],
        'wander-google-ngrams': [ 0, 38 ],
        'fetch-headlines': [ 0, 7 ],
        'smidgeo-outpost': [ 0, 1 ],
        'iframe-experiments': [ 0, 4 ],
        'tweet-truncate': [ 0, 5 ],
        'b-64': [ 0, 3 ],
        'fact-bots': [ 0, 8 ],
        'fuck-shit-up': [ 0, 36 ],
        glowyclock: [ 0, 32 ],
        'masschildcaredata.github.io': [ 0, 0 ],
        canonicalizer: [ 0, 3 ],
        'd3-selection': [ 0, 1 ],
        'post-tweet-chain': [ 0, 1 ],
        'path-exists': [ 0, 2 ],
        'data-joiner': [ 0, 3 ],
        'get-sentences-from-article': [ 0, 11 ],
        'get-random-article': [ 0, 7 ],
        'ngram-chain-to-sentence': [ 0, 1 ],
        'tupac-advisory': [ 0, 20 ],
        'rime-docker-image': [ 0, 3 ],
        'decent-activity': [ 0, 52 ],
        'videowall-seekbar': [ 0, 35 ],
        camera: [ 0, 12 ],
        'date-ranger': [ 0, 11 ],
        'file-grab-webhook': [ 0, 1 ],
        'brush-viewfinder': [ 0, 27 ],
        matchupbot: [ 0, 5 ],
        'ngram-getter': [ 0, 12 ],
        'triple-a-namer': [ 0, 24 ],
        'better-know-a-tweet': [ 0, 5 ],
        monthlydamage: [ 0, 14 ],
        'watching-very-closely': [ 0, 8 ],
        everygis: [ 0, 1 ],
        'pick-first-good-url': [ 0, 5 ],
        terraces: [ 0, 6 ],
        lsystem: [ 0, 14 ],
        'search-amazon-products': [ 0, 1 ],
        attnbot: [ 0, 44 ],
        mishear: [ 0, 15 ],
        'monthly-damage': [ 0, 1 ],
        'svg-line-curved': [ 0, 6 ],
        shakesnippet: [ 0, 1 ],
        'mishear-phrase': [ 0, 28 ],
        crotchety: [ 0, 1 ],
        'videowall-seekbar-to-media-loop': [ 0, 1 ],
        'get-file-line-offsets-in-json': [ 0, 5 ],
        'slack-webhook-microserver': [ 0, 10 ],
        'basicset-levelwrap': [ 0, 19 ],
        homophonizer: [ 0, 56 ],
        'get-popular-tweets': [ 0, 3 ],
        'profile-capitalization': [ 0, 1 ],
        'level-browserify': [ 0, 0 ],
        'seeping-links': [ 0, 2 ],
        'array-viewfinder': [ 0, 12 ],
        mhd: [ 0, 37 ],
        'market-stox': [ 0, 20 ],
        'level-cache-server': [ 0, 16 ],
        'multilevel-cache-tools': [ 0, 12 ],
        'word-phoneme-map': [ 0, 19 ],
        'bdd-poetry': [ 0, 12 ],
        'get-spatial-preposition': [ 0, 2 ],
        'twitter-sampler': [ 0, 6 ],
        'word-syllable-map': [ 0, 4 ],
        codesampler: [ 0, 74 ],
        'iframe-size-experiments': [ 0, 3 ],
        'basic-level-tree': [ 0, 33 ],
        'basic-subleveler': [ 0, 4 ],
        urchin: [ 0, 2 ],
        'sprigot-api': [ 0, 509 ],
        materials: [ 0, 9 ],
        shunt: [ 0, 18 ],
        'export-methods': [ 0, 3 ],
        'sprigot-legacy-api': [ 0, 491 ],
        'fuck-shit-up-bookmarklet': [ 0, 6 ],
        'repeat-lines-web': [ 0, 3 ],
        mote: [ 0, 25 ],
        'srv-request': [ 0, 0 ],
        gravitybox: [ 0, 3 ],
        'url-body-stream': [ 0, 4 ],
        autocompl: [ 0, 4 ],
        lossyfortunes: [ 0, 119 ],
        cellgridrenderer: [ 0, 12 ],
        'phoneme-sequencer': [ 0, 33 ],
        'phoneme-types': [ 0, 5 ],
        stampy: [ 0, 6 ],
        dicecup: [ 0, 16 ],
        meedley: [ 0, 2 ],
        'smidgeo.github.io': [ 0, 0 ],
        findnounpairs: [ 0, 1 ],
        emojisource: [ 0, 1 ],
        'conform-async': [ 0, 4 ],
        novelrrbot: [ 0, 21 ],
        advancedtechniques: [ 0, 3 ],
        wardboss: [ 0, 23 ],
        editize: [ 0, 18 ],
        tweethook: [ 0, 4 ],
        reactivecell: [ 0, 76 ],
        metafilterfilter: [ 0, 5 ],
        cellmap: [ 0, 32 ],
        'roguemap-parse-stream': [ 0, 25 ],
        scrapeproviderlinks: [ 0, 6 ],
        cellseriesviewer: [ 0, 3 ],
        'flickrset-to-html': [ 0, 3 ],
        scrollwatcher: [ 0, 12 ],
        idmaker: [ 0, 3 ],
        quadtreevis: [ 0, 102 ],
        commandcenter: [ 0, 1 ],
        quadtreemap: [ 0, 41 ],
        quadtreetree: [ 0, 40 ],
        quadtreelabeler: [ 0, 6 ],
        twittershuffle: [ 0, 3 ],
        'twitter-shuffle-chrome-extension': [ 0, 3 ],
        'pkf-5': [ 0, 0 ],
        gcwsite: [ 0, 116 ],
        sparse: [ 0, 4 ],
        removeconversations: [ 0, 1 ],
        backagain: [ 0, 53 ],
        sandworm: [ 0, 5 ],
        scriptchain: [ 0, 3 ],
        '1x1': [ 0, 31 ],
        PlayAll: [ 0, 31 ],
        howfar: [ 0, 3 ],
        swaptags: [ 0, 4 ],
        thetwoguysdata: [ 0, 0 ],
        signrequest: [ 0, 1 ],
        boxadder: [ 0, 169 ],
        FileCheck: [ 0, 5 ]
      }
    
  • The right side should always be greater or equal to the left. There should be at least one case where both sides are non-zero and the right side is greater (depending on the repo set being used).

Current issues

  • How do we let a user share their graphs, given that the GitHub API only lets you view commits for repo that you have access to, even if those commits are publicly viewable?

    • I can't. We can share my stuff by having a server serve a cached version of my own stuff, but I can't do that for other people unless they ask.
    • How can I line up the server stuff with direct calls to the GitHub API?
      • Single server call, multiple writes to the http connection.
      • Browser waits until it has a full line, then parses and calls onProject or onDeed?
      • How to tell the server not to get everything? Different requests to the API and the server?
        • Additional POST body fields for existing repos? Awkward.
        • Entirely different call to server that includes:
          • username
          • existingRepos (Is this huge, though?)
  • Should we get contributedRepositories as well as repositories?

License

The MIT License (MIT)

Copyright (c) 2017 Jim Kang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Observes the work you've done; kind of an anti-planner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0