This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"code.google.com/p/gopacket" | |
"code.google.com/p/gopacket/pcap" | |
"fmt" | |
) | |
func CreateInactiveHandle(pcapConfiguration PcapConfiguraiton) (*pcap.InactiveHandle, error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: XamarinStudio [12766] | |
Path: /Applications/Xamarin Studio.app/Contents/MacOS/XamarinStudio | |
Identifier: com.xamarin.monodevelop | |
Version: 4.2.2.2 (4.2.2.2) | |
Code Type: X86 (Native) | |
Parent Process: launchd [241] | |
Responsible: XamarinStudio [12766] | |
User ID: 501 | |
Date/Time: 2014-01-04 00:53:58.540 +0200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replace(newData) { | |
var nindex = crossfilter_range(newData.length); | |
// Update indexes. | |
removeDataListeners.forEach(function(l) { | |
l(nindex); | |
}); | |
// Remove all matching records from groups. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Removed toJSON, just for beautifying :) | |
/* CONSTRUCTOR -> */ function expression() { | |
}; | |
Object.defineProperty(expression.prototype, "_type", | |
{ | |
get : function(){ |