Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Kenworthy steveyken

  • Crossroads Foundation Ltd
View GitHub Profile
@steveyken
steveyken / coding-challenge.md
Created Aug 12, 2020
GoodCity Coding Challenge
View coding-challenge.md

GoodCity Coding Challenge

Mini-project: A photo viewer app

Given the following api: https://jsonplaceholder.typicode.com, write a React application allowing us to view users and their photo albums.

The app should allow us to :

  • List the users
  • Select a user, of which we can
@steveyken
steveyken / fa3to4.sed
Last active Aug 29, 2015
Convert FontAwesome 3 to 4
View fa3to4.sed
s,icon-fixed-width,fa-fw,g
s,icon-facebook-sign,fa-facebook-square,g
s,icon-large,fa-lg,g
s,icons-ul,fa-ul,g
s,icon-li,fa-li,g
s,icon-spin,fa-spin,g
s,icon-ban-circle,fa-ban,g
s,icon-bar-chart,fa-bar-chart-o,g
s,icon-beaker,fa-flask,g
s,icon-bell,fa-bell-o,g
@steveyken
steveyken / bash_aliases.sh
Created Aug 13, 2015
Bash project install functions
View bash_aliases.sh
npm_install() {
if [ -e package.json ]; then npm install; fi
}
bower_install() {
if [ -e bower.json ]; then bower install; fi
}
bundle_install() {
if [ -e Gemfile ]; then bundle install; fi
}
View jsbin.pewoqu.css
/* Put your CSS here */
html, body {
margin: 20px;
}
View messages_side_loaded
messages: [
{
id: 2,
body: "Et excepturi doloremque fugit ipsa repellat. Esse cupiditate magni laudantium ratione ea cum. Blanditiis maiores facilis cupiditate eum nostrum impedit aliquam corporis.",
recipient_type: "Offer",
recipient_id: 1,
sender_id: 1,
private: false,
created_at: "2014-06-28T08:55:17.615Z",
updated_at: "2014-06-28T08:55:17.655Z"
View packages_nested_inside_items
{
items: [
{
id: 1,
donor_description: "Fugit modi et cum expedita delectus.",
donor_condition: "Used",
state: "draft",
offer_id: 1,
packages: [
{
@steveyken
steveyken / javascript_resources.md
Created Mar 19, 2014 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.
View javascript_resources.md

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage