I hereby claim:
- I am ksm2 on github.
- I am ksm2 (https://keybase.io/ksm2) on keybase.
- I have a public key whose fingerprint is 5CB8 0A5A 54A3 3763 182B B456 FDB4 F33D 8EAC 6D33
To claim this, I am signing this object:
import { Readable } from 'stream'; | |
import ReadableStreamIterable from './ReadableStreamIterable'; | |
describe('ReadableStreamIterable', () => { | |
it('consumes pre-pushed items', async () => { | |
const r = new Readable({ objectMode: true }); | |
const i = new ReadableStreamIterable(r); | |
r.push(1); | |
r.push(2); |
import Yaml from 'js-yaml' | |
import 'reflect-metadata' | |
export interface SettingOptions { | |
nullable?: boolean | |
} | |
export const Setting = ({ nullable = false }: SettingOptions = {}): PropertyDecorator => (target, propertyKey) => { | |
let properties: string[] = Reflect.getMetadata('config:settings', target) | |
if (!properties) { |
function* map<T, S>(iterable: Iterable<T>, callback: (param: T) => S): IterableIterator<S> { | |
for (const item of iterable) { | |
yield callback(item); | |
} | |
} | |
function* flatMap<T, S>(iterable: Iterable<T>, callback: (param: T) => Iterable<S>): IterableIterator<S> { | |
for (const item of iterable) { | |
yield* callback(item); | |
} |
I hereby claim:
To claim this, I am signing this object:
class Uint8ArrayToLinesOfTextTransformer implements Transformer<Uint8Array, string> { | |
private readonly decoder: TextDecoder | |
private lastString: string | |
constructor() { | |
this.decoder = new TextDecoder() | |
this.lastString = '' | |
} | |
transform(chunk: Uint8Array, controller: TransformStreamDefaultController<string>): void { |
<script> | |
var setResult = setResult || function setResult(tag, bool) { | |
console.log(tag + ' supported? ' + (bool ? 'yes' : 'no')); | |
}; | |
// Basic support | |
try { | |
var result0 = true; | |
// Test exposed globals |
#!/bin/bash | |
FILE=$1 | |
PAGES=$(pdfinfo ${FILE} | grep 'Pages:' | sed 's/Pages:\s*//') | |
GRAYPAGES="" | |
COLORPAGES="" | |
EMPTYPAGES="" | |
echo -e "\e[1mPages:\e[0m $PAGES" |
#!/bin/sh | |
convert "$1" \ | |
-channel rgba \ | |
-alpha on \ | |
-define icon:auto-resize=64,48,32,16 \ | |
favicon.ico |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%% %% | |
%% MÖLLERS' MATHE PACKAGE FOR LATEX %% | |
%% %% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\ProvidesPackage{MoellersMathe} | |
%%---------------------------------------------------------------------------------------- | |
%% Requirements | |
%%---------------------------------------------------------------------------------------- |