Skip to content

Instantly share code, notes, and snippets.

View danivicario's full-sized avatar

Dani Vicario danivicario

View GitHub Profile
<main id="main">
These Terms and Conditions govern the use of the Nespresso Mock environment (“the Service”). The Service is provided solely for development, testing, and demonstration purposes. No real customer data, payments, orders, or personal information may be used or stored. All outputs are simulated and must not be considered accurate, complete, or production-ready. Users agree to follow internal security guidelines, maintain confidentiality, and avoid reverse-engineering or unauthorized redistribution. Nespresso reserves the right to modify, suspend, or discontinue the Service at any time without notice. Use of the Service is at the user’s own risk, without warranties of any kind.
</main>
@danivicario
danivicario / cleanVitest.js
Created April 25, 2025 15:40
Extract spies from vitest
#!/usr/bin/env node
import clipboard from "clipboardy";
const raw = clipboard.readSync();
const cleaned = raw
.split("\n")
.map(
(line) =>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
display: flex;
[
{
"name": "Communicator",
"value": 15
},
{
"name": "Teacher",
"value": 20
},
{
{
"children": [
{
"name": "Work Experience",
"children": [
{
"name": "HSBC / 2014 - 2016",
"value": 2
},
{
@danivicario
danivicario / test.ts
Created February 21, 2018 23:57
For Mike
import { Component } from '@angular/core';
interface Employee {
name: string;
salary: number;
}
interface Test {
a: number;
b: Employee;
@danivicario
danivicario / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../notification-elements/notification-alert.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@danivicario
danivicario / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-leaderboard.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-quiz-view.html">
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
*/
/*global THREE, console */
// This set of controls performs orbiting, dollying (zooming), and panning. It maintains
#!/bin/sh
export EDITOR="sed -i '2s/pick/squash/;/# This is the 2nd commit message:/,$ {d}'"
git rebase -i HEAD~2