Skip to content

Instantly share code, notes, and snippets.

View bookercodes's full-sized avatar

Alex Booker bookercodes

View GitHub Profile

Firefox vs. Chromium (on Linux)

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.

Firefox

✅ Advantages

// @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
*/
// 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({
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 () {
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}`
}
"*":
"advanced-open-file":
createDirectories: true
core:
audioBeep: false
autoHideMenuBar: true
disabledPackages: [
"hard-wrap"
"emoji-syntax"
"linter-flow"
#!/usr/bin/env node
require('dotenv').config()
const db = require('sequelize-context')
const axios = require('axios')
db
.connect(
'./db/models/*.js',
process.env.DB_SCHEMA,
touch .hushlogin
brew install antigen
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
# Editor
'atom-text-editor:not([mini])':
'ctrl-i': 'cursor-history:next'
'ctrl-o': 'cursor-history:prev'
# Normal node key-bindings
'atom-text-editor.vim-mode-plus.normal-mode':
'ctrl-j': 'window:focus-pane-below'
'ctrl-k': 'window:focus-pane-above'
'ctrl-h': 'window:focus-pane-on-left'