Skip to content

Instantly share code, notes, and snippets.

@0gust1
0gust1 / build.js
Last active November 5, 2016 22:18
metalsmith static website build, with livreload
var extname = require('path').extname;
var Metalsmith = require('metalsmith');
var myth = require('myth');
var http = require('http');
var templates = require('metalsmith-templates');
var markdown = require('metalsmith-markdown');
var watch = require('metalsmith-watch');
/**
@john2x
john2x / 00_destructuring.md
Last active August 28, 2025 08:34
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@heathdutton
heathdutton / gist:cc29284de3934706acd1
Created April 26, 2015 03:19
Start an Acquia drush command, and wait for it to complete before continuing.
#!/bin/bash
# Runs an acquia task, and waits for the task to complete before continuing.
# This is a helper script, to be used in others as needed.
if [[ $1 = "" ]] || [[ $2 = "" ]]
then
echo "Runs an acquia drush command, waiting for the results before continuing."
echo "Can be used as a replacement for drush."
echo
echo " Usage: $0 <site-alias> <ac-drush-command>"
@Pitometsu
Pitometsu / configuration.nix
Last active July 11, 2023 18:58
NixOS system config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
rec {
imports =

Notes on Building & Uploading Twigs Alt Firmware

This is what I've used to build and upload Twigs using OSX 10.11.4

This is the AVR interface I'm using

Install GCC ARM Toolchain

brew tap PX4/homebrew-px4
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active August 23, 2025 16:53
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@spinus
spinus / config.nix
Created July 8, 2017 16:15
~/nixpkgs/config.nix
let
ver = "20170527";
in
{
allowUnfree = true;
allowBroken = true;
firefox = {
enableGoogleTalkPlugin = true;
enableAdobeFlash = true;
icedtea=true;
@VladimirPal
VladimirPal / neomuttrc
Last active May 15, 2025 09:56
Minimal neomutt config for gmail imap
set imap_user="[email protected]"
set imap_pass=`/usr/bin/security find-generic-password -w -a '[email protected]' -s 'Gmail'`
set folder=imaps://imap.gmail.com/
set spoolfile=+INBOX
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
@vikramrojo
vikramrojo / design-ops-playbook.md
Created May 10, 2018 04:50
A collection of tools and practices to aide design organizations.

Design Operations

Within a product organization, a number of workflow and environmental factors affect the effectiveness and impact of design work. Design operations manages aspects of culture and process, allowing designers to focus on execution while expanding the range of design's scope.

Design operations tackles common product challenges like;

  • interface consistency
  • clarifying specification
  • user testing
  • developer handoffs

It addresses these factors by managing and communicating aspects of the design workflow like;

@ftrvxmtrx
ftrvxmtrx / orca.nix
Last active April 24, 2022 10:43
A Nix expression to build and install orca-c on NixOS
# nix-build -E 'with import <nixpkgs> {}; callPackage ./orca.nix {}'
{ stdenv, ncurses, portmidi }:
stdenv.mkDerivation rec {
name = "orca";
src = ./.;
buildInputs = [ ncurses portmidi ];
enableParallelBuilding = true;