Skip to content

Instantly share code, notes, and snippets.

View rob137's full-sized avatar

Rob rob137

  • Oxford, United Kingdom
View GitHub Profile
@rob137
rob137 / gist:dcc044fd9eebfa25fd98fe0c1c35cac9
Created January 11, 2018 09:44
Thinkful Back-end Notes
Connect to the database,
then start the server,
then seed the database with test data,
then make a request to the API,
then inspect the response,
then inspect the state of the database.
function doMyTest() {
let db, server;
Get all
Find the command that retrieves all restaurants.
db.restaurants.find()
Limit and sort
Find the command that makes the first 10 restaurants appear when db.restaurants is alphabetically sorted by the name property.
db.restaurants.
find().
sort({name: 1}).
@rob137
rob137 / Travis CLI Installation error on Ubuntu 16.04 LTS
Last active January 9, 2018 16:13
Travis CLI Installation error on Ubuntu 16.04 LTS
UPDATE
https://github.com/travis-ci/travis-ci/issues/7260
Looks as if Ubuntu 16.04 LTS isn't yet supported.
Following these instructions: https://gist.github.com/jarun/df5d864f0b2600564c9bc13cfaca7497
(xenial)rob137@localhost:~$ sudo apt install ruby ruby-dev
https://glitch.com/edit/#!/joyous-swamp
https://glitch.com/edit/#!/wooden-leather
Lessons and actions from user testing.
1. My Dad.
- Wasn't immediately clear that user could click map to search.
[Task: redraft text on landing page, search bar and help box to make clear to users that click-to-search is and option.]
- User initially searched on a very local level. This reduced the number of visible results.
[Task: redraft text on search barto make clear to users that users should search districts.]
2. My Mum.
- Apple iPad unable to tap 'go!' button.
[Task: test extensively on available tablet and phone devices]
3. My friend Shaf.
@rob137
rob137 / gist:a4c055ea43a12b5627882e612af1a8a7
Last active December 17, 2017 12:22
API-Capstone-Project-User-Flow-&-Wire-Diagrams
User Flow Diagram
https://preview.ibb.co/dvefEm/20171217_130504.jpg
Wire Diagram part 1 and 2
https://preview.ibb.co/fyxp76/20171217_130836.jpg
Wire Diagram part 3 and 4
https://preview.ibb.co/dLB5fR/20171217_130854.jpg
@rob137
rob137 / gist:ff3b73f064688f28275f5654085e0bfe
Last active December 17, 2017 10:29
API Capstone Project Gist
Help users understand where attractions are clustered within cities by combining the Google Maps API (including heatmaps layer), Foursquare API and WikiTravel API.
@rob137
rob137 / gist:051d75d32808fd81756679572dab2432
Last active December 6, 2017 11:52
3.3-Quiz-App-HTML-Mockup
https://repl.it/@robertaxelkirby/33-Quiz-App-starthtml
https://repl.it/@robertaxelkirby/33-Quiz-App-Question-Pagehtml
https://repl.it/@robertaxelkirby/33-Quiz-App-feedback-pagehtml
https://repl.it/@robertaxelkirby/33-Quiz-App-Final-Pagehtml
https://repl.it/@robertaxelkirby/Cat-carousel-jQuery
https://repl.it/@robertaxelkirby/return-of-fizz-buzz
/*
Example lyrics used throughout:
jude = "Hey jude, don't make it bad. Take a sad song and make it better."
jude += " Remember to let her into your heart, Then you can start to make it better."
*/
function getTokens(rawString) {
/*
This function takes the original lyrics and: