Skip to content

Instantly share code, notes, and snippets.

View jmfirth's full-sized avatar

Justin Firth jmfirth

  • Indiana
View GitHub Profile
export function greet() {
console.log('Hello world!');
}
@jmfirth
jmfirth / definitions.json
Created April 12, 2017 16:00
Canvas Mosaic Panning
{}
@jmfirth
jmfirth / App.tsx
Created April 7, 2017 19:27
React and Pixi.js
import * as React from 'react';
import Stage from './Stage';
import DraggableSquare from './DraggableSquare';
interface State {
x: number;
y: number;
width: number;
height: number;
color: number;
@jmfirth
jmfirth / Circle.tsx
Last active April 7, 2017 15:34
React and Pixi.js
import * as React from 'react';
import { ShapeProps } from './stageParser';
interface Props extends ShapeProps {
x: number;
y: number;
radius: number;
}
export default class Circle extends React.Component<Props, null> {
@jmfirth
jmfirth / definitions.json
Last active April 6, 2017 00:23
TypeScript Playground Project
{"react/index.d.ts":"https://unpkg.com/@types/react/index.d.ts","react-dom/index.d.ts":"https://unpkg.com/@types/react-dom/index.d.ts","arcgis/arcgis-js-api.d.ts":"https://raw.githubusercontent.com/Esri/jsapi-resources/master/4.x/typescript/arcgis-js-api.d.ts"}
{"pixi.js/index.d.ts":"https://unpkg.com/@types/pixi.js/index.d.ts"}
@jmfirth
jmfirth / App.tsx
Last active April 5, 2017 18:39
react and react-router v4
import * as React from 'react';
import {
MemoryRouter as Router,
Route,
Link
} from 'react-router-dom'
import Home from './screens/Home';
import About from './screens/About';
import Topics from './screens/Topics';
@jmfirth
jmfirth / app.tsx
Created April 5, 2017 06:38
React Test
import * as React from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
export default class App extends React.Component<void, void> {
render() {
return (
<Router>
<h1>Hello world!</h1>
</Router>
);
@jmfirth
jmfirth / comp___a.ts
Created April 4, 2017 21:41
TypeScript Playground Project
hi
@jmfirth
jmfirth / definitions.json
Created April 4, 2017 21:23
test/test/ttt/test.ts
{"pixi.js/index.d.ts":"https://unpkg.com/@types/pixi.js/index.d.ts"}