Skip to content

Instantly share code, notes, and snippets.

Avatar
🦉

James Loveridge j-mes

🦉
View GitHub Profile
@j-mes
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) {
super(...args);
this.state = undefined;
}
componentDidMount() {
fetch('/api/endpoint')
@j-mes
j-mes / atom-vs-code.md
Created Dec 21, 2018
Atom against VS Code
View atom-vs-code.md

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 😬

Atom

Pros

  • Open Source
  • Uses Electron (HTML/CSS/JS)
  • Costs nothing
@j-mes
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": "*",
View keybase.md

Keybase proof

I hereby claim:

  • I am j-mes on github.
  • I am j_mes (https://keybase.io/j_mes) on keybase.
  • I have a public key ASARdtCOYkTJdegUPziLbrAyH8De0-KBK3_VTER3RW89Pgo

To claim this, I am signing this object:

@j-mes
j-mes / travel-bucket-list
Last active Jan 21, 2018
Travel Bucket List
View travel-bucket-list
#Australia
Cairns
Melbourne
Sydney
Hobart
#Europe
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
j-mes / SassMeister-input.scss
Created Jun 17, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// When we give an element some ‘attention’.
@mixin attention() {
&:hover,
&:active,
You can’t perform that action at this time.