Skip to content

Instantly share code, notes, and snippets.

@yosiat
yosiat / designer.html
Created June 12, 2014 17:07
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@yosiat
yosiat / designer.html
Created June 12, 2014 19:28
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../google-map/google-map-directions.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
<polymer-element name="my-element">
<template>
<style>
@yosiat
yosiat / designer.html
Created June 24, 2014 17:27
designer
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@yosiat
yosiat / gist:84d4159e673442bcb91d
Created October 14, 2014 19:34
SetImediateMode returns Generic Error
package main
import (
"code.google.com/p/gopacket"
"code.google.com/p/gopacket/pcap"
"fmt"
)
func CreateInactiveHandle(pcapConfiguration PcapConfiguraiton) (*pcap.InactiveHandle, error) {
#!/bin/sh
<<DOCUMENTATION
Pack
-----
The idea for pack is to use devdocs in offline environment (without internet :( )
and in windows.
Pack steps:
1. We use the latest ruby installation available in windowws
@yosiat
yosiat / line.html
Created April 19, 2015 17:38
LineChart nvd3 question
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="../build/nv.d3.css" rel="stylesheet" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js" charset="utf-8"></script>
<script src="../build/nv.d3.js"></script>
<style>
text {
@yosiat
yosiat / every
Created June 27, 2015 09:04
every
# Every
Write a function that accepts two arguments:
1. duration in milliseconds
2. array of objects that looks like this - { time: Date, value: int }
That returns an array of array of objects -> Array<Array<object>> whom partitioned by duration.
## Example
@yosiat
yosiat / http_api.md
Last active February 10, 2023 21:08
kapacitor api doc
@yosiat
yosiat / ok.log
Created February 16, 2016 18:27
window bug
{"id":"window_data:nil","message":"window_data:nil is CRITICAL","details":"{\u0026#34;Name\u0026#34;:\u0026#34;window_data\u0026#34;,\u0026#34;TaskName\u0026#34;:\u0026#34;window_bug\u0026#34;,\u0026#34;Group\u0026#34;:\u0026#34;nil\u0026#34;,\u0026#34;Tags\u0026#34;:{},\u0026#34;ID\u0026#34;:\u0026#34;window_data:nil\u0026#34;,\u0026#34;Fields\u0026#34;:{\u0026#34;count\u0026#34;:5},\u0026#34;Level\u0026#34;:\u0026#34;CRITICAL\u0026#34;,\u0026#34;Message\u0026#34;:\u0026#34;window_data:nil is CRITICAL\u0026#34;}","time":"2016-02-16T18:27:50Z","level":"CRITICAL","data":{"series":[{"name":"window_data","columns":["time","count"],"values":[["2016-02-16T18:27:50Z",5]]}]}}
{"id":"window_data:nil","message":"window_data:nil is CRITICAL","details":"{\u0026#34;Name\u0026#34;:\u0026#34;window_data\u0026#34;,\u0026#34;TaskName\u0026#34;:\u0026#34;window_bug\u0026#34;,\u0026#34;Group\u0026#34;:\u0026#34;nil\u0026#34;,\u0026#34;Tags\u0026#34;:{},\u0026#34;ID\u0026#34;:\u0026#34;window_data:nil\u0026#34;,\u0026#34;Fields
@yosiat
yosiat / alerts.log
Created February 18, 2016 18:36
window_bug_2
{"id":"window_data:nil","message":"window_data:nil is CRITICAL","details":"{\u0026#34;Name\u0026#34;:\u0026#34;window_data\u0026#34;,\u0026#34;TaskName\u0026#34;:\u0026#34;window_bug\u0026#34;,\u0026#34;Group\u0026#34;:\u0026#34;nil\u0026#34;,\u0026#34;Tags\u0026#34;:{},\u0026#34;ID\u0026#34;:\u0026#34;window_data:nil\u0026#34;,\u0026#34;Fields\u0026#34;:{\u0026#34;count\u0026#34;:1},\u0026#34;Level\u0026#34;:\u0026#34;CRITICAL\u0026#34;,\u0026#34;Message\u0026#34;:\u0026#34;window_data:nil is CRITICAL\u0026#34;}","time":"2016-02-18T18:16:09Z","level":"CRITICAL","data":{"series":[{"name":"window_data","columns":["time","count"],"values":[["2016-02-18T18:16:09Z",1]]}]}}{"id":"window_data:nil","message":"window_data:nil is CRITICAL","details":"{\u0026#34;Name\u0026#34;:\u0026#34;window_data\u0026#34;,\u0026#34;TaskName\u0026#34;:\u0026#34;window_bug\u0026#34;,\u0026#34;Group\u0026#34;:\u0026#34;nil\u0026#34;,\u0026#34;Tags\u0026#34;:{},\u0026#34;ID\u0026#34;:\u0026#34;window_data:nil\u0026#34;,\u0026#34;Fields\