Skip to content

Instantly share code, notes, and snippets.

@fauzzan26
fauzzan26 / a.html
Created March 23, 2022 21:12
HTML
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<style>body{background-color:white;}</style>
<script>(function() {
// If window.HTMLWidgets is already defined, then use it; otherwise create a
// new object. This allows preceding code to set options that affect the
// initialization process (though none currently exist).
window.HTMLWidgets = window.HTMLWidgets || {};
@PUUDI
PUUDI / css_color_hex
Created November 24, 2021 11:12
css color names and their HEX codes
Color Name,HEX
AliceBlue,#F0F8FF
AntiqueWhite,#FAEBD7
Aqua,#00FFFF
Aquamarine,#7FFFD4
Azure,#F0FFFF
Beige,#F5F5DC
Bisque,#FFE4C4
Black,#000000
BlanchedAlmond,#FFEBCD
@dfkaye
dfkaye / json-normalize.js
Last active May 23, 2023 12:49
normalize a JSON string (add correct quotes, remove comments, blank lines, and so on)
// 22 Feb 2020 TODO:
// needs trailing comma fix (allow trailing comma in arrays and object literals).
// see JWCC at https://nigeltao.github.io/blog/2021/json-with-commas-comments.html
export { normalize };
// var normalize = (function() {
// ///////////////////////////////////////////////////
// REVISE THIS FILE, PUT THE MAIN FUNCTION AT TOP,
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active June 1, 2024 09:32 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"
@DonKarlssonSan
DonKarlssonSan / complex.glsl
Last active May 10, 2023 11:34
Complex Number Math In GLSL
// Hyperboloc functions by toneburst from
// https://machinesdontcare.wordpress.com/2008/03/10/glsl-cosh-sinh-tanh/
// These are missing in GLSL 1.10 and 1.20, uncomment if you need them
/*
/// COSH Function (Hyperbolic Cosine)
float cosh(float val)
{
float tmp = exp(val);
float cosH = (tmp + 1.0 / tmp) / 2.0;
@lemiant
lemiant / tabs.css
Created October 22, 2014 18:50
CSS for Bootstrap tabs
/*
* This is the compiled css for Bootstrap tabs and pills.
* Compiled from bootstrap 2.3.2 (less/navs.less)
*/
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
@tureki
tureki / ace-editor.html
Created March 12, 2014 11:50
ace-editor auto height
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Editor</title>
</head>
<body>
<pre id="editor" style="width:100%;height:400px;">function foo(items) {
var i;
@mkawserm
mkawserm / cmdfy.cpp
Last active January 23, 2023 23:02
The code demonstrates how to use function pointer to call a method via string using c++
/* Program Name : cmdfy
* Developer : kawser
* Developer Blog: http://blog.kawser.org
* Blog Link: http://blog.kawser.org/2014/02/calling-cpp-function-fly.html
*
*
* Objective : This code demonstrates how to use function pointer
* to call a method via string
*
* IDEA : We will define some functions with similar signature and store these
@robinhouston
robinhouston / doyle.js
Last active December 27, 2023 01:09
Doyle spiral circle packing
/* Numerics for Doyle spirals.
* Robin Houston, 2013
*/
(function() {
var pow = Math.pow,
sin = Math.sin,
cos = Math.cos,
pi = Math.PI;