Skip to content

Instantly share code, notes, and snippets.

@dnprock
dnprock / index.html
Last active April 23, 2024 21:35
World Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@dnprock
dnprock / index.html
Last active February 16, 2023 19:00
US States Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@dnprock
dnprock / client_example.html
Created September 24, 2013 18:58
Meteor image file upload. Then send file to S3.
Template.example.events({
'change input': function(ev) {
_.each(ev.srcElement.files, function(file) {
Meteor.saveFile(file, file.name);
});
}
});
@dnprock
dnprock / dashboard.json
Created May 25, 2020 21:44
Covid Trend in the United States
{
"name": "Covid Trend in the United States",
"description": "Data from covidtracking.com.",
"columns": 3,
"rows": 3,
"header": {
"align": "center",
"text": "Covid Trend in the United States",
"backgroundColor": "#82ca9d"
},
@dnprock
dnprock / nginx.conf
Last active June 25, 2019 18:19
meteor nginx load balance with sticky session, used by vida.io
# Sticky session module for nginx
# https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/
# nginx configure command: ./configure --with-http_ssl_module --add-module=../nginx-sticky-module-ng/ --sbin-path=/usr/local/sbin --with-http_gzip_static_module
upstream vida_node_server {
sticky path=/;
server 127.0.0.1:3000 max_fails=3 fail_timeout=30s;
server [server2]:3000 max_fails=3 fail_timeout=30s;
}
@dnprock
dnprock / install-google-chrome.sh
Created May 13, 2019 21:33
intoli google chrome script
#! /bin/bash
# Copyright 2017-present: Intoli, LLC
# Source: https://intoli.com/blog/installing-google-chrome-on-centos/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
@dnprock
dnprock / index.html
Last active July 10, 2018 21:29
US States Map - Choropleth plus Bar
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@dnprock
dnprock / README.md
Last active April 10, 2017 20:53
Force Layout with auto zoom (SVG)

Document Template for vida.io

Github template for vida.io

Node and gulp are required. To run, use command: gulp

Access through browser at http://localhost:5000.

Describe your document in manifest.json. Format is as follows:

@dnprock
dnprock / README.md
Last active April 10, 2017 20:52
Force Layout with auto zoom (canvas)

Document Template for vida.io

Github template for vida.io

Node and gulp are required. To run, use command: gulp

Access through browser at http://localhost:5000.

Describe your document in manifest.json. Format is as follows:

@dnprock
dnprock / .block
Last active October 29, 2016 00:47 — forked from jcnesci/.block
Stacked Barchart with Transitions
license: mit