Skip to content

Instantly share code, notes, and snippets.

View JimmyLin39's full-sized avatar

Jimmy Lin JimmyLin39

  • PDFTron Systems Inc.
  • Vancouver
View GitHub Profile
@JimmyLin39
JimmyLin39 / quotes.json
Created April 25, 2019 19:03
Quotes for FCC Random Quote Machine
{
"quotes": [
{
"quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"},
{
"quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"},
{
"quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"},
{
/* Sample JavaScript file added with ScriptTag resource.
This sample file is meant to teach best practices.
Your app will load jQuery if it's not defined.
Your app will load jQuery if jQuery is defined but is too old, e.g. < 1.7.
Your app does not change the definition of $ or jQuery outside the app.
Example: if a Shopify theme uses jQuery 1.4.2, both of these statements run in the console will still return '1.4.2'
once the app is installed, even if the app uses jQuery 1.9.1:
jQuery.fn.jquery => "1.4.2"
$.fn.jquery -> "1.4.2"
*/
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
<style>
#sm-similar-products-title{
text-align: center;
margin-bottom: 1rem;
}
.loader {
border: 10px solid #f3f3f3;
border-radius: 50%;
border-top: 10px solid #555;
width: 120px;
/* Sample JavaScript file added with ScriptTag resource.
This sample file is meant to teach best practices.
Your app will load jQuery if it's not defined.
Your app will load jQuery if jQuery is defined but is too old, e.g. < 1.7.
Your app does not change the definition of $ or jQuery outside the app.
Example: if a Shopify theme uses jQuery 1.4.2, both of these statements run in the console will still return '1.4.2'
once the app is installed, even if the app uses jQuery 1.9.1:
jQuery.fn.jquery => "1.4.2"
$.fn.jquery -> "1.4.2"
*/
@JimmyLin39
JimmyLin39 / routes.md
Created November 23, 2017 03:02
Lighthouse Labs midterm project routes

Midterm

Site Header:

  • if a user is logged in, the header shows:
    • the user's username
    • a HOME Link to /resources
    • a profile Link
      • make GET request to /profile
    • a search bar
  • make a GET request to /search
@JimmyLin39
JimmyLin39 / navy_schema.sql
Last active November 21, 2017 03:22
Visualizing the Navy Database
CREATE TABLE IF NOT EXISTS fleets (
id SERIAL PRIMARY KEY NOT NULL,
name VARCHAR(225) NOT NULL
);
CREATE TABLE IF NOT EXISTS ships (
id SERIAL PRIMARY KEY NOT NULL,
fleet_id INTEGER NOT NULL,
name VARCHAR(225) NOT NULL,
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>