GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tools from https://github.com/ibraheemdev/modern-unix | |
tap "cantino/mcfly" | |
tap "clementtsang/bottom" | |
brew "bat" | |
brew "exa" | |
brew "lsd" | |
brew "git-delta" | |
brew "dust" | |
brew "duf" | |
brew "broot" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# encoding: utf-8 | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rotp' | |
gem 'thor' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAINTEXT = %w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) | |
CRYPTTEXT = %w(E L P H A N T B C D F G I J K M O Q R S U V W X Y Z) | |
input = "Cj qarmkjra sk ykuq gers gassaq, C ei waeqcjt iy ngctbs rucs lus hk jks beva e lqe kj. Cn yku waqa baqa, C wkugh sefa yku cjsk sba teqhaj ikhuga ejh gaej kvaq sba skiesk lahr rk sbes er yku skkf ia nqki labcjh, iy nepa wkugh la mqarrah cjsk sba nqetqejs tqaaj gaevar wcsb aepb sbqurs.".upcase | |
input.split("").each do |character| | |
if position = CRYPTTEXT.find_index(character) | |
print PLAINTEXT[position] | |
else | |
print character |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#You may have to change some of these values to match display/dock/menubar sizes | |
xscr=1920 | |
yscr=1080 | |
yd=5 | |
xd=80 | |
xstart=0 | |
ystart=44 | |
xmax=xscr-xd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name your first "bootstrap" environment: | |
INITIAL_ENV=pymordial | |
# Options for your first environment: | |
ENV_OPTS='' | |
# Set to whatever python interpreter you want for your first environment: | |
PYTHON=$(type -P python) | |
# Latest virtualenv from pypa |