Skip to content

Instantly share code, notes, and snippets.

@arenoir
arenoir / ally-sign.css
Last active July 28, 2020 19:02
Recreation of the "Kindness is everything" sign.
.ally-sign {
background: linear-gradient(90deg, black 25%, transparent 25%);
background-size: 1em 1em;
background-color: #141414;
color: #fff;
padding: 1em;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FieldPhone</title>
<meta name="viewport" content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, minimal-ui' />
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<!-- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/> -->
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
@arenoir
arenoir / js
Created March 25, 2019 01:59
ember-manager
TypeError: Cannot read property 'manager' of null
1
File https://cdn.fieldphone.com/production/fp-desktop/assets/vendor-b9f738623cfd755e33afe0285b637fa1.js line 1575 col 24 in Object.evaluate
2
File https://cdn.fieldphone.com/production/fp-desktop/assets/vendor-b9f738623cfd755e33afe0285b637fa1.js line 1472 col 13 in e.evaluate
3
File https://cdn.fieldphone.com/production/fp-desktop/assets/vendor-b9f738623cfd755e33afe0285b637fa1.js line 1731 col 83 in e.evaluateSyscall
4
File https://cdn.fieldphone.com/production/fp-desktop/assets/vendor-b9f738623cfd755e33afe0285b637fa1.js line 1723 col 178 in e.evaluateInner
5
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@arenoir
arenoir / controllers.application.js
Last active February 6, 2019 23:50
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: null,
bad: null,
options: [
{ value: 'value1', label: 'label1' },
{ value: 'value2', label: 'label2' },
{ value: 'value3', label: 'label3' },
@arenoir
arenoir / address_adapter.js
Created June 20, 2017 17:22
Address adapter unload existing record on create.
import Ember from 'ember';
import ApplicationAdapter from 'adapters/application';
const {RSVP, run} = Ember;
export default ApplicationAdapter.extend({
//unloads existing record if create record returns a duplcate.
createRecord(store, type, snapshot) {
let saving = this._super(store, type, snapshot);
Assertion Failed: You modified "timeEntry.changeset.date" twice on changeset:<fp-desktop@model:time-entry::ember2105:102582> in a single render. It was rendered in "component:bs-modal/header" and modified in "component:bs-form". This was unreliable and slow in Ember 1.x and is no longer supported. See https://github.com/emberjs/ember.js/issues/13948 for more details.
Error
at assert (http://renoir.fieldphone.dev:8080/assets/vendor.js:21695:13)
at assert (http://renoir.fieldphone.dev:8080/assets/vendor.js:33446:34)
at Object.assertNotRendered (http://renoir.fieldphone.dev:8080/assets/vendor.js:39221:11)
at Object.propertyDidChange (http://renoir.fieldphone.dev:8080/assets/vendor.js:37837:30)
at Class.propertyDidChange (http://renoir.fieldphone.dev:8080/assets/vendor.js:50989:19)
at Class.notifyPropertyChange (http://renoir.fieldphone.dev:8080/assets/vendor.js:51003:12)
at Class._setProperty (http://renoir.fieldphone.dev:8080/assets/vendor.js:97070:16)
at Class._validateAndSet (h
@arenoir
arenoir / controllers.application.js
Last active December 6, 2016 19:26
emberjs-issue-14657
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@arenoir
arenoir / nginx.conf
Created June 28, 2016 13:51
Nginx config used with ember-cli-deploy-ssh2
http {
map $arg_revision $revision_path {
default "active";
~^\w+ "revisions/$arg_revision";
}
server {
listen 443 ssl http2;
location / {
alias /var/www/public/$revision_path/;
@arenoir
arenoir / material-icons.css
Created February 10, 2016 23:28
Use base64 font to use material icons with wkhtmltopdf
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url('data:font/truetype;charset=utf-8;base64,AAEAAAAPAIAAAwBwR0RFRgQAAFMAAYsIAAAAJEdQT1PgGO+cAAGLLAAAADZHU1VC5NKpUQABi2QAAGlQT1MvMgpzImMAAAF4AAAAYGNtYXDx8DHgAAAJeAAABgJjdnQgABEBRAAAD3wAAAAEZ2FzcP//AAMAAYsAAAAACGdseWZEfewEAAAXHAABckhoZWFkBtqLZgAAAPwAAAA2aGhlYQQBAgQAAAE0AAAAJGhtdHhq5mlGAAAB2AAAB6Bsb2NhOymWhQAAD4AAAAecbWF4cAQnAOEAAAFYAAAAIG5hbWUcDzXkAAGJZAAAAXpwb3N0/4YAMgABiuAAAAAgAAEAAAABAtBPvyKIXw889QAJAgAAAAAA0t6jygAAAADS3qPNAAD//gIAAgQAAAAIAAIAAAAAAAAAAQAAAgAAAAAAAgAAAAAAAgAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAA80AsAAYAAAAAAACAAAAAQABAAAAQAAuAAAAAAAEAgABkAAFAAABTAFmAAAARwFMAWYAAAD1ABkAhAAAAgAFAwAAAAAAAAAAAAESAAAABAAAAAAAAAAAAAAAAIAAMP//AgAAAAAAAgAAAAAAAAEAAAAAAAAAAAAAACAAKwIAABEAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwAVAEAAKwBAAEAAVQBAAFUANQArAEAAQABVAGsAawBAACsAKwArACsAFQArAIAAKwArAKsAKwArACsAKwBAACsAFQBAAEAAVQBVAIAAgAArAIAAKwArACsAQAArAGsAlQBAAEAA