Skip to content

Instantly share code, notes, and snippets.

View jakeleboeuf's full-sized avatar
🥃

Jake LeBoeuf jakeleboeuf

🥃
View GitHub Profile

meditech-spine

The full web build for Meditech Spine

<section class="body">
<div class="item flex">
<div class="flex-item">
<div class="image-container">
</div>
</div>
<div class="content-container flex-item">
<div class="flex vertical">
@jakeleboeuf
jakeleboeuf / cart.json.liquid
Last active October 6, 2015 17:32
Add customer info to cart object
{% layout none %}
{% assign data = cart | json %}
{% assign customer_name = customer.first_name | json %}
{% comment %}
// Or is there a merge filter in liquify??
{% assign mergeData = data | merge({'customer_name': customer_name}) %}
{{ mergeData }}
{% endcomment %}
@jakeleboeuf
jakeleboeuf / .gitignore
Last active November 11, 2015 17:25
WP Engine gitignore
# Forked from http://bigwilliam.com/gitignore-for-wordpress-projects/
# Ignore OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
*[Tt]humbs.db
*.Trashes
@jakeleboeuf
jakeleboeuf / gist:b7b414e00b756447ac9e
Last active January 4, 2016 18:48
Wartermarks Lab REST API call
watermarkslab.create({
firstName: 'Jake',
lastName: 'LeBoeuf',
email: 'bob@example.com',
address: '123 Howle ave',
city: 'Charleson',
state: 'SC',
zip: '12345',
cust_id: '124j9jlkj12l4kj1lkjf',
websiteauth: 'iirowjfijweijwoefkjlsdkjf',
@jakeleboeuf
jakeleboeuf / lineItems.json
Last active April 15, 2016 19:15
Data example
lineItems: [
{
"id": "a3C540000007ix8EAA",
"product": "01tE0000004bmwPIAQ"
},
{
"id": "a3C540000007ixDEAQ",
"product": "01tE0000004bmwPIAQ"
},
{
import Ember from 'ember';
export default Ember.Component.extend({
});
@jakeleboeuf
jakeleboeuf / component-name.js
Created August 26, 2016 17:10
Best Practices?
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
moveYourBody(anim) {
let hand;
let initX,initY,handX,handY;
function handMove(ev){
let currentX = ev.clientX;
@jakeleboeuf
jakeleboeuf / Exersize-3.1.js
Created August 31, 2016 15:57
Groking Algorithyms
// Recursive Sum fn()
let arr = [1,2,3];
let sum = (_arr) => {
if (_arr.length === 1) {
return _arr[0];
} else {
return _arr.shift() + sum(_arr);
}
};
console.log(sum(arr));
import Ember from 'ember';
export default Ember.Component.extend({
fillGradient: null,
strokeGradient: null,
didInsertElement() {
/*** Create Gradients ***/
const ctx = this.$().find('canvas')[0].getContext('2d');