Skip to content

Instantly share code, notes, and snippets.

View timiscoding's full-sized avatar

Timothy Tsui timiscoding

  • Sydney, Australia
View GitHub Profile
@addyosmani
addyosmani / README.md
Last active July 13, 2024 21:26 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

Explain RESTful architecture.

Stands for REpresentational State Transfer Most APIs use restful architecture for retrieving data from them. They use HTTP requests, and so can have GET, POST, PUT, DELETE requests made to them. Are made when requesting a webpage, as well as in AJAX requests after page load to retrieve informatino from servers Provides structure and consistency when talking to lots of different servers.

Explain the difference between empty? and nil?

Nil is an object class, while Empty is a property of an object that contains nothing within ruby. Empty can only be used to return a boolean, whereas things can be set as nil.

How would I execute some code each element in a collection?
Loop in JS
each loop in Ruby
Convention over configuration:
Also know as coding by convention
decrease the number of decisions a developer has to make
Common in Ruby on Rails
Example - if there is a table called “sales” the database is also called “sales”
@dagjaneiro
dagjaneiro / lvh_ssl.md
Last active August 5, 2021 18:00
lvh.me ssl

Install nginx

$ brew install nginx

Edit nginx.conf

$ vim /usr/local/etc/nginx/nginx.conf
@stevekinney
stevekinney / web-performance.md
Last active June 29, 2024 07:41
Web Performance Workshop

Web Performance

Requirements

Repositories