Skip to content

Instantly share code, notes, and snippets.

View franyerverjel's full-sized avatar

Franyer Verjel franyerverjel

View GitHub Profile
import ReactSelect from 'react-select'
export const REACT_SELECT_CUSTOM_STYLES = {
control: (provided) => ({
...provided,
fontSize: '0.875rem',
lineHeight: '1.25rem'
}),
valueContainer: (provided) => ({
...provided,
# Node template
# next.js build output
.next
# dotenv environment variables file (build for Zeit Now)
.env
.env.build
# Logs
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["airbnb"],
"globals": {
"document": false,
"escape": false,
@franyerverjel
franyerverjel / json2csv.py
Created September 13, 2017 15:39 — forked from mwarkentin/json2csv.py
Convert a JSON datadump of a Django model into CSV format. Note: This only exports the fields dict, so you won't have pk in the output.
# -*- coding: utf-8 -*-
import codecs
import cStringIO
import csv
import json
import sys
"""
Convert Django json datadump fields into csv.
@franyerverjel
franyerverjel / switch_to_python3.4.sh
Created May 6, 2016 16:44 — forked from tr00st/switch_to_python3.4.sh
Python 3 upgrade script for the Django image on DigitalOcean
#!/bin/bash
#
# Copyright 2015 James Cheese
# You may do anything with this work that copyright law would normally
# restrict, so long as you retain the above notice(s) and this license
# in all redistributed copies and derived works. There is no warranty.
#
# Python 3 Upgrade for Django Droplet
# Will update the "Django on 14.04" Digital Ocean image.
# Run as root.