- Event Drops https://github.com/marmelab/EventDrops
- Scatterplot http://bl.ocks.org/mbostock/3887118
- Gradient Encoding http://bl.ocks.org/mbostock/3969722
- Hierarchical Edge Bundling http://bl.ocks.org/mbostock/7607999
- Automatic Text Sizing http://bl.ocks.org/mbostock/1846692
- Zoomable Sunburst http://bl.ocks.org/mbostock/4348373
- Difference Chart http://bl.ocks.org/mbostock/3894205
- Bubble Chart http://bl.ocks.org/mbostock/4063269
- Circle Packing http://bl.ocks.org/mbostock/4063530
This file contains 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
import com.intellij.ide.bookmark.Bookmark | |
import com.intellij.ide.bookmark.FileBookmark | |
import com.intellij.ide.bookmark.BookmarkGroup | |
import com.intellij.ide.bookmark.BookmarksManager | |
import com.intellij.ide.favoritesTreeView.FavoritesManager | |
import com.intellij.ide.projectView.impl.AbstractUrl | |
import com.intellij.openapi.module.ModuleManager | |
import com.intellij.openapi.project.Project | |
import com.intellij.openapi.roots.CompilerModuleExtension |
Here are my attempts to script an IntelliJ-based IDE using javax.script.*
API (ex-JSR-223).
The list of available scripting languages and engines:
- Groovy - built-in, via Groovy jars and
<app>/lib/groovy-jsr223-xxx.jar
- JavaScript (Nashorn) - built-in, via Java Runtime
<app>/jbr/...
(deprecated and will be removed soon) - JavaScript (GraalJS) - https://plugins.jetbrains.com/plugin/12548-intellij-scripting-javascript
- JPython - https://plugins.jetbrains.com/plugin/12471-intellij-scripting-python
- JRuby - https://plugins.jetbrains.com/plugin/12549-intellij-scripting-ruby
- Clojure - https://plugins.jetbrains.com/plugin/12469-intellij-scripting-clojure
This file contains 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
/** | |
* Conway's game of life implemented in C++ templates at compile time using Comonads. | |
* | |
* Logic based on: http://blog.emillon.org/posts/2012-10-18-comonadic-life.html | |
*/ | |
#include <iostream> | |
/// Identity functor | |
template <typename X> | |
struct id { |
This file contains 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
(?s)^((?!my text).)*$ | |
^((?!my text).)+$ <-- won't match empty lines | |
^((?!my text).)*$ <-- this doesn't work :( |
This file contains 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
apply plugin: 'groovy' | |
repositories { | |
mavenCentral() | |
} | |
configurations { | |
patch | |
[compile, testCompile]*.exclude module: 'jersey-server' | |
} |
This file contains 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
#pragma once | |
#include <boost/optional.hpp> | |
/** | |
* Wraps any value with a context of Left for the Either class. | |
* | |
* By convention, Left represents some sort of less-desired condition. | |
*/ |
This file contains 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
var csv = ""; // paste csv into this string | |
var margin = {top: 20, right: 20, bottom: 30, left: 50}, | |
width = 960 - margin.left - margin.right, | |
height = 500 - margin.top - margin.bottom; | |
var parseFormat = d3.time.format("%H:%M:%S"); | |
var displayFormat = d3.time.format("%H:%M"); | |
var x = d3.time.scale().range([0, width]); |
This file contains 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
/** | |
* Insert the method's description here. | |
* Creation date: (4/16/01 3:47:01 PM) | |
* @param newHierarchy com.xxxx.xxxxxxxx.reporting.xxxxx.api.datasource.Hierarchy | |
*/ | |
public void setHierarchy(com.xxxx.xxxxxxxx.reporting.xxxxx.api.datasource.Hierarchy newHierarchy) { |
This file contains 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
class AnalysisUtil { | |
static def aggregateByDuration = { events -> events.sum(0) { it.duration } } | |
static def aggregateByQueryDuration = { events -> events.sum(0) { it.queryDuration } } | |
static def aggregateByAmount = { events -> events.size() } | |
static def histogramOf(Closure criteria, amountOfIntervals, List lines) { | |
double maxValue = criteria(lines.max(criteria)) | |
double minValue = criteria(lines.min(criteria)) | |
double intervalSize = (maxValue - minValue) / amountOfIntervals |
NewerOlder