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 July 16, 2024 01:30
Git CLI Cheatsheet
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active June 29, 2024 09:06
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@tomhicks
tomhicks / plink-plonk.js
Last active July 26, 2024 01:10
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
///