Skip to content

Instantly share code, notes, and snippets.

View joebartels's full-sized avatar

Joseph Bartels joebartels

View GitHub Profile
@joebartels
joebartels / gist:97330cdb0d9af99b873f
Last active August 29, 2015 14:03
setting up symbolo on i3 laptop

all system files are located in C:/dantech

##2 ember applications:

  • admin
    • C:/dantech/admin.symbolo/dist
  • client
    • C:/dantech/client.symbolo/dist

##3 servers

@joebartels
joebartels / interview questions
Last active August 29, 2015 14:21
interview questions
1. if you had all the free time in the world what are 2 projects, languages, products, softwares, tech. ideas you'd want to work on?
2.
*write this more succintly*
```javascript
if (!status) {
return false;
} else if (status !== 'off) {
return false;
@joebartels
joebartels / application.controller.js
Last active November 10, 2015 19:04
observing attrs.value
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
foo: 1,
bar: 100,
actions: {
tap: function() {
this.decrementProperty('foo');
}
@joebartels
joebartels / application.controller.js
Last active December 3, 2015 16:04
computed-buffer
import Ember from 'ember';
import { buffer } from 'demo-app/utils/cp-macros';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
email: 'example-1@gmail.com',
emailBuffer: buffer('email'),
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
post: {
foo: 'bar'
}
});
@joebartels
joebartels / remove_dupes.js
Created April 18, 2016 15:47
interview questions
function dedupe(list = []) {
let dedupes = [];
let dupes = [];
let i = list.length;
while (i-- > 0) {
let item = list[i];
// first time
if (dedupes.indexOf(item) === -1) {
dedupes.unshift(item);
{
"presets": ["es2015"],
"plugins": [
"transform-es2015-modules-amd"
]
}
Verifying my Blockstack ID is secured with the address 1Ek3Zj5VbvvJ4uzYH4PJYdyQgC6EJXLsMx https://explorer.blockstack.org/address/1Ek3Zj5VbvvJ4uzYH4PJYdyQgC6EJXLsMx
@joebartels
joebartels / upcoming_invoice_options.txt
Last active March 15, 2018 20:53
upcoming_invoice options
{
customer: "cus_CS9CTGHoyJT4tF",
subscription: "sub_CV31RA7WYDSGHX",
subscription_items: [{:id: "si_CV31DyKJnS0xcs", :deleted: true}, {:quantity: 1, :plan: "ss_standard_email_year_v3"},
subscription_proration_date: 1521172799,
coupon: "",
subscription_prorate: true
}
# setup
customer = Stripe::Customer.create(email: 'bob@bobsburgers2.soy')
customer.sources.create(source: { object: 'card', exp_month: 12, exp_year: 22, number: '4242424242424242', cvc: 123 })
coupon = Stripe::Coupon.create(id: 'THEDUDEABIDES_2', duration: 'forever', percent_off: 25)
plan_month_1 = Stripe::Plan.create(id: 'tmp_monthly_plan_1', name: 'MONTH 1', interval: 'month', amount: 9900, currency: 'usd')
plan_month_2 = Stripe::Plan.create(id: 'tmp_monthly_plan_2', name: 'MONTH 2', interval: 'month', amount: 9900, currency: 'usd')
plan_year = Stripe::Plan.create(id: 'tmp_annual_plan', name: 'YEAR 1', interval: 'year', amount: 999900, currency: 'usd')