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
;;; straight --- Use straight.el to manage packages with version control. | |
;;; Commentary: | |
;; straight.el allows git to track package versions, ensuring Emacs | |
;; stability and reversible package upgrades. | |
;;; Author: holocronweaver | |
;;; Created: 2018 | |
;;; Code: | |
(let ((bootstrap-file (concat user-emacs-directory "straight/repos/straight.el/bootstrap.el")) | |
(bootstrap-version 3)) | |
(unless (file-exists-p bootstrap-file) |
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
#ifndef RANGE_HPP_ | |
#define RANGE_HPP_ | |
template<typename T> class RangeIterator; | |
template<typename T> | |
class Range | |
{ | |
T _start, _end, _step; |
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
from subprocess import check_output | |
def sh(x): return check_output(x, shell=True).decode() | |
def script(x): | |
return sh(""" | |
derp () {{ | |
printf "hello %d\\n" {0} | |
sha256sum example.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
// ==UserScript== | |
// @name Wookieepedia Default to Legacy | |
// @namespace https://holocronweaver.com/ | |
// @version 0.1 | |
// @description Default to Legacy instead of Disney Canon. | |
// @author holocronweaver | |
// @match http://starwars.wikia.com/* | |
// @grant none | |
// ==/UserScript== |
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
#include <cstdlib> | |
#include <iostream> | |
#include <string> | |
#include <boost/timer/timer.hpp> | |
#define NUM_CALLS 1000000 | |
template <size_t N, size_t I = 0> | |
struct hash_calc |
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
#pragma once | |
// openvr.h | |
//========= Copyright Valve Corporation ============// | |
// Dynamically generated file. Do not modify this file directly. | |
#ifndef _OPENVR_API | |
#define _OPENVR_API | |
#include <stdint.h> |
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
#! python3 | |
import shlex | |
import sys | |
import re | |
import io | |
header = open('openvr.h', newline='\n').read() | |
annoyingMacroPattern = re.compile(r'#define\s+(\w+).*VR_CLANG_ATTR.*') |
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
/* | |
----------------------------------------------------------------------------- | |
This source file is part of OGRE | |
(Object-oriented Graphics Rendering Engine) | |
For the latest info, see http://www.ogre3d.org/ | |
Copyright (c) 2000-2012 Torus Knot Software Ltd | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |
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
00:00.146 SYSTEM locking /Users/jesse/.opam/lock | |
00:00.147 FILENAME cleandir /Users/jesse/.opam/log | |
00:00.147 SYSTEM rmdir /Users/jesse/.opam/log | |
00:00.151 SYSTEM mkdir /Users/jesse/.opam/log | |
00:00.151 STATE LOAD-STATE(global-lock) | |
00:00.151 FILE(config) Read ~/.opam/config in 0.000s | |
00:00.160 STATE Loaded /Users/jesse/.opam/state.cache in 0.009s | |
00:00.161 FILE(aliases) Read ~/.opam/aliases in 0.000s | |
00:00.171 FILE(repo-config) Read ~/.opam/repo/android/config in 0.000s | |
00:00.171 FILE(repo-config) Read ~/.opam/repo/default/config in 0.000s |
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 python2 | |
'''Use your webcam to open a QR code embedded URL with your default web browser.''' | |
from qrtools import QR | |
import webbrowser | |
myCode = QR() | |
myCode.decode_webcam(lambda data: webbrowser.open(data)) |
NewerOlder