As configured in my dotfiles.
start new:
tmux
start new with session name:
# bigdecoder.py, by [email protected], 2009-03-01 | |
# | |
# decoder for .BIG-format files utilized by Red Alert 3 and C&C: Zero Hours | |
# among others. .big is a trivial archival format. quite frankly, this is | |
# probably the simplest compound file format imaginable. | |
# | |
# this script is written for microsoft windows. it can probably be easily | |
# adapted for other platforms, but i haven't tried. | |
# | |
# file structure: |
# | |
# This piece of code is in the public domain. | |
# <[email protected]> | |
# | |
from datetime import datetime | |
def get_age(date): | |
'''Take a datetime and return its "age" as a string. | |
The age can be in second, minute, hour, day, month or year. Only the |
As configured in my dotfiles.
start new:
tmux
start new with session name:
/* | |
To test that the Linux framebuffer is set up correctly, and that the device permissions | |
are correct, use the program below which opens the frame buffer and draws a gradient- | |
filled red square: | |
retrieved from: | |
Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2) | |
http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2/qtopiacore-testingframebuffer.html | |
*/ |
--- growl.new/Plugins/Actions/SMS/GrowlSMSDisplay.m 2013-04-24 12:50:06.000000000 -0700 | |
+++ growl/Plugins/Actions/SMS/GrowlSMSDisplay.m 2013-04-24 12:38:47.000000000 -0700 | |
@@ -138,7 +138,7 @@ | |
CFDataRef postData = CFStringCreateExternalRepresentation(kCFAllocatorDefault, dataString, kCFStringEncodingUTF8, 0U); | |
CFURLRef clickatellURL = CFURLCreateWithString(kCFAllocatorDefault, CFSTR("https://api.clickatell.com/xml/xml"), NULL); | |
NSMutableURLRequest *post = [[NSMutableURLRequest alloc] initWithURL:(NSURL *)clickatellURL]; | |
- CFStringRef contentLength = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%u"), CFDataGetLength(postData)); | |
+ CFStringRef contentLength = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%lu"), CFDataGetLength(postData)); | |
// NSLog(@"SMS display: Sending data: %@", postData); |
#include <iostream> | |
#include <functional> | |
#include <queue> | |
// These includes are for later experimentation | |
#include <thread> | |
#include <atomic> | |
std::queue<std::function<void()>> funcs; | |
// "License": Public Domain | |
// I, Mathias Panzenböck, place this file hereby into the public domain. Use it at your own risk for whatever you like. | |
// In case there are jurisdictions that don't support putting things in the public domain you can also consider it to | |
// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it | |
// an example on how to get the endian conversion functions on different platforms. | |
#ifndef PORTABLE_ENDIAN_H__ | |
#define PORTABLE_ENDIAN_H__ | |
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!