I hereby claim:
- I am aduh95 on github.
- I am aduh95 (https://keybase.io/aduh95) on keybase.
- I have a public key ASDQ0EuwikxsBDgg7y1dFeZptMBPWQlFs7VayGo6uFWSCQo
To claim this, I am signing this object:
test |
/** | |
* Based on the [Stuart Langridge script](https://kryogenix.org/code/browser/generated-toc/generated_toc.js) | |
* Generated TOC | |
* aduh95, 2017-09-28 | |
* | |
* Generate a table of contents, based on headings in the page. | |
* | |
* To place the TOC on your Markdown or HTML document, insert this | |
* script and add the following `nav` element to your document where | |
* you want the TOC to be generated. |
I hereby claim:
To claim this, I am signing this object:
// ---- | |
// libsass (v3.5.4) | |
// ---- | |
// custom responsive | |
// custom variables | |
// colors | |
// main colors | |
$custom-color-primary: #3dcd58; |
const { spawn } = require("child_process"); | |
const { promises: fs } = require("fs"); | |
const path = require("path"); | |
const GUETZLI_EXEC = "C:\\ProgramData\\chocolatey\\bin\\guetzli.EXE"; | |
const MAGICK_EXEC = "C:\\ProgramData\\chocolatey\\bin\\magick.EXE"; | |
// const sizes = [190, 290, 415, 830, 1125]; | |
// const sizes = [612]; | |
const sizes = [317, 830]; |
You want to use the same files on different environment? Here is how to setup your Linux system.
It is strongly recommended to have a separate partition for every OS you want to
have and another partition on which you want to store your data. If you are
using UNIX-like OSes only, you can have a /home
partition that every OS will
share and you don't need this tutorial. However, if you want to use a Windows OS
as well, here is what you need to do.
#!/bin/bash | |
tar -cf ~/Documents/home.tar ~/.vscode ~/.ssh ~/.config/fish ~/.config/Code ~/.bash_aliases |
[alias] | |
lcm = !"git log -1 --pretty=%s" | |
lg = !"git lg1" | |
lg1 = !"git lg1-specific --all" | |
lg2 = !"git lg2-specific --all" | |
lg3 = !"git lg3-specific --all" | |
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' | |
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' | |
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' |
#!/usr/bin/env node | |
import { promises as fs, createReadStream } from "fs"; | |
import { createBrotliCompress } from "zlib"; | |
import { resolve, join } from "path"; | |
const DIR = resolve(process.argv[2]); | |
fs.readdir(DIR) | |
.then(files => |
# DO NOT USE ANY OF THIS | |
This gist is here for my own reference. You can browse the files if you feel like it, | |
but keep in mind most of this code is plain garbage :) |