Skip to content

Instantly share code, notes, and snippets.

Matt Kane ascorbic

Block or report user

Report or block ascorbic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IconSprite.tsx
import React, { FC, HTMLAttributes } from "react";
interface Props extends HTMLAttributes<SVGSVGElement> {
name: string;
width?: number | string;
height?: number | string;
export const IconSprite: FC<Props> = ({
ascorbic / App.tsx
Last active Dec 19, 2019
Spine/React demo
View App.tsx
import React, { useState, useEffect, useCallback } from "react";
import * as PIXI from "pixi.js";
import { Stage } from "@inlet/react-pixi";
import Spine from "./Spine";
window.PIXI = PIXI;
const mixes = [
ascorbic / index.html
Created Feb 20, 2019
Tiny parcel/React
View index.html
<div id="root"></div>
<script src="index.tsx"></script>
View SketchSystems.spec
waffle_bath unsticky a unsticky b
waffle_bath Unvisited
waffle_bath start -> waffle_bath Incomplete
waffle_bath Incomplete
waffle_bath start -> waffle_bath Incomplete
waffle_bath complete A -> waffle_bath CompletedOutcomeA
waffle_bath complete B -> waffle_bath CompletedOutcomeB
View SketchSystems.spec
STOP -> Stopped
PLAY -> Playing
Search for tracks -> Searching
ascorbic / passengers.json
Created Jan 28, 2017
Annual passengers in UK train stations
View passengers.json
"ABW": 2929472,
"ABE": 214996,
"ACY": 275404,
"ABA": 566904,
"ABD": 3459944,
"AUR": 127312,
"AVY": 38094,
"ABH": 1984,
"AGV": 435478,
ascorbic / StyleSettings.plist
Created Feb 24, 2014
Objective-Clean settings
View StyleSettings.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
ascorbic / gist:812387
Created Feb 5, 2011
A full example, that should work.
View gist:812387
var gotPicture = function(path) {
$('#previewPic').attr('src', path); /*optional */
var params = {foo: 'bar'};
var cookie = localStorage.getItem("Cookie");
if(cookie) {
params['__cookie'] = cookie;
You can’t perform that action at this time.