This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import PropTypes from "prop-types"; | |
import Downshift from "downshift"; | |
class Typeahead extends React.Component { | |
state = { | |
value: null | |
}; | |
handleStateChange = changes => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use diesel::prelude::*; | |
use diesel::pg::PgConnection; | |
use models::Post; | |
use schema::posts::dsl::*; | |
use db::establish_connection; | |
pub struct PostStore { | |
connection: PgConnection | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 */ |