Skip to content

Instantly share code, notes, and snippets.


James Loveridge j-mes

View GitHub Profile
j-mes / react-typical-and-hooks.js
Last active Feb 27, 2019
React Class vs Hooks for fetching from an API
View react-typical-and-hooks.js
// Using React Class for fetching from an API
class Test extends React.Component {
constructor(...args) {
this.state = undefined;
componentDidMount() {
j-mes /
Created Dec 21, 2018
Atom against VS Code

Atom against VS Code

This is an opinionated gist, so please do not take this as sacrosanct. I started using Atom in March 2014 to April 2016. From April 2016 to present it's VS Code. Before Atom, I was using Sublime, and this was for a long time with a cracked version 😬



  • Open Source
  • Uses Electron (HTML/CSS/JS)
  • Costs nothing
j-mes / package.json
Created Jan 7, 2018
Node Watch/Compile CSS+JS Task Runner
View package.json
"name": "wp-mnml",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"autoprefixer": "*",
"eslint": "*",
"nodemon": "*",
"npm-run-all": "*",
"node-sass": "*",

Keybase proof

I hereby claim:

  • I am j-mes on github.
  • I am j_mes ( on keybase.
  • I have a public key ASARdtCOYkTJdegUPziLbrAyH8De0-KBK3_VTER3RW89Pgo

To claim this, I am signing this object:

j-mes / travel-bucket-list
Last active Jan 21, 2018
Travel Bucket List
View travel-bucket-list
Backpacking in Italy
#South America
View Top 25 films
In no preferred order yet...!
Star Wars: The Empire Strikes Back
Forrest Gump
Seven Samurai
Indiana Jones: Raiders of the Lost Ark
Saving Private Ryan
The Untouchables
The Godfather
j-mes / SassMeister-input.scss
Created Jun 17, 2014
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// When we give an element some ‘attention’.
@mixin attention() {
You can’t perform that action at this time.