Skip to content

Instantly share code, notes, and snippets.

View orlaqp's full-sized avatar

Orlando Quero orlaqp

View GitHub Profile
es6-shim.js:206 Uncaught TypeError: Cannot read property 'isNaN' of undefined(anonymous function)
@ es6-shim.js:206(anonymous function)
@ es6-shim.js:22meteorInstall.node_modules.es6-shim.es6-shim.js
@ es6-shim.js:27fileEvaluate @ install.js:141require
@ install.js:75meteorInstall.client.app.js
@ app.ts:1fileEvaluate
@ install.js:141require
@ install.js:75(anonymous function)
@ app.ts:24
promise.js:16 Uncaught TypeError: Cannot read property 'resolve' of undefinedPromiseWrapper.resolve
@ promise.js:16meteorInstall.node_modules.angular2.src.router.route_registry.js
@ route_registry.js:26fileEvaluate @ install.js:141require
@ install.js:75meteorInstall.node_modules.angular2.src.router.router.js
@ router.js:24fileEvaluate @ install.js:141require
@ install.js:75meteorInstall.node_modules.angular2.router.js
@ router.js:10fileEvaluate @ install.js:141require
@ install.js:75meteorInstall.client.app.js
@ app.ts:5fileEvaluate @ install.js:141require
@ install.js:75(anonymous function)
@orlaqp
orlaqp / gist:d36064d57d35bd751ebe611f55f026ae
Last active April 21, 2016 11:43
Minimalist typescript definitions for meteor packages
// meteor/ddp-rate-limiter
declare module "meteor/ddp-rate-limiter" {
export module DDPRateLimiter {
function addRule(options:any, time:number, milliseconds:number):void;
}
}
// meteor/underscore
declare module "meteor/underscore" {
export module _ {
core@master ~ $ ./kubectl get rc --namespace=kube-system
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
kube-dns-v8 etcd gcr.io/google_containers/etcd:2.0.9 k8s-app=kube-dns,version=v8 2
kube2sky gcr.io/google_containers/kube2sky:1.11
skydns gcr.io/google_containers/skydns:2015-03-11-001
healthz gcr.io/google_containers/exechealthz:1.0
core@master ~ $ ./kubectl get svc --namespace=kube-system
NAME LABELS SELECTOR IP(S) PORT(S)
error: Unable to upgrade connection: {
"kind": "Status",
"apiVersion": "v1beta3",
"metadata": {},
"status": "Failure",
"message": "dial tcp 169.254.190.236:10250: no route to host",
"code": 500
}
kubectl get svc nginx -o yaml
apiVersion: v1beta3
kind: Service
metadata:
creationTimestamp: 2015-08-14T20:20:53Z
labels:
run: nginx
name: nginx
SELECT
p.ProductID,
p.ProductName,
p.Size,
p.Color,
sold.Quantity,
inv.Quantity as OnHand,
sold.COGS,
sold.Net,
sold.Tax,
@Then /^One error should be "([^"]*)"$/, (errorMessage, cb) ->
that = @
errors = []
@client
.elements '.ui .list > li', (err, res) ->
_.forEach res.value, (item) ->
that.client
.elementIdText item.ELEMENT, (err, res) ->
errors.push res.value
# generate document with data
generatePreview = (content, data, callback) ->
Meteor.call 'generatePreview', content, data, (error, result) ->
callback && callback(error, result)
waitForPreview = Meteor.wrapAsync(generatePreview, this)
waitForPreview currentTemplate, sampleData, (error, result) ->
# at this point is where I need the original context
debugger
<div class="ui green message">
This location is going to be active until: {{justDate model.activeUntil}}
{{> button caption="Extend" class="mini renew location" icon="money"}}
<form action="" method="POST">
<script
src="https://checkout.stripe.com/v2/checkout.js" class="stripe-button"
data-key="my-test-key-goes-here"
data-amount="2000"
data-name="Demo Site"