Skip to content

Instantly share code, notes, and snippets.

Note: See how to contribute

=========================================

Numbers

Find PI to the Nth Digit - Enter a number and have the program generate PI up to that many decimal places. Keep a limit to how far the program will go.

Fibonacci Sequence - Enter a number and have the program generate the Fibonacci sequence to that number or to the Nth number.

@IAmAnubhavSaini
IAmAnubhavSaini / HTML5 Stub
Created May 13, 2016 15:30 — forked from joshuapowell/HTML5 Stub
A generic & empty HTML5 page structure.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="robots" content="index, follow" />
@IAmAnubhavSaini
IAmAnubhavSaini / config.json
Created August 20, 2016 06:06 — forked from anonymous/config.json
Grid Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@IAmAnubhavSaini
IAmAnubhavSaini / config.json
Created August 20, 2016 06:07 — forked from anonymous/config.json
Forms Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@IAmAnubhavSaini
IAmAnubhavSaini / config.json
Created August 20, 2016 06:21 — forked from anonymous/config.json
Wells Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",

Update 28 July 2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Update 23 May 2020: This guide is ALREADY OUTDATED and might no longer work with new versions of Ubuntu and VirtualBox. Please consider switching to the updated guide instead. I will no longer respond to the replies to this gist. Thank you.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

@IAmAnubhavSaini
IAmAnubhavSaini / profiling-in-react.md
Created April 6, 2022 03:42 — forked from bvaughn/index.md
How to use profiling in production mode for react-dom

React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.

Table of Contents

Profiling in production

React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.

@IAmAnubhavSaini
IAmAnubhavSaini / the-algebra-of-algebraic-data-types.md
Created September 17, 2022 10:19 — forked from gregberns/the-algebra-of-algebraic-data-types.md
The Algebra of Algebraic Data Types, Part 1, by Chris Taylor
@IAmAnubhavSaini
IAmAnubhavSaini / bash_strict_mode.md
Last active January 2, 2023 13:43 — forked from mohanpedala/bash_strict_mode.md
bash_strict_mode

Quick

#!/usr/bin/env bash

set -euxo pipefail
IFS=$'\n\t'

set -euxo pipefail

@IAmAnubhavSaini
IAmAnubhavSaini / analysis.draft.md
Created July 7, 2024 08:55 — forked from MattPD/analysis.draft.md
Program Analysis Resources (WIP draft)