Skip to content

Instantly share code, notes, and snippets.

import java.util.ArrayList;
class Person {
private String name;
public Person(String name) {
public String getName() {
View NavigationPrompt.js
import React, { PropTypes } from 'react'
const BEFOREUNLOAD = "beforeunload"; // see:
class NavigationPrompt extends React.Component {
static contextTypes = {
router: PropTypes.object.isRequired
static defaultProps = {
when: true
View Redux-Connect
<!DOCTYPE html>
<meta name="description" content="[Todo App]">
<script src="//"></script>
<script src="//"></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
View DebounceLostProps.js
import React from 'react'
import { Debounce } from 'react-throttle'
var XPos = (props) => {
return <div>
x: {props.x}
var YPos = (props) => {
gpltaylor / FormidableLabs spectacle
Last active October 3, 2016 18:43
How to separate Slides into module files
View FormidableLabs spectacle
import React from "react";
import {
} from "spectacle";
var MainBody = () => {
return <div>
gpltaylor / ShouldSerializeContractResolver.cs
Created September 26, 2015 17:03
Sample ContractResolver that conditionally removes properties from JSON. This can be plumbed into ASP.NET/API
View ShouldSerializeContractResolver.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Linq
using AutoMapper;
using Newtonsoft.Json;