Skip to content

Instantly share code, notes, and snippets.

View R3V1Z3's full-sized avatar

R3V1Z3 R3V1Z3

  • Los Angeles, CA
View GitHub Profile
@Newbrict
Newbrict / ascii cube
Created March 26, 2014 16:56
an ASCII art Cube
cubes look like this:
e-------f
/| /|
/ | / |
a--|----b |
| g----|--h
| / | /
c-------d
@jonlabelle
jonlabelle / regular_expression_cheatsheet.md
Last active August 1, 2025 02:27
Regular Expression Cheatsheet

Regular Expression Cheatsheet

Anchors

^   Matches at the start of string or start of line if multi-line mode is
	enabled. Many regex implementations have multi-line mode enabled by
	default.

$ Matches at the end of string or end of line if multi-line mode is enabled.
@codemedic
codemedic / konsole-with-palette-colours.css
Last active September 24, 2024 13:25
CSS for KDE Konsole minimal, lighter, dark tabs
QTabBar,
QTabBar::tab
{
font-family: "Noto Sans";
font-size: 11px;
height: 16px;
padding: 2px;
border: 0px;
border-bottom: 3px solid palette(dark);
background-color: palette(dark);
# Use multirust to manage multiple Rust builds:
# 1. Install multirust
curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh
# 2. Show installed Rust builds
multirust list-toolchains
# 3. Install new build (stable, beta, nightly)
multirust update nightly
@jeffreymorganio
jeffreymorganio / javascript-array-of-random-values.js
Created June 12, 2016 15:01
Create and fill a JavaScript array with random values.
function randomDataSet(dataSetSize, minValue, maxValue) {
return new Array(dataSetSize).fill(0).map(function(n) {
return Math.random() * (maxValue - minValue) + minValue;
});
}
@deekayen
deekayen / Drop.txt
Last active October 27, 2017 21:55
Backdrop Drop mascot ASCII art for /etc/motd in 80x25 terminal windows. Converted using jp2a --background=light -f. The extra space on the top of the lounging version makes sure Drop gets to set on the bottom of the terminal when it opens.
.'
dd
0WWWNx,...
.:X0WWWWXO:lXx..
.. dNWWd; kWWxc.
,XWWKOXWWW0:.
.XWWWWWWWWd;
.XWWWWWWook0x:.
.oNWWWWWWc .;.
.dKXWWWWWWl .;o0x;'.
@lava
lava / nethack_armor.md
Last active June 10, 2018 04:58
Nethack armor comparison

Nethack armor comparison

Imagine this totally hypothetical situation: You're in a boring meeting without internet, play a round of nethack as a rogue, and come across a dwarvish mithril-coat. Should you replace your current leather armor? On the one hand, mithril sounds pretty nifty. On the other hand, it seems a bit out-of-character for a rogue to wear full plate armor, so surely there are some good reasons to keep the leather?

Luckily, you are a professional developer, so you have a local copy of the games' source code.

@kovrov
kovrov / blender-keys.md
Last active March 3, 2023 19:43
Blender keys

blender hotkeys

Basics

Right click Select

Middle click Pan

Mouse wheel Zoom

@nilz3ro
nilz3ro / string-reverse.js
Created February 15, 2017 15:27
Recursion Example
// One liner.
const reverseIt = (string, memo='') => string.length ? reverseIt(string.substr(1), string.substr(0,1) + memo) : memo
// same as:
function reverseIt2 (string, memo='') {
if (string.length) {
return reverseIt2(string.substr(1), string.substr(0,1) + memo);
} else {
return memo;
@roninhack
roninhack / reverse-proxy.md
Created October 5, 2017 19:04 — forked from greim/reverse-proxy.md
Using a Reverse Proxy for Rapid Prototyping

Using a Reverse Proxy for Rapid Prototyping

Note: This will be a contrived example, but hopefully illustrates some real-world trade-offs.

Example scenario: Suppose you're an independent web developer, and a client asks you to prototype a redesign of their website header. You'll be paid for your time, and if the client likes it, you'll be hired to do the full implementation. Your incentive is to show the client a quick, functional demo of the updated header. The problem is that quick and functional tend to be mutually-exclusive.

At One Extreme: Do It Fast