- Test
This file contains hidden or 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
"*": | |
"advanced-open-file": | |
createDirectories: true | |
core: | |
audioBeep: false | |
autoHideMenuBar: true | |
disabledPackages: [ | |
"hard-wrap" | |
"emoji-syntax" | |
"linter-flow" |
This file contains hidden or 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
const getRandomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min | |
const getRandomPastelColor = () => { | |
const redHex = (getRandomInt(0, 128) + 127).toString(16) | |
const greenHex = (getRandomInt(0, 128) + 127).toString(16) | |
const blueHex = (getRandomInt(0, 128) + 127).toString(16) | |
return `#${redHex}${greenHex}${blueHex}` | |
} |
This file contains hidden or 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 { StyleSheet, css } from 'aphrodite' | |
import Icon from './Icon' | |
import {accentColor, white} from '../styles/variables' | |
const atLeastMedium = '@media only screen and (min-width : 350px)' | |
const atLeastLarge = '@media only screen and (min-width : 1050px)' | |
function FooterNav () { |
This file contains hidden or 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
// In an attempt to reproduce http://stackoverflow.com/questions/37432676/node-js-sequelize-orm-date-issue... | |
const Sequelize = require('sequelize') | |
const connection = new Sequelize('so_schema', 'root', '') | |
const customer = connection.define('customer', { | |
dob: Sequelize.DATE | |
}) | |
connection.sync({ |
This file contains hidden or 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
// @flow | |
import db from 'sequelize-connect' | |
/** | |
* Creates and returns a Sequelize screencast model. (This function is to be | |
* called internally by the sequelize-connect module.) | |
* | |
* @param sequelize - A Sequelize connection | |
* @param DataTypes - A quasi enumeration of SQL data types | |
*/ |
Every few months I impulsively switch between Firefox and Chromium on (Arch) Linux. Whilst both browsers have their limitations, at this moment in time, I ultimately prefer Chromium.
I think I'm prone to forget what I like and dislike about each browser so I'm writing this little list for my future reference. Maybe you'll find it useful, too.
I was just hacking away on a side project when I wrote this code:
const screencastMock = {
findOne: () => { }
};
This file contains hidden or 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
NeoBundleLazy 'mxw/vim-jsx', {'on_ft': 'javascript'} | |
NeoBundleLazy 'othree/yajs.vim', {'on_ft': 'javascript'} | |
NeoBundleLazy 'othree/es.next.syntax.vim', {'on_ft': 'javascript'} | |
NeoBundleLazy 'gavocanov/vim-js-indent', {'on_ft': 'javascript'} |
This file contains hidden or 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
// npm i moment youtube-api youtube-url | |
import {extractId} from 'youtube-url' | |
import youtubeApiClient from 'youtube-api' | |
import moment from 'moment' | |
export default class YouTube { | |
constructor(youtubeApiKey: string) { | |
youtubeApiClient.authenticate({ | |
type: 'key', |