View jwk.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pkg | |
import ( | |
"crypto/ecdsa" | |
"crypto/elliptic" | |
"encoding/base64" | |
"errors" | |
"math/big" | |
) |
View wait-for-sig.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import signal, subprocess, sys | |
signal.sigwait([signal.SIGTERM]) |
View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
outputs = { self, nixpkgs, flake-utils }: | |
flake-utils.lib.eachDefaultSystem | |
(system: | |
let pkgs = nixpkgs.legacyPackages.${system}; in | |
{ | |
devShells.default = import ./shell.nix { inherit pkgs; }; | |
} | |
); | |
} |
View post-merge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
View writevt.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mostly ripped off of console-tools' writevt.c | |
*/ | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <termios.h> | |
#include <sys/ioctl.h> | |
#include <unistd.h> | |
#include <string.h> |
View Versioning.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Versioning.sh | |
# | |
# https://gist.github.com/791352 by Marc Hedlund | |
# | |
# Found at http://kswizz.com/post/2686511526/git-xcode-versioning and slightly | |
# modified. | |
# To install: |
View translatekeycodes.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static func keyCodeToString(keyCode: CGKeyCode, eventModifiers: Int) -> String? { | |
let curKeyboard = TISCopyCurrentKeyboardInputSource().takeRetainedValue() | |
let rawLayoutData = TISGetInputSourceProperty(curKeyboard, kTISPropertyUnicodeKeyLayoutData) | |
let layoutData = unsafeBitCast(rawLayoutData, to: CFData.self) | |
let keyboardLayoutPtr = unsafeBitCast(CFDataGetBytePtr(layoutData), to: UnsafePointer<UCKeyboardLayout>.self) | |
var deadKeyState: UInt32 = 0 | |
var actualStringLength = 0 | |
var unicodeString: [UniChar] = [0, 0, 0, 0] |
View igloo.dxf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
999 | |
"DXF R12 Output" (www.mydxf.blogspot.com) | |
0 | |
SECTION | |
2 | |
HEADER | |
9 | |
$ACADVER | |
1 | |
AC1009 |
View .emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) | |
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/")) | |
(setq package-enable-at-startup nil) | |
(package-initialize) | |
(custom-set-variables |
View Loan Project.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder