I hereby claim:
- I am phillyqueso on github.
- I am phillyqueso (https://keybase.io/phillyqueso) on keybase.
- I have a public key ASBPgNc2fFXXZhDOKvKjJ43JZpRWTWzM2LO6F0PcfZAd0go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am phillyqueso on github. | |
* I am phillyqueso (https://keybase.io/phillyqueso) on keybase. | |
* I have a public key ASBPgNc2fFXXZhDOKvKjJ43JZpRWTWzM2LO6F0PcfZAd0go | |
To claim this, I am signing this object: |
//parent | |
var person = function(name) { | |
this.name = name; | |
} | |
person.prototype.walk = function() { | |
console.log(this.name + " walks normally..."); | |
} | |
//init pimp |
<html> | |
<head> | |
<link href="http://vjs.zencdn.net/4.2/video-js.css" rel="stylesheet"> | |
<script src="http://vjs.zencdn.net/4.2/video.js"></script> | |
</head> | |
<body> | |
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="264"></video> | |
<script> | |
videojs("example_video_1",{ | |
sources: [{"type":"video/ogg","src":"https://dx7dyeew7nw29.cloudfront.net/classes-9/intro/720-5000.ogg?Signature=db019CPyxweKHUkcbPwPmHXdYw7s7nemp4Lhx1np4I3hmBYOIIweErBXfW83VTKeLC~WX2~nHgJuzhg5UU8tS267o~5a7l1MeLfacVtg1-vr1jBDn-MjMPhknyuugrs2tdcuaFQyVti5UtUFsbEyzDtncFs9Ez-lGUD8Bb3fGtnA2fnyoAUbrjWIBelkR0A5TwXTaZ2TUQxPrdgYsxvNA5pYFACaFBJjT4Qh6xE8jmxZ5Pm5mBmS1Ml6PfLVFifdUw8EqzNUiWdbl1qX-nWSG3Hqg1~D551kahzS5yVnUjCvOaCcpYVZbgiHDGCfbx6re~AVuxhinhvQzIxpsw6BPw__&Key-Pair-Id=APKAI4O6HHXV5I54EY3A&Expires=1378859387"},{"type":"video/mp4","src":"https://dx7dyeew7nw29.cloudfront.net/classes-9/intro/720-5000.mp4?Signature=db019CPyxweKHUkcbPwPmHXdYw7s7nemp4Lhx1np4I3hmBYOIIweErBXfW83VTKeLC~WX2~nHgJu |
<html> | |
<head> | |
<link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet"> | |
<script src="http://vjs.zencdn.net/4.1/video.js"></script> | |
<script type="javascript"> | |
videojs("example_video_1").ready(function(){ | |
this.src({type: 'video/mp4', src: 'https://dx7dyeew7nw29.cloudfront.net/classes-9/intro/720-5000.mp4?Signature=mONW7Qk4yJKeq90QI848h795YO38nSCKmsTsdRJprPTEAeppwGA4MtMuyNRjagpIkaKEKyi8seYsqqb2NVBDwdHuRDu6J8Vz2pLtKDGSZDnHymmB~wsMwp-kiYr6wmmoVDL1KG83GuxITxdtWHFMeBl9KjHJ~0APqCrABgTqcUO6UEQbY0kAkSb1j0ozBWE5Gu199qf6sSN0Dob~GOGUo6VP~QEtNzMzRYDcYCgZQMMCHhZK3Lb2NJcL8esYNOLAeUhDwd5-IO4dUfC08HejkZKbDhAH9Nrf8S1sQMqp65T3pDfDYYKpiFH~pBS0~Fjw6MJl6m5565DFxXn7HTRpSA__&Key-Pair-Id=APKAI4O6HHXV5I54EY3A&Expires=1378856723'}); | |
</script> | |
</head> | |
<body> |
template(name="navbar") | |
.navbar.navbar-inverse.navbar-fixed-top | |
.navbar-inner | |
.container | |
{{#constant}} | |
a.brand(href='http://www.tastemade.com/') | |
img(src='/img/logo_header_01.png') | |
{{/constant}} | |
{{>navSearch}} | |
{{#if currentUser}} |
Accounts.onCreateUser (options, user) -> | |
doc = Documents.findOne key: "/#{user.username}" | |
throw new Meteor.Error(403, "Username is already taken") if doc | |
if user.services | |
if user.services.facebook | |
user.username = user.services.facebook.email.split("@")[0] | |
if user.services.twitter | |
user.username = user.services.twitter.screenName |
Meteor.methods({ | |
chargeDoc: (key, stripeToken) -> | |
if Meteor.user()?.profile | |
curUser = Meteor.user().profile | |
doc = Documents.findOne({key: key}) | |
if !doc.price | |
return "can't buy something without a price" | |
else | |
fut = new Future() | |
Stripe.charges.create |
<?php | |
require_once '../etl/etl_boot.php'; | |
$reduce = <<<EOD | |
function(key, values) { | |
var resKeys = ['firstName', 'lastName', 'email', 'status', 'percentComplete', 'completionDate', 'orgs']; | |
var results = {firstName: null, lastName: null, email: null, status: null, percentComplete: null, completionDate: null, orgs: null}; | |
values.forEach(function(value) { |
<?php | |
$reduce = <<<EOD | |
function(key, values) { | |
var resKeys = ['firstName', 'lastName', 'email', 'status', 'percentComplete', 'completionDate', 'orgs']; | |
var results = {firstName: null, lastName: null, email: null, status: null, percentComplete: null, completionDate: null, orgs: null}; | |
values.forEach(function(value) { | |
resKeys.forEach(function(k) { | |
switch(k) { | |
case 'orgs': |