Skip to content

Instantly share code, notes, and snippets.

View siara-cc's full-sized avatar

Arun (Arundale Ramanathan) siara-cc

View GitHub Profile
@tobozo
tobozo / svg-reduce-viewbox.js
Last active November 10, 2019 02:58
I coded this to have lighter coord values in SVG path where the viewBox was excessively high. Resulting code is 20% lighter.
const svgTag = document.querySelector("svg");
const viewBox = svgTag.getAttribute('viewBox');
const elements = svgTag.querySelectorAll("path");
const ratio = 1/10; // changes this until broken paths appear
const charIsNumeric = function( char ) {
return (char >= '0' && char <= '9');
}
#! /usr/bin/env bash
# Installs RocksDB
# https://github.com/facebook/rocksdb/blob/master/INSTALL.md
# http://pyrocksdb.readthedocs.io/en/v0.4/installation.html
##
set -e
set -x
sudo yum groupinstall -y "Development Tools"
@define-private-public
define-private-public / HttpServer.cs
Last active November 8, 2024 10:11
A Simple HTTP server in C#
// Filename: HttpServer.cs
// Author: Benjamin N. Summerton <define-private-public>
// License: Unlicense (http://unlicense.org/)
using System;
using System.IO;
using System.Text;
using System.Net;
using System.Threading.Tasks;

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a