This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# Installation Instructions: | |
# -------------------------- | |
# Prerequisites: | |
# 1. Ensure you have Homebrew installed. If not, install it with: | |
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# | |
# 2. Install the following image optimization tools and dependencies using Homebrew: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# Notes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
options: ['oranges', 'apples', 'pears'] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Store } from 'ember-orbit'; | |
export default class DataStore extends Store { | |
findRecords(type, { filter, sort, page, include, ...options } = {}) { | |
include && put(options, 'sources.remote.include', include); | |
return this.query((q) => { | |
let result = q.findRecords(type); | |
page && (result = result.page(page)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sort from 'fast-sort'; | |
import { JSONAPISerializer } from 'ember-cli-mirage'; | |
const stringToBoolean = (str) => | |
({ 'true': true, 'false': false }[str?.trim().toLowerCase()] || str); | |
export default class Application extends JSONAPISerializer { | |
// Can filter by any value on attributes | |
// Or an ID on a relationship that MUST be in the `includes` | |
filterResourceHash(resourceHash) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function(environment) { | |
let ENV = { | |
modulePrefix: 'zero-cost-web-app', | |
environment, | |
rootURL: '/', | |
locationType: 'auto', | |
EmberENV: { | |
FEATURES: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const def = { | |
'id': '11223344', | |
'label': 'D Form', | |
'description': 'Forms so good ... Makes you wanna slap yo mama', | |
'hooks': [{ | |
'type': 'http', | |
'run': 'click', | |
'pollTime': 5000, | |
'encrypted': true, | |
'element': 'form', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"value": "500px" | |
}, | |
{ | |
"value": "address-book" | |
}, | |
{ | |
"value": "address-book-o" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "11223344", | |
"label": "D Form", | |
"description": "Forms so good ... Makes you wanna slap yo mama", | |
"hooks": [{ | |
"type": "http", | |
"run": "click", | |
"pollTime": 5000, | |
"encrypted": true, | |
"element": "form", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"label": "Subform Top", | |
"sections": [ | |
{ | |
"label": "Subform Top", | |
"fields": [ | |
{ | |
"id": "121", | |
"type": "text", | |
"required": true, |
NewerOlder