Skip to content

Instantly share code, notes, and snippets.

View danivicario's full-sized avatar

Dani Vicario danivicario

View GitHub Profile
john:et2 backenddev$ git fsck --verbose
Checking HEAD link
Checking object directory
Checking directory .git/objects/29
Checking directory .git/objects/af
Checking blob 29f3d45ab05c4e63c5e1857df23949ce300bef2a
Checking blob afe98e5ea1c0ce18083d4de7b2e46da8fe89bd37
Checking blob 00089d765f2cc98a2c2e9e1a70f0db4d59956070
Checking blob 0026ac56cc8e26576143e679b31e3c0bd1a3aa97
Checking blob 00bef2bfc6e9a44b2e3a815fefb1be531196e2e0
debug - client authorized for
debug - flashsocket writing 1::
debug - flashsocket writing 5:::{"name":"move","args":[{"left":200}]}
debug - flashsocket received data packet 5:::{"args":{"a":5},"name":"test"}
debug - flashsocket writing 5:::{"name":"move","args":[{"left":300}]}
debug - flashsocket received data packet 5:::{"args":{"a":5},"name":"test"}
debug - flashsocket writing 5:::{"name":"move","args":[{"left":400}]}
debug - served static content /socket.io.js
info - transport end (socket end)
debug - set close timeout for client 707uKpS8z4dtiBMIbGOm
# 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
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)
#!/bin/sh
export EDITOR="sed -i '2s/pick/squash/;/# This is the 2nd commit message:/,$ {d}'"
git rebase -i HEAD~2
/**
* @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
@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">
@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 / 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;
{
"children": [
{
"name": "Work Experience",
"children": [
{
"name": "HSBC / 2014 - 2016",
"value": 2
},
{