Skip to content

Instantly share code, notes, and snippets.

View tgandrews's full-sized avatar

Tom Andrews tgandrews

View GitHub Profile
#!/usr/bin/env node
/* eslint-disable import/unambiguous,no-console,no-new */
const dynamoose = require("dynamoose");
dynamoose.AWS.config.update({
accessKeyId: "dummy",
secretAccessKey: "dummy",
region: "eu-west-1"
});
import React from "react";
import PropTypes from "prop-types";
import Downshift from "downshift";
class Typeahead extends React.Component {
state = {
value: null
};
handleStateChange = changes => {
use diesel::prelude::*;
use diesel::pg::PgConnection;
use models::Post;
use schema::posts::dsl::*;
use db::establish_connection;
pub struct PostStore {
connection: PgConnection
}
@tgandrews
tgandrews / application.css.scss
Last active August 29, 2015 14:09
SASS Rails pipeline
@import 'common/mixins';
@import 'common/variables'; /* variable $content-max-width defined here */
.main { height: $content-max-width; } /* works */
@import 'common/content'; /* fails, undefined variable $content-max-width */