Skip to content

Instantly share code, notes, and snippets.

View lcfd's full-sized avatar
🦙

Luca Fedrizzi lcfd

🦙
View GitHub Profile
@lcfd
lcfd / vscode-styles.css
Created May 22, 2017 08:14
vscode-styles for operator mono, fira code ligatures, and oceanic next italic
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'Operator Mono Book';
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.token.keyword.operator {
font-family: 'Fira Code'
@lcfd
lcfd / ReduxMicroBoilerplate.js
Created December 2, 2016 13:31 — forked from gaearon/ReduxMicroBoilerplate.js
Super minimal React + Redux app
import React, { Component } from 'react';
import { createStore, combineReducers, applyMiddleware, bindActionCreators } from 'redux';
import { provide, connect } from 'react-redux';
import thunk from 'redux-thunk';
const AVAILABLE_SUBREDDITS = ['apple', 'pics'];
// ------------
// reducers
// ------------
@lcfd
lcfd / .babelrc
Last active November 15, 2016 10:02 — forked from albertfdp/webpack.config.js
All kinds of webpack configs. [ normal, react + .babelrc ]
{
"presets": ["react", "es2015", "stage-0"]
}
@lcfd
lcfd / flux.js
Created September 21, 2016 06:54 — forked from acdlite/flux.js
A Redux-like Flux implementation in <75 lines of code
/**
* Basic proof of concept.
* - Hot reloadable
* - Stateless stores
* - Stores and action creators interoperable with Redux.
*/
import React, { Component } from 'react';
export default function dispatch(store, atom, action) {
@lcfd
lcfd / Python3 Virtualenv Setup
Created July 20, 2016 06:49 — forked from evansneath/Python3 Virtualenv Setup
Setting up and using Python3 Virtualenv
To install virtualenv via pip
$ pip3 install virtualenv
Note that virtualenv installs to the python3 directory. For me it's:
$ /usr/local/share/python3/virtualenv
Create a virtualenvs directory to store all virtual environments
$ mkdir somewhere/virtualenvs
Make a new virtual environment with no packages
@lcfd
lcfd / gist:da2e108faf9022cb56be4c157e042e67
Created April 27, 2016 13:41 — forked from neilcarpenter/gist:8979ea9ed91b10e36af9
Enable Emmet in .JSX files, using Babel JSX Syntax highlighter
// add to Preferences > Key Bindings - User
// see http://stackoverflow.com/a/26619524 for context
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab",
"context": [
{
"operand": "source.js",
"operator": "equal",
"match_all": true,
"key": "selector"