Skip to content

Instantly share code, notes, and snippets.

View j-mes's full-sized avatar
🦉

James Loveridge j-mes

🦉
View GitHub Profile
@j-mes
j-mes / SassMeister-input.scss
Created June 17, 2014 17:09
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// When we give an element some ‘attention’.
@mixin attention() {
&:hover,
&:active,
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 / travel-bucket-list
Last active January 21, 2018 10:19
Travel Bucket List
#Australia
Cairns
Melbourne
Sydney
Hobart
#Europe
Backpacking in Italy
#South America

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 / package.json
Created January 7, 2018 09:58
Node Watch/Compile CSS+JS Task Runner
{
"name": "wp-mnml",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"autoprefixer": "*",
"eslint": "*",
"nodemon": "*",
"npm-run-all": "*",
"node-sass": "*",
@j-mes
j-mes / atom-vs-code.md
Created December 21, 2018 11:01
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 😬

Atom

Pros

  • Open Source
  • Uses Electron (HTML/CSS/JS)
  • Costs nothing
@j-mes
j-mes / react-typical-and-hooks.js
Last active February 27, 2019 11:41
React Class vs Hooks for fetching from an API
// Using React Class for fetching from an API
class Test extends React.Component {
constructor(...args) {
super(...args);
this.state = undefined;
}
componentDidMount() {
fetch('/api/endpoint')