Skip to content

Instantly share code, notes, and snippets.

View danivicario's full-sized avatar

Dani Vicario danivicario

View GitHub Profile
<!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
class ExampleCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Say something:", 'something', self.on_done, None, None)
def on_done(self, user_input):
sublime.status_message("User said: " + user_input)
# GIT
function _git_prompt() {
local git_status="`git status -unormal 2>&1`"
if ! [[ "$git_status" =~ Not\ a\ git\ repo ]]; then
if [[ "$git_status" =~ nothing\ to\ commit ]]; then
local ansi=42
elif [[ "$git_status" =~ nothing\ added\ to\ commit\ but\ untracked\ files\ present ]]; then
local ansi=43
else
local ansi=45