Skip to content

Instantly share code, notes, and snippets.

View Zizzamia's full-sized avatar

Leonardo Zizzamia Zizzamia

View GitHub Profile
@Zizzamia
Zizzamia / tasty-lab-one.html
Last active August 29, 2015 14:06
Tasty lab one
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<input type="text" />
<div>
Bootstrap component
@Zizzamia
Zizzamia / tasty-lab-two.html
Last active August 29, 2015 14:06
Tasty lab two
<!DOCTYPE html>
<html ng-app="tasteAngulajs">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<button>show</button>
<button>hide</button>
<img src="http://zizzamia.github.io/taste-of-angularjs/img/tiramisu-logo.png" />
@Zizzamia
Zizzamia / tasty-lab-three.html
Last active August 29, 2015 14:06
Tasty lab three
<!DOCTYPE html>
<html ng-app="tasteAngulajs">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<div>
<input type="text" class="form-control" placeholder="search" />
<button>Add new coffee shop!</button>
@Zizzamia
Zizzamia / tasty-lab-four.html
Last active August 29, 2015 14:06
Tasty lab four
<!DOCTYPE html>
<html ng-app="tasteAngulajs">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<div class="row">
<div class="col-xs-6" ng-controller="tasteController">
<button class="btn btn-default">Increment</button>
@Zizzamia
Zizzamia / tasty-lab-five.html
Last active August 29, 2015 14:06
Tasty lab five
<!DOCTYPE html>
<html ng-app="tasteAngulajs">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<header></header>
@Zizzamia
Zizzamia / gist:ab99d823b857402515e8
Last active August 29, 2015 14:21
Setting up a basic Benchmark case
// Create the app folder
mkdir app
cd app/
// Installing Yeoman and Benchpress
npm install -g yo
npm install benchpress
// Install generator-benchpress
npm install -g generator-benchpress
@Zizzamia
Zizzamia / gist:13a9333ac31811002513
Created May 12, 2015 23:29
Open benchmark with Chrome
http-server -p 8000
npm install -g protractor
webdriver-manager update
import { Component, ElementRef, NgZone } from '@angular/core';
export class cornetto {
constructor(NgZone: NgZone) {
this.zone = NgZone;
}
tasteIt() {
this.zone.run(() => {
@Zizzamia
Zizzamia / tick.js
Last active February 9, 2017 08:38
export class eventTask {
constructor(ElementRef: ElementRef) {
this.element = ElementRef.nativeElement;
}
// ...
tick() {
console.log('Tick now!');
}