Skip to content

Instantly share code, notes, and snippets.

View tzmanics's full-sized avatar
:octocat:
👩🏻‍💻🤱🏻🐺

Tara Z. Manicsic tzmanics

:octocat:
👩🏻‍💻🤱🏻🐺
View GitHub Profile
11:39:11 PM: Build ready to start
11:39:17 PM: build-image version: fa439ad1ab9393b2c0d449d8d7c033927683f4b0
11:39:17 PM: build-image tag: v4.3.0
11:39:17 PM: buildbot version: fd60e21d56897195475b3dbb3e1c495894eb873c
11:39:17 PM: Fetching cached dependencies
11:39:17 PM: Failed to fetch cache, continuing with build
11:39:17 PM: Starting to prepare the repo for build
11:39:17 PM: No cached dependencies found. Cloning fresh repo
11:39:17 PM: git clone https://github.com/tzmanics/sandbox-ng-uni-plugin-demo
11:39:18 PM: Preparing Git Reference refs/heads/main
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
exports.handler = async (event) => {
const product = JSON.parse(event.body);
const lineItems = [
{
name: product.name,
currency: 'USD',
description: product.description,
images: [product.image],
import { Component, OnInit, Input } from '@angular/core';
import { Product } from 'src/app/models/Product';
import { HttpClient } from '@angular/common/http';
import { loadStripe } from '@stripe/stripe-js';
@Component({
selector: 'app-product-list',
templateUrl: './product-list.component.html',
styleUrls: ['./product-list.component.css'],
})
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="generator" content="Scully 0.0.83" />
<meta charset="utf-8" />
<title>Jamgular</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link
@tzmanics
tzmanics / philip-hue-lights
Created June 7, 2017 14:20
a list of the objects that are the philips hue lights
"1": {
"state": {
"on": true,
"bri": 254,
"alert": "none",
"reachable": true
},
"type": "Dimmable light",
"name": "Hue white lamp 1",
"modelid": "LWB014",

Gif Guide: Get Going with Kendo UI

Using Kendo UI components in your Angular application helps you make a robust application quickly with succinct code. When you're working on a deadline, like during Angular Attack 😉😉, or just a regular stressful deadline, like getting work to a client on time, coding faster is better. Having succinct, easy-to-read code is great when you're working in a team or even just to future YOU. After all, you probably can't even remember what you had for lunch yesterday (me either) 🤷.

Okay, let's get going.

Get Your Environment Ready

It is best to work with the latest stable version of Node & npm.

@tzmanics
tzmanics / 2015-state-pop.json
Created November 29, 2016 17:35
The estimated populations of the US per state according to the 2015 US Census.
[{
"state": "Alaska",
"population": 738432
}, {
"state": "Arizona",
"population": 6828065
}, {
"state": "Arkansas",
"population": 2978204
}, {
@tzmanics
tzmanics / gist:b6bf1f4572f4390b86e32cf233a9734a
Created November 29, 2016 05:53
Error when using `@progress/kendo-angular-charts` at v0.10.0
zone.js:388Unhandled Promise rejection: Template parse errors:
Can't bind to 'data' since it isn't a known property of 'kendo-chart-series-item'.
1. If 'kendo-chart-series-item' is an Angular component and it has 'data' input, then verify that it is part of this module.
2. If 'kendo-chart-series-item' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.
("
<kendo-chart-series>
<kendo-chart-series-item
type="bar" [ERROR ->][data]="populationData"
field="population" categoryField="state">
</kendo-chart"): AppComponent@6:23 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors:
const truck = [truck, frong, cake]
truck.map(function () {})
- for (var i = 0; i < activities.length; i++) {
li
span.time #{activities[i].createdAt}
br
span.message!= activities[i].action + ' ' + activities[i].resourceType + ' ' + activities[i].resourceId
- }
This is the error I'm getting:
<WARN> Failed to compile view "activity.blade". Error given: Parser error: Expected block definition, block modifier (i.e. append, prepend, or replace), block render, c-style block comment, chunk, code, comment, event handler, filter, function call, function definition, include, line of text, newline or tag but " " found.
at <anonymous>:3:1