Skip to content

Instantly share code, notes, and snippets.

View dearshrewdwit's full-sized avatar
🤖
17 is my number.

Edward Withers dearshrewdwit

🤖
17 is my number.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dearshrewdwit on github.
  • I am dearshrewdwit (https://keybase.io/dearshrewdwit) on keybase.
  • I have a public key whose fingerprint is 15B3 31CB E5FE 97AA BA2B 0159 0C3F AF19 ABC7 4B5A

To claim this, I am signing this object:

@dearshrewdwit
dearshrewdwit / example_order.json
Created March 6, 2017 13:54
shipped order with tracking
{
"id": 1,
"number": "R338305477",
"state": "cart",
"item_count": 0,
"item_total": "£0.00",
"total": "£50.00",
"payment_total": "£0.00",
"adjustment_total": "£0.00",
"shipment_total": "£0.00",
@dearshrewdwit
dearshrewdwit / example_brand_search.json
Created March 6, 2017 16:27
json for discounts and gender from search
{
"products": {
"meta": {
"num_records": 48,
"total_records": 482,
"page": 1,
"per_page": 48,
"total_pages": 11,
"keywords": null,
"sort": [
@dearshrewdwit
dearshrewdwit / example_index_all.json
Created March 7, 2017 11:59
returned json from app/controllers/spree/api/users/accounts/orders_controller#index_all
{
"orders": {
"orders": {
"meta": {
"num_records": 1,
"total_records": 1,
"page": 1,
"per_page": 15,
"total_pages": 1
},
@dearshrewdwit
dearshrewdwit / example_user_account_show_with_subscriber.json
Last active March 7, 2017 19:17
json return from app/controllers/spree/api/users/accounts_controller#show
{
"id": 1,
"full_name": "First Last",
"email": "[email protected]",
"orders": {
"meta": {
"total_records": 1
},
"data": [
{
@dearshrewdwit
dearshrewdwit / august2017_day1.md
Last active August 28, 2017 17:27
august2017_day1

Your first day at Makers Academy

If you have any questions, just ask!

Schedule for the first day

  • 08:30 - 09:30 Breakfast
  • 09:30 - 10:30 Learning at Makers (Coach)
  • 10:30 - 11:00 Name tag making (Coach, staff, all students)
  • 11:00 - 12:00 Laptop Setup (Coach)
require 'quiz'
require 'question'
require './lib/question'
class Quiz
attr_reader :question, :question_class
def initialize(question, question_class = Question)
@dearshrewdwit
dearshrewdwit / counter
Created November 14, 2017 09:01
pablo_request
"This is not a review of my own code, but a question about a code seen in a workshop : I would like to understand it.
Here is what I understand :
we have a button and a div : (index.erb)
<button id=""increment"">Increment</button>
<div id=""count""></div>
@dearshrewdwit
dearshrewdwit / december_2017_day_one.md
Last active January 2, 2018 14:48
december 2017 day 1 schedule

Your first day at Makers Academy

If you have any questions, just ask!

Schedule for the first day

Morning

  • 08:30 - 09:30 Breakfast
  • 09:30 - 10:30 Welcome to Makers (Coach)
  • 10:30 - 11:00 Names! Get to know each other (Coach, everyone)

The Echo App spec

An app that repeats what you say until you exit it!

(As the customer, you'll have this in your head and the dev will hopefully discover it by asking questions.)

  • The app runs on the command line.

  • It's fine to use Ruby or JavaScript.