I hereby claim:
- I am mesprague on github.
- I am mattsprague (https://keybase.io/mattsprague) on keybase.
- I have a public key ASDbQndhauG7OwhVaqXZxRWzWFnES5xd2G4TXPzgnQoRCAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
""" | |
import csv | |
import requests |
#!/bin/bash | |
# | |
# Binary search tree is of the form: | |
# 10 | |
# / \ | |
# / \ | |
# 4 16 | |
# / \ / | |
# 1 7 12 | |
# |
'use strict'; | |
const from = require('from2'); | |
const pIsPromise = require('p-is-promise'); | |
module.exports = x => { | |
if (Array.isArray(x)) { | |
x = x.slice(); | |
} | |
let promise; |
var Readable = require('readable-stream').Readable | |
var shift = require('stream-shift') | |
var stream2 = function (stream) { | |
if (stream._readableState) return stream | |
return new Readable({objectMode: true, highWaterMark: 16}).wrap(stream) | |
} | |
module.exports = function (stream) { | |
stream = stream2(stream) |
#!/usr/bin/env node | |
// Reads JSON from stdin and writes equivalent | |
// nicely-formatted JSON to stdout. | |
var stdin = process.stdin, | |
stdout = process.stdout, | |
inputChunks = []; | |
stdin.resume(); |
aursearch() { | |
http "https://aur.archlinux.org/rpc/?v=5" type==search arg==sddm | |
} | |
aurinfo() { | |
http "https://aur.archlinux.org/rpc/?v=5" type==info arg==sddm | |
} | |
alias pretty-pug="pug -P" |
export class EnumSymbol { | |
sym = Symbol.for(name); | |
value: number; | |
description: string; | |
constructor(name: string, {value, description}) { | |
if(!Object.is(value, undefined)) this.value = value; | |
if(description) this.description = description; |
# search the Arch User Repository | |
alx-aur-search() { curl -s $(printf "https://aur.archlinux.org/rpc.php?type=search&arg=%s" $1) | jshon -e results; } | |
findowner() { local result = ($(pacman -Qo $1)); echo ${result[4]}; } |