Skip to content

Instantly share code, notes, and snippets.

View sebmck's full-sized avatar

Sebastian sebmck

  • 01:51 (UTC -05:00)
View GitHub Profile
import { IndexedDataView } from "/binary";
import { setTag } from "../tags.ts";
import { AudioFileFormat, AudioFileRawTags, AudioFileMedia, ID3v2PictureType, AudioFileFormatType, AudioFileParseOptions } from "../types.ts";
import { createAudioFileParser } from "../utils.ts";
import { Duration } from "/numbers";
enum MetadataBlockHeaderType {
STREAMINFO = 0,
PADDING = 1,
APPLICATION = 2,
import { IndexedDataView } from "../IndexedDataView.ts";
import { FileInfo, FileTags, File, FileMedia, ID3v2PictureType } from "../types.ts";
enum MetadataBlockHeaderType {
STREAMINFO = 0,
PADDING = 1,
APPLICATION = 2,
SEEKTABLE = 3,
VORBIS_COMMENT = 4,
CUESHEET = 5,
import { encodeText } from "/binary";
import { Reporter } from "/tool/console_reporter";
import { Event } from "/events";
import { Duration, DurationMeasurer, Percent } from "/numbers";
import { createResourceFromCallback, Resource } from "/resources";
import { processResource } from "/tool/resources";
class EventLoopLagTracker {
constructor(delay: Duration) {
this.#delay = delay;

Keybase proof

I hereby claim:

  • I am kittens on github.
  • I am sebmck (https://keybase.io/sebmck) on keybase.
  • I have a public key ASBzIEBB9UWMi7xO62JsBfAPNPszyyR-jVJJol3k421a9Qo

To claim this, I am signing this object:

const parsed = { type: "File", program: parse(unsorted) };
// Find all imports
let imports = []
traverse(parsed, {
ImportDeclaration(node, parent) {
imports.push({node, text: unsorted.substring(node.start, node.end)});
}
});
@sebmck
sebmck / Column.js
Created September 16, 2015 03:35 — forked from ryanflorence/Column.js
import React from 'react';
import { Flex } from 'jsxstyle';
class Column extends React.Component {
render () {
return <Flex {...this.props} direction="column"/>;
}
}
export default Column;
interface LoginNavState {
showLoginOptions: boolean
}
class LoginNav extends React.Component<{}, LoginNavState> {
constructor() {
super()
this.state = {
showLoginOptions: false
function getValues () {
return {
a: 1,
b: 2
};
}
let {a, b} = getValues();
console.log(a, b);
// ==UserScript==
// @name Remove "▶" from page titles
// @include *
// ==/UserScript==
var title = document.getElementsByTagName("title")[0];
var ignore = false;
title.addEventListener("DOMSubtreeModified", function () {
if (ignore) {
function plus(a, b){
switch (a) {
case "0":
switch (b) {
case "0": return 0;
case "1": return 1;
case "2": return 2;
case "3": return 3;
case "4": return 4;
case "5": return 5;