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
all system files are located in C:/dantech
##2 ember applications:
##3 servers
| 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; |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| foo: 1, | |
| bar: 100, | |
| actions: { | |
| tap: function() { | |
| this.decrementProperty('foo'); | |
| } |
| import Ember from 'ember'; | |
| import { buffer } from 'demo-app/utils/cp-macros'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| email: '[email protected]', | |
| emailBuffer: buffer('email'), | |
| { | |
| "presets": ["es2015"], | |
| "plugins": [ | |
| "transform-es2015-modules-amd" | |
| ] | |
| } |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| post: { | |
| foo: 'bar' | |
| } | |
| }); |
| 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); |
| Verifying my Blockstack ID is secured with the address 1Ek3Zj5VbvvJ4uzYH4PJYdyQgC6EJXLsMx https://explorer.blockstack.org/address/1Ek3Zj5VbvvJ4uzYH4PJYdyQgC6EJXLsMx |
| { | |
| 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: '[email protected]') | |
| 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') |