Skip to content

Instantly share code, notes, and snippets.

View evidens's full-sized avatar

F. Gabriel Gosselin evidens

View GitHub Profile
@jeanphix
jeanphix / gist:1419502
Created December 1, 2011 20:13
alembic / flask-sqlalchemy (alembic/env.py)
import os
import sys
from alembic import context
from sqlalchemy import engine_from_config
from logging.config import fileConfig
sys.path.append(os.getcwd())
from models import metadata
from myapp import app
@evidens
evidens / vim.rb
Created April 16, 2012 22:45
Vim formula for Homebrew
require 'formula'
class VimHg < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => '2cfb68fa26cd'
version '7.3.487'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active April 26, 2024 23:26 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.

@gaearon
gaearon / actionsactionsactionsactions.js
Created June 16, 2015 12:06
Basic action monitoring for Redux
// App.js
import { Provider, Connector } from 'redux/react';
import monitor from './monitor/index';
const store = composeStores(stores);
const { dispatcher, ActionLog } = monitor(createDispatcher(store));
const redux = createRedux(dispatcher);
export default class App {
// Usage: import makeTypeDef from './graphql-schema-creator.js';
// makeTypeDef('mynewtype', myTypeValue);
import {
GraphQLObjectType,
GraphQLNonNull,
GraphQLSchema,
GraphQLString,
GraphQLList,
GraphQLInt,