Skip to content

Instantly share code, notes, and snippets.

View Zetaeta's full-sized avatar

Daniel Mulcahy Zetaeta

View GitHub Profile
@Zetaeta
Zetaeta / XResourcesToKonsole.rb
Created October 26, 2012 22:45
Converts XResources files containing terminal colours to Konsole colorscheme files. Does not support transparency.
#!/usr/bin/ruby
DEFAULT_BACKGROUND = 0x1C1C1C;
DEFAULT_FOREGROUND = 0xDCDCDC;
def main
colours = []
hasBackground = false
hasForeground = false
#include <string>
#include <iostream>
#include <string.h>
#include <sstream>
#include <errno.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#ifndef SCHEDULER_HPP
#define SCHEDULER_HPP
#include <pthread.h>
#include <string>
#include <queue>
#include <tuple>
#ifndef SCHEDULER_SIMPLE_
@Zetaeta
Zetaeta / gist:3949232
Created October 24, 2012 22:06
Clang run script.
"/usr/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name NetworkServer.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.22.0.20120323 -momit-leaf-frame-pointer -g -sys-header-deps mc___server-NetworkServer.o -D "HAVE_CONFIG_H" -O0 -Wall -Wextra -Werror -Wno-error=unused-variable -Wno-error=unused-parameter -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 194 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -x c++ NetworkServer-SWX0Sh.cpp
@Zetaeta
Zetaeta / gist:3949224
Created October 24, 2012 22:04
Preprocessed source
This file has been truncated, but you can view the full file.
# 1 "src/network/NetworkServer.cpp" 1
#if 0 /* expanded by -frewrite-includes */
#include <string>
#endif /* expanded by -frewrite-includes */
# 1 "/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/string" 1 3
// Components for manipulating sequences of characters -*- C++ -*-
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
// 2005, 2006, 2007, 2009, 2010, 2011
#ifndef MINECRAFTLAUNCHER_HPP
#define MINECRAFTLAUNCHER_HPP
#include <QMainWindow>
namespace Launcher {
class MinecraftLauncher : public QMainWindow
{
Q_OBJECT
public:
#ifndef MINECRAFTLAUNCHER_HPP
#define MINECRAFTLAUNCHER_HPP
#include <QMainWindow>
namespace Launcher {
class MinecraftLauncher : public QMainWindow
{
Q_OBJECT
public:
if (evaluate() == true) {
return true;
} else if (evaluate() == false) {
return false;
} else if (evaluate() == fileNotFound) {
return fileNotFound;
}