Skip to content

Instantly share code, notes, and snippets.

@rygine
rygine / Login.js
Last active January 26, 2016 20:48
An initial draft at managing local state within the global state tree.
import React, { Component, PropTypes } from 'react';
import { stateful } from './createStateful';
class Login extends Component {
static propTypes = {
state: PropTypes.object,
}
onUserUpdate(evt) {
@JefClaes
JefClaes / gist:0cfed3f0ad26a75eda1e
Created October 5, 2014 13:05
Event Store PackageFramingException: Package size is out of bounds
[07,09:57:30.489,ERROR] TcpPackageConnection: [127.0.0.1:1113, L127.0.0.1:55697, {d9265236-f72b-4418-a470-780ab7ef2af9}]. Invalid TCP frame received.
EXCEPTION(S) OCCURRED:
EventStore.ClientAPI.Transport.Tcp.PackageFramingException: Package size is out of bounds: 186992564 (max: 67108864).
at EventStore.ClientAPI.Transport.Tcp.LengthPrefixMessageFramer.Parse(ArraySegment`1 bytes)
at EventStore.ClientAPI.Transport.Tcp.LengthPrefixMessageFramer.UnFrameData(IEnumerable`1 data)
at EventStore.ClientAPI.Transport.Tcp.TcpPackageConnection.OnRawDataReceived(ITcpConnection connection, IEnumerable`1 data)
@jpierson
jpierson / one-time-git-setup.md
Created April 24, 2017 09:06
Setup instructions for Git
@jpierson
jpierson / gitflow-breakdown.md
Last active May 24, 2017 02:37 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@xmlking
xmlking / Enum.es6.js
Last active June 25, 2019 18:09
JavaScript Enums with ES6, Type Checking and Immutability
export class EnumSymbol {
sym = Symbol.for(name);
value: number;
description: string;
constructor(name: string, {value, description}) {
if(!Object.is(value, undefined)) this.value = value;
if(description) this.description = description;
@tonysneed
tonysneed / Startup.cs
Last active November 10, 2019 11:42
ASPNetCore: App_Data with LocalDb File
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
{
// Set up configuration sources ...
// Set up data directory
string appRoot = appEnv.ApplicationBasePath;
AppDomain.CurrentDomain.SetData("DataDirectory", Path.Combine(appRoot, "App_Data"));
}
@alienlebarge
alienlebarge / index.html
Last active July 29, 2020 18:46
HTML5 structure for a search result page
<section>
<header>
<h2>Results for <kbd>this terms</kbd></h2>
</header>
<!-- list of results -->
<ol>
<!-- First result -->
@jpierson
jpierson / windows-long-path-support.md
Created October 11, 2018 13:14
windows-long-path-support
@Couto
Couto / webpack.js
Last active November 11, 2020 17:53
Fetch polyfill with webpack
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
var folders = {
APP: path.resolve(__dirname, '../app'),
BUILD: path.resolve(__dirname, '../build'),
BOWER: path.resolve(__dirname, '../bower_components'),
NPM: path.resolve(__dirname, '../node_modules')
};