I hereby claim:
- I am lukekarrys on github.
- I am lukekarryz (https://keybase.io/lukekarryz) on keybase.
- I have a public key ASDHFjKV-21jX2bEkz2emB4ZXj2ZhBPPKlhHvbJsxnzYoAo
To claim this, I am signing this object:
| node_modules/ | |
| package-lock.json | |
| package.json |
I hereby claim:
To claim this, I am signing this object:
| const { Octokit } = require("@octokit/core"); | |
| const fs = require("fs").promises; | |
| const octokit = new Octokit({ | |
| auth: "GH_REPO_TOKEN", | |
| }); | |
| const ORG = process.argv[2]; | |
| const PER_PAGE = 100; | |
| const getAll = async () => { |
| import { JSDOM, VirtualConsole } from "jsdom"; | |
| import fetch from "node-fetch"; | |
| const appleUrl = (p) => { | |
| return new URL(p, `https://www.apple.com`); | |
| }; | |
| const fetchPage = async (url) => { | |
| const res = await fetch(appleUrl(url)); | |
| const html = await res.text(); |
| const http = require("http"); | |
| const fs = require("fs"); | |
| const serve = (res, data, headers) => { | |
| res.writeHead(200, headers); | |
| res.end(data); | |
| }; | |
| const randomName = () => Math.random().toString().slice(2); |
| node_modules/ |
| module.exports = (keys) => new Proxy( | |
| keys.reduce((acc, key) => ((acc[key] = key), acc), {}), | |
| { | |
| get: function(target, name) { | |
| // Since this getter gets called for all keys, some values need to be ignored | |
| if ( | |
| // If this proxy gets logged or inspected then name | |
| // could be a symbol or the string inspect | |
| typeof name === 'symbol' || | |
| name === 'inspect' || |
| const timeToSeconds = (t) => t | |
| .split(':') | |
| .reverse() | |
| .reduce((acc, value, i) => acc + value * Math.pow(60, i), 0) | |
| const timesToPoints = (...times) => Math.round(times[0] / times[1] * 1000) | |
| const main = (...times) => { | |
| const parsed = times.map(timeToSeconds) | |
| if (parsed.length === 3) { |
| node_modules | |
| token.json | |
| db.json |
| javascript:(()=>{const e=["Sun","Mon","Tues","Wed","Thur","Fri","Sat"],r=[...document.querySelectorAll(".js-calendar-graph-svg > g > g")].reduce((e,r)=>[...r.querySelectorAll("rect.day")].reduce((e,r,t)=>(e[t][0]+="0"===r.getAttribute("data-count")?0:1,e[t][1]+=1,e),e),e.map(()=>[0,0])).reduce((r,t,c)=>(r[e[c]]=+(t[0]/t[1]*100).toFixed(3),r),{});console.log(r)})(); |