- NVD3 (http://nvd3.org/)
- Initial evaluation: seems the most mature. Apparently, has bad documentation, and is hard to use without going to its source code.
- dimple (http://dimplejs.org/)
- Initial evaluation: its main goal is to offer a simple API to create charts
- C3.js (http://c3js.org/)
- Initial evaluation: highly customizable charting API.
- xCharts (http://tenxer.github.io/xcharts/)
- Initial evaluation: "designed to be dynamic, fluid, and open to integrations and customization" seems to have a rather complex API though
- Vega (http://trifacta.github.io/vega/)
- Initial evaluation: intends to generate data visualizations from a JSON document. Charts can be generated server-side. Has an online editor http://trifacta.github.io/vega/editor/
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
public class NettyHttpServerSocketOptions extends NettyServerSocketOptions { | |
@Override | |
public final Consumer<ChannelPipeline> pipelineConfigurer() { | |
return new Consumer<ChannelPipeline>() { | |
@Override | |
public void accept(ChannelPipeline pipeline) { | |
pipeline.addLast(new HttpRequestDecoder()); | |
pipeline.addLast(new HttpObjectAggregator(Integer.MAX_VALUE)); | |
pipeline.addLast(new HttpResponseEncoder()); | |
} |
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
import java.io.*; | |
import java.nio.file.*; | |
import java.security.*; | |
import java.security.cert.*; | |
import javax.net.ssl.*; | |
import org.bouncycastle.jce.provider.*; | |
import org.bouncycastle.openssl.*; | |
public class SslUtil |
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/bash | |
# | |
# Tool to maintain p2 composite repositories | |
USAGE="Usage: | |
`basename "$0"` <repo-dir> [options] operation, operation ... | |
Options: | |
--name <repo name> | |
the repository name | |
--eclipse <eclipse install dir> |
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 | |
# | |
# Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c | |
RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])" | |
posixregex -r "^(${RE_IPV4})$" \ | |
127.0.0.1 \ | |
10.0.0.1 \ | |
192.168.1.1 \ |
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
import kafka.server.KafkaConfig; | |
import kafka.server.KafkaServer; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Properties; |
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 vmarcinko.undertow; | |
import io.undertow.Handlers; | |
import io.undertow.Undertow; | |
import io.undertow.server.HttpHandler; | |
import io.undertow.server.handlers.PathHandler; | |
import io.undertow.server.handlers.RedirectHandler; | |
import io.undertow.server.handlers.resource.FileResourceManager; | |
import io.undertow.servlet.Servlets; | |
import io.undertow.servlet.api.DeploymentInfo; |
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
- name: ensure file exists at path | |
shell: rsync -ci /source/path /destination/path | |
register: rsync_result | |
changed_when: "rsync_result.stdout != ''" |
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 | |
# | |
# <%=@service%> This shell script takes care of starting and stopping | |
# the <%=@service%> service. | |
# | |
# chkconfig: 2345 65 35 | |
# description: <%=@description%> | |
# | |
SERVICE=<%=@service%> |
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
var gulp = require('gulp'); | |
var rev = require('gulp-rev-all'); | |
var css = require('gulp-minify-css'); | |
var img = require('gulp-imagemin'); | |
var rs = require('run-sequence'); | |
var del = require('del'); | |
gulp.task('image', function () { | |
return gulp.src('image.jpeg') | |
.pipe(img({ progressive: false })) |