Skip to content

Instantly share code, notes, and snippets.

@ws2356
ws2356 / .ignore
Created April 27, 2021 08:39 — forked from hereisderek/.ignore
my homebrew install list
dump.list
@ws2356
ws2356 / NavigationParallaxTransition.swift
Created January 18, 2021 08:12 — forked from stuartjmoore/NavigationParallaxTransition.swift
Re-create the Default `UINavigationController` Transition in iOS 10
//
// NavigationParallaxTransition.swift
// NavigationTransition
//
// Created by Stuart Moore on 2/12/17.
// Copyright © 2017 Stuart J. Moore. All rights reserved.
//
import UIKit
@ws2356
ws2356 / print256colours.sh
Created August 9, 2020 16:21 — forked from HaleTom/print256colours.sh
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256
@ws2356
ws2356 / async_result.cpp
Created June 14, 2020 04:48 — forked from inetic/async_result.cpp
Example usage of boost::asio::async_result
// Example of how to use boost::asio::async_result
#include <iostream>
#include <boost/asio.hpp>
#if BOOST_VERSION >= 106600
template<typename CompletionToken>
typename boost::asio::async_result
<CompletionToken, void(boost::system::error_code, std::string)>::return_type
@ws2356
ws2356 / tmux-cheatsheet.markdown
Created June 7, 2017 05:51 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname