Skip to content

Instantly share code, notes, and snippets.

View JohnMica's full-sized avatar

John Mica JohnMica

View GitHub Profile
@JohnMica
JohnMica / data.csv
Created February 7, 2023 22:53 — forked from asielen/data.csv
Violin Plot + Box Plot v3
date value
2000 208.4968974
2000 160.5328879
2002 292.3321976
1998 95.07969441
2001 251.6346499
1996 4.723143097
1997 221.3608926
2002 257.5135771
1999 256.6401961
@JohnMica
JohnMica / serialize.js
Created May 1, 2018 09:45
serialize object with array of objects
var serialize = function(obj, prefix) {
var str = [],
p;
for (p in obj) {
if (obj.hasOwnProperty(p)) {
var k = prefix ? prefix + "[" + p + "]" : p,
v = obj[p];
str.push(
v !== null && typeof v === "object"
? serialize(v, k)
@JohnMica
JohnMica / better-font-smoothing.css
Created December 7, 2017 17:29 — forked from hsleonis/better-font-smoothing.css
Better font smoothing in cross browser
html {
/* Adjust font size */
font-size: 100%;
-webkit-text-size-adjust: 100%;
/* Font varient */
font-variant-ligatures: none;
-webkit-font-variant-ligatures: none;
/* Smoothing */
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;