Skip to content

Instantly share code, notes, and snippets.

@mahinthjoe
mahinthjoe / TrueColour.md
Created March 14, 2017 09:52 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@mahinthjoe
mahinthjoe / terminal
Created August 15, 2014 05:30
($brew --config, $brew doctor and $brew install -v php55 2>&1) info for creating an issue for php homebrew installation
mahinthjoe at MacBookJoe.local ~
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 845492b1803d5d670e60ad71c6c0264d92e2cfbe
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.9.4-x86_64
Xcode: 5.1.1
@mahinthjoe
mahinthjoe / SassMeister-input.scss
Created November 14, 2013 03:45 — forked from kaelig/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// Transform a value into rem
// Assuming baseline is set to 10px on :root/html
@function rem($value, $baseline: 10px) {
@if type-of($value) == list {
$result: ();
@mahinthjoe
mahinthjoe / index.html
Last active December 21, 2015 14:48
Gist created to recreate the Google Home Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Recreate the Google Home Page using Basic HTML/CSS</title>
<meta name="description" content="HTML/CSS used to Recreate the Google Home Page">
<meta name="author" content="Mahinth Joe Christensen">
<link rel="stylesheet" href="css/styles.css?v=1.0">
<!--Script added to enable HTML5 in browsers lower than IE9 -->
<!--[if lt IE 9]>