Skip to content

Instantly share code, notes, and snippets.

View cjquinn's full-sized avatar

Christy Quinn cjquinn

View GitHub Profile
@cjquinn
cjquinn / create_order.json
Created May 23, 2019 10:50
Shopify create order request data
{
"order": {
"email": "christy+customer@wearelighthouse.com",
"closed_at": null,
"created_at": "2019-05-23T11:07:56+01:00",
"updated_at": "2019-05-23T11:07:56+01:00",
"number": 19,
"note": null,
"token": "149766db6b5506e40bb34a601644a5a1",
"gateway": "shopify_payments",
<?php
/**
* @return void
*/
public function testAfterSaveResetPassword()
{
// token is dirty and is_activated
$user = $this->Users->get(1);
<?= $this->Form->create() ?>
<div class="projects">
<label><em>Search</em> and <em>Select</em> projects</label>
<div class="projects__container">
<div class="search-box">
<input id="search" type="text" placeholder="Start by typing...">
</div>
<div id="unselectedProjects" class="projects__list<?php if (count($projects) === 0) : ?> is--empty<?php endif; ?>">
<div class="empty">No projects to add.</div>
@cjquinn
cjquinn / chrome-filter
Created January 11, 2017 09:54
Google Chrome inspector filter to remove Browsersync requests from inspector
^(?!.*browser-sync).*$
@cjquinn
cjquinn / .bowerrc
Created October 3, 2016 11:19
CakePHP bower config
{
"directory": "webroot/js/vendor"
}
@cjquinn
cjquinn / SvgHelper.php
Last active May 19, 2016 09:16
A singleton SVG helper for displaying SVGs
<?php
class SvgHelper
{
// Singleton instance
private static $instance;
// Folder where SVGs are found
private $_folder;
@cjquinn
cjquinn / RecipesController.php
Created May 17, 2016 09:51
Example CakePHP JSON response from update action.
<?php
namespace App\Controller;
class RecipesController extends AppController
{
public function edit($id)
{
$recipe = $this->Recipes->get($id);
@cjquinn
cjquinn / orientation-correction.scss
Created March 10, 2016 09:57
CSS classes to correct orientation of photos uploaded from phones
.image {
/**
* Orientaton 1 is correct
*/
&.is--orientation-2 {
transform: scaleX(-1);
}
&.is--orientation-3 {
transform: scaleY(-1);
@cjquinn
cjquinn / index.html
Last active August 29, 2015 14:27
Underscore template example
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script type="text/template" class="template" />
@cjquinn
cjquinn / gist:a50c85e17cd89706a940
Created July 14, 2015 10:05
Lighthouse London - Slack sidebar theme
#FAFAFC ,#FCAB79 ,#FC7473 ,#FFFFFF ,#FDBD95 ,#011F42 ,#38CBB8 ,#EB4D5C