Skip to content

Instantly share code, notes, and snippets.

@iros
iros / API.md
Created August 22, 2012 14:42
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@hofmannsven
hofmannsven / README.md
Last active November 10, 2024 13:48
Git CLI Cheatsheet
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active September 15, 2024 18:49
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@tomhicks
tomhicks / plink-plonk.js
Last active November 12, 2024 19:08
Listen to your web pages
@umcconnell
umcconnell / profile.rs
Created December 23, 2020 17:48
Rust macro to profile a short snippet of code and return the evaluated result. Inspired by the `dbg!` macro.
/// Prints and returns the value of a given expression for quick and dirty code
/// profiling.
///
/// Example usage:
///
/// ```rust
/// let s = "hello world";
/// let all_caps = profile!(s.repeat(2).to_uppercase());
/// ^-- prints: [src/main.rs:2] execution time: 2μs
///