Skip to content

Instantly share code, notes, and snippets.

@TacoSteemers
TacoSteemers / gist:5382459
Created April 14, 2013 12:03
Rust 0.6 crash event log
Log Name: Application
Source: Application Error
Date: 4/14/2013 1:55:24 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: taco-PC
Description:
@TacoSteemers
TacoSteemers / gist:5378038
Last active December 16, 2015 04:38
Adding author name/link to WP Vintage Camera theme. content.php for main page, and content-single.php for the one post view
Just before the tags:
...
<footer class="entry-meta">
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<span>Written by: <?php the_author_link(); ?></span>
...
or just before the date:
@TacoSteemers
TacoSteemers / cleanup.py
Created April 1, 2013 14:35
Small scipy/numpy/pyplot script to clean up a monochrome drawing and show the input and output side by side
import numpy
from scipy import misc
import matplotlib.pyplot as plt
if __name__ == "__main__":
input = 'input.png'
output = 'output.png'
# Editing
imIn = misc.imread(input)
@TacoSteemers
TacoSteemers / minimal_fork_test.c
Created October 23, 2012 19:10
Minimal Linux and Windows process spawn test
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef _WIN32
#include <process.h> /* Required for _spawnv */
#include <windows.h>
/* We make getpid() work in a similar
way on Windows as it does on Linux */
#define getpid() GetCurrentProcessId()
#endif