Skip to content

Instantly share code, notes, and snippets.

View hawkw's full-sized avatar
🛠️
recently edited these files

Eliza Weisman hawkw

🛠️
recently edited these files
View GitHub Profile
@olix0r
olix0r / git-immolate.sh
Created January 17, 2017 21:49
Questionable Git Aliases
#!/bin/sh
set -e
# When the current branch has been merged to the origin, update master
# and delete the local branch.
branch=$(git rev-parse --abbrev-ref HEAD)
if [ -z "$branch" ]; then
@thequux
thequux / README.md
Last active May 31, 2016 22:35
Multirust-compatible racer wrapper

This wrapper automatically sets the RUST_SRC_DIRECTORY environment variable for whatever rust compiler is currently active, automatically creating a new checkout whenever necessary. This should be compatible with all of the multirust-alike tools, but it has only been tested with rustup.rs

Installation

Simply place this somewhere on your path before the main racer binary and set the execute bit.

Uninstallation

@d4l3k
d4l3k / about.md
Last active February 16, 2023 10:56
Golang Performance Tricks

This is a gist with a set of helpful performance tricks and best practices that I've found on the internet.

@JamalK
JamalK / facetime_cli.swift
Last active October 13, 2022 06:16
FaceTime from command line.
#!/usr/bin/env swift
//swiftc facetime_cli.swift -o facetime_cli
// sudo cp facetime_cli /usr/bin
// Enjoy! usage: facetime_cli $PHONE_NUMBER or $APPLE_ID
import Foundation
import Cocoa
extension Array {

#RIOT CODE GRRRL MANIFESTO #####(based on the original RIOT GRRRL MANIFESTO)

BECAUSE us girls crave apps and games and websites that speak to US that WE feel included in and can understand in our own ways.

BECAUSE we wanna make it easier for girls to see/hear each other's work so that we can share strategies and criticize-applaud each other.

BECAUSE we must take over the means of production in order to create our own revolution.

BECAUSE viewing our work as being connected to our girlfriends-politics-real lives is essential if we are gonna figure out how we are doing impacts, reflects, perpetuates, or DISRUPTS the status quo.

@Laurian
Laurian / styles.less
Created June 8, 2015 14:07
Atom style.less that disables Fira Code ligatures on current line, for easier editing. See it in action: http://gfycat.com/LeftRequiredCrownofthornsstarfish
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
@ArcticLight
ArcticLight / frob.js
Last active August 29, 2015 14:20
CSS Animations + Javascript = Hell
// This is a snippet that may or may not eventually make it live to my wobsite.
// This is the shortest code I currently know how to write that triggers my
// in/out animations correctly on toggle - every time - in the browser.
// The "Every Time" bit is the hardest bit.
function toggleReq() {
requirementsOpen = !requirementsOpen;
if(requirementsOpen) {
req.style.height=document.getElementById("reqcontent").offsetHeight+8+"px";

Dead-easy spicy strawberry curry

Sambal oelek is a spicy chili pepper sauce; Huy Fong Foods's sambal oelek is pretty easy to find in grocery stores. Don't try to substitute other hot sauces for it.

Ingredients

  • 2-3 heaping teaspoons sambal oelek
  • 3 large strawberries, chopped finely
open Parser;;
open Stringutil;;
type t = String of string | List of t list
let rec of_module m =
List (String "module" :: of_definitions m)
and of_definitions ds =
List.map of_definition ds
@adamgreig
adamgreig / 00-README.md
Last active August 12, 2022 08:37
Run embedded Rust code on your STM32F4

Embedded Rust on STM32F4

My notes from implementing Job Vranish's excellent guide.

Follow along with the guide above, getting rustc from rustup or similar:

rustc 1.0.0-nightly (dcaeb6aa2 2015-01-18 11:28:53 +0000)
binary: rustc
commit-hash: dcaeb6aa23ecba2dc2af870668a9239136d20fa3

commit-date: 2015-01-18 11:28:53 +0000