gem install slim
ruby conv.rb > test.html
Open test.html
in a browser to see how it looks.
body { | |
margin-top: 10px; | |
} | |
/* -*- mode: c; indent-tabs-mode: nil; c-basic-offset: 4; coding: utf-8-unix -*- */ | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdint.h> | |
#include <sys/time.h> | |
#include <sys/resource.h> | |
int main(int argc, char *argv[]) { | |
struct timespec ts; | |
struct rusage ru; |
import React from 'react'; | |
import MaterialUiForm from './MaterialUiForm'; | |
import { createStore } from 'redux'; | |
import { Provider } from 'react-redux'; | |
import reducer from './reducer'; | |
import getMuiTheme from 'material-ui/styles/getMuiTheme'; | |
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; | |
const store = createStore(reducer); |
/* -*- mode: c; indent-tabs-mode: nil; c-basic-offset: 4; coding: utf-8-unix -*- */ | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <sys/resource.h> | |
void print_rlimit(struct rlimit *r, const char *name) { | |
int64_t cur; /* Soft limit */ | |
int64_t max; /* Hard limit */ | |
cur = r->rlim_cur; |
This gist is just a personal practice record of Logstash Multiple Pipelines.
The following summary assumes that
the PATH
contains Logstash and Filebeat executables
and they run locally on localhost
.
Reveal.initialize({ | |
// Display controls in the bottom right corner | |
controls: true, | |
// Display a presentation progress bar | |
progress: true, | |
// If true; each slide will be pushed to the browser history | |
history: true, | |
// Loops the presentation, defaults to false | |
loop: false, | |
// Flags if mouse wheel navigation should be enabled |
<html> | |
<head> | |
<link rel="stylesheet" href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css"></link> | |
<!-- jquery.js must be loaded before bootstrap.js. --> | |
<script type="text/javascript" src="http://getbootstrap.com/2.3.2/assets/js/jquery.js"></script> | |
<script type="text/javascript" src="http://getbootstrap.com/2.3.2/assets/js/bootstrap.js"></script> | |
<script type="text/javascript" src="paint.js"></script> | |
<style type="text/css"> | |
body { |
import * as d3 from 'd3'; | |
var config = { | |
width: 640, | |
height: 640, | |
plot: { | |
width: 560, | |
height: 560, | |
} | |
}; |
Reveal.initialize({ | |
// Display controls in the bottom right corner | |
controls: true, | |
// Display a presentation progress bar | |
progress: true, | |
// If true; each slide will be pushed to the browser history | |
history: true, | |
// Loops the presentation, defaults to false | |
loop: false, | |
// Flags if mouse wheel navigation should be enabled |