Skip to content

Instantly share code, notes, and snippets.

View benoror's full-sized avatar
🌀
In a quantum state between coding and procrastinating

Ben Orozco benoror

🌀
In a quantum state between coding and procrastinating
View GitHub Profile
@benoror
benoror / keybase.md
Created April 21, 2016 05:54
keybase.md

Keybase proof

I hereby claim:

  • I am benoror on github.
  • I am benoror (https://keybase.io/benoror) on keybase.
  • I have a public key whose fingerprint is 099E C5B1 CC72 1D45 89BF AB46 CCF1 0E48 07D4 6DA6

To claim this, I am signing this object:

@benoror
benoror / adapters.application.js
Created April 12, 2016 23:16 — forked from Serabe/adapters.application.js
Country/States Cascaded
import DS from 'ember-data';
const ActiveModelAdapter = DS.ActiveModelAdapter;
const ApplicationAdapter = ActiveModelAdapter.extend({
shouldReloadAll: function(store, snapshotRecordArray) {
return true;
},
shouldBackgroundReloadRecord: function(store, snapshot) {
return false;
@benoror
benoror / adapters.application.js
Last active April 12, 2016 22:19 — forked from Gaurav0/application.route.js
Country/States Cascaded
import DS from 'ember-data';
const ActiveModelAdapter = DS.ActiveModelAdapter;
const ApplicationAdapter = ActiveModelAdapter.extend({
shouldReloadAll: function(store, snapshotRecordArray) {
return true;
},
shouldBackgroundReloadRecord: function(store, snapshot) {
return false;
@benoror
benoror / template.hbs
Created April 10, 2016 03:27
app/pods/components/chart-base/template.hbs
{{c3-chart
data=data
axis=axis
regions=regions
bar=bar
pie=pie
donut=donut
gauge=gauge
grid=grid
legend=legend
@benoror
benoror / component.js
Last active April 10, 2016 03:34
app/pods/components/chart-base/component.js
import Ember from 'ember';
export default Ember.Component.extend({
/*
Here we set any settings that need to be applied
to every chart based on this component
avoiding code duplication
and making stuff look nicer :)
*/
@benoror
benoror / pgp.pub
Created February 8, 2016 19:34
PGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFMgUU0BEAC50m+8R2DVAG6hP9FurOBez+6ebhFWwzLqU5cTmS1jiNJvcQlf
keEhyYvqpncrcxAy+NCa/x1pLBWgOkJ0yEC85CNgLJOvmYj2zBE+y3ZWz9or72bB
KyrhnVkY7L3VE7fX0yhrKTsVrbRal/IRm8T8H2RXAxKnacybqEFksEBkS/lezu6S
EUVrLVJPPkjUWJypIi+4J9/iDtJ2nkblndlfQTxHgOR1xdpDpPIqRLBX0g+ppm2K
jH+LCovln9zKXUaxxLnFZs43XHbiRijsISxHjIVMkY/6c38khX4kFehSJ3LwmTo2
J5g/GvYhP+IaD5dvQGTuvVOP3El1M0nLGLxNo0tYqgwx7gsWdXLxdxWeJio1Z7Up
sjWxalaX8sEMYiK+JOlzSM5rDWfrvugviRYQyTFj8XrRyVj6EdqJ5v16ofQRw+0+
@benoror
benoror / route_products.js
Last active February 5, 2016 01:24
Snippets for post Raw
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return this.store.query('products', {
limit: 10
});
}
});
@benoror
benoror / serializer_application.js
Created February 5, 2016 01:17
Snippets for post
import DS from 'ember-data';
export default DS.JSONSerializer.extend({
/*
Normalize JSON response
to match JSON API guidelines
Info: http://jsonapi.org/
*/
normalizeResponse(store, type, payload) {
let new_payload = {data: []};
@benoror
benoror / adapter_application.js
Last active February 6, 2016 01:08
Snippets for post
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
/*
Override with Fieldbook API specific stuff
*/
host: 'https://api.fieldbook.com',
namespace: 'v1/56ad5a1a0dc76e03001d7ac3',
headers: {
'Accept': 'application/json',
@benoror
benoror / products_model.js
Last active February 5, 2016 01:25
Snippets for post: Raw
import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr('string')
});