Skip to content

Instantly share code, notes, and snippets.

@ceme
ceme / markdown-cheat-sheet.md
Created April 5, 2026 19:58
Markdown Cheat Sheet : This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements

Markdown Cheat Sheet

Thanks for visiting The Markdown Guide!

This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for basic syntax and extended syntax.

Basic Syntax

These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements.

@ceme
ceme / gist:c8ec2ee6875f0f67b8cea8e78db90e38
Created July 10, 2023 17:32
Zip file password protect
zip -er FILENAME.zip FILESorFOLDERStoCOMPRESS
@ceme
ceme / swap-variable.txt
Created December 4, 2022 20:51
Swap two variables without a third
a = a^b
b = a^b
a = a^b
git config --global core.editor vim &&
git config --global color.ui true &&
git config --global core.autocrlf input &&
git config --global alias.co checkout &&
git config --global alias.br branch &&
git config --global alias.ci commit &&
git config --global alias.st status &&
git config --global alias.up rebase &&
git config --global alias.ci commit &&
git config --global alias.upstream "remote add upstream" &&
Section Header!

Some information...

# Here's some code
let x = () => { x:true }
@ceme
ceme / .vimrc
Created October 22, 2020 00:30
Just a simple vimrc
" Use Vim settings, rather then Vi settings (much better!).
set nocompatible
" Turn on the verboseness to see everything vim is doing.
"set verbose=9
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
@ceme
ceme / parsecookie.js
Created August 29, 2020 02:54 — forked from rendro/parsecookie.js
Parse document.cookie into object
document.cookie.split(';').map(function(c) {
return c.trim().split('=').map(decodeURIComponent);
}).reduce(function(a, b) {
try {
a[b[0]] = JSON.parse(b[1]);
} catch (e) {
a[b[0]] = b[1];
}
return a;
}, {});
@ceme
ceme / codepen-demo.txt
Created December 1, 2018 21:09
Stack and Queue Operations and Write to DOM in Vanilla JavaScript
https://codepen.io/anon/pen/dQaJBm?editors=1111
@ceme
ceme / cli-paste-html-source-and-open-in-browser.txt
Last active November 18, 2018 20:15
paste html-source from clipboard and open in default browser
filename=clipboard-source.html; pbpaste > /tmp/$filename | open /tmp/$filename
@ceme
ceme / codepen-demo.txt
Created September 23, 2018 19:24
Vanilla JS : Insert Text using Template Literal to DOM node
https://codepen.io/anon/pen/eLrxXV