Skip to content

Instantly share code, notes, and snippets.

View scottbaggett's full-sized avatar
:electron:

Scott scottbaggett

:electron:
View GitHub Profile
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /content/uploads/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^dev\.coveteur\.com$
RewriteRule ^(.+)$ http://coveteur.com/wp-content/uploads/$1 [L,R=301,NE]
</IfModule>
I have been thinking about the best way to handle all of these preloading and laying out these category image parts. The issue is making something that can be group together into a single image so that we don’t have to preload a ton of images up front, which will cripple the site load. In order to do this in a way that will be CPU friendly, we need to put all of these category parts together into a 2048x2048 grid.
This technique comes with a few small constraints:
1. The width and height of the final image is 512x512
2. The limit is 16 pieces.
Please use this attached PSD as reference for how I need these to be set up.
https://cl.ly/440s1P3a0G0d
{
"title": "Foo Article Title",
"author": "Will Prater",
"publishedOn": "11/24/2016",
"categories": [
"foo",
"bar"
],
"excerpt": "Crucifix fap tofu four loko man braid. Woke nostrud occupy reprehenderit pitchfork tousled.",
"modules": [
@scottbaggett
scottbaggett / .env
Last active December 13, 2016 01:55
APP_ENV=local
APP_KEY=base64:ILhAw1MXiBkK9+0/6NilpY9Wdq0R9u9KP7XY2kqZ3es=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=lexus_dev
@scottbaggett
scottbaggett / gist:2279d5325ae0eacfad1860744fc04c7e
Last active December 15, 2016 04:27
Installation and Development Instructions for Lexus International

Lexus International

Requirements

  • PHP 5.6
  • MySQL 5.6
  • Node 6
  • Ruby 2.3
  • Composer

Development Tool Install

import EventEmitter from "event-emitter-es6"
class CategoryImage extends EventEmitter {
constructor(properties) {
super()
this.initVelocities()
this.hasBuilt = false
// console.info(properties)

Keybase proof

I hereby claim:

  • I am scottbaggett on github.
  • I am scottbaggett (https://keybase.io/scottbaggett) on keybase.
  • I have a public key ASDWiSpf8Y9MAkegPSM5MDJ6mQHUEkLOsp5NIFjyaJ3f-go

To claim this, I am signing this object:

Restaurant Menu Content Structure

This applies to all entity types that have menus: restaurants, nightlife, spa/salon.

Elements

A restaurant with menus has at least one menu category that contains at least one menu.

Menus have at least one section.

@scottbaggett
scottbaggett / product-designer.md
Created August 9, 2018 16:27
Product Designer

As Product Designer you will be empowered to:

  • Help define and shape the design and creative culture at Superformula
  • Deliver everything from very simple to highly complex features across web, email, mobile, and emerging platforms – from idea, to launch, and beyond
  • Partner with engineering very closely to ensure design concepts are both feasible at the start, and properly implemented at the end
  • Create meticulously organized and documented design systems by researching and applying cutting-edge digital product workflow and best-practices
  • Travel for in-person client meetings up to 2-3 times per month. (Usually Las Vegas)
  • Read and internalize Apple’s Human Interface Guidelines (https://developer.apple.com/design/human-interface-guidelines) and Android’s Material Design Guidelines (https://material.io/design/) so that you can thoughtfully contribute to our mobile products by knowing how and why some rules are meant to be broken
  • Create high-fidelity clickable prototypes using tools like Invision, Mar
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
// Colors
const black = const Color(0xFF000000);
const indigo = const Color(0xFF4957F4);
const brand = const Color(0xFF996D17);
const divider = const Color(0xFFCFCFCF);
const grey = const Color(0xFF7F7F7F);
const darkGrey = const Color(0xFF606060);