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 was mirrored from the snapshot of earthserver.com available on archive.org | |
-------------------------------------------------------------------------------- | |
Setting up a modern C++ development environment on Linux with Clang and Emacs | |
I am an independent game developer and this is my personal wiki. | |
Please feel free to email hello@earthserver.com, and to follow @Earthserver | |
(Redirected from Setting up a C++11 development environment on Linux with Clang and 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
/* | |
Referenced from: | |
http://web.archive.org/web/20120110153227/http://weegen.home.xs4all.nl/eelis/analogliterals.xhtml | |
*/ | |
#ifndef ANALOGLITERALS_HPP | |
#define ANALOGLITERALS_HPP | |
namespace analog_literals { |
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
// | |
// IntToUTF8String.cpp | |
// The ASCII Project | |
// | |
// Created by Yamamushi on 6/20/13. | |
// Copyright (c) 2013 TAP. All rights reserved. | |
// | |
#include <string> |
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
// Bresenham3D | |
// | |
// A slightly modified version of the source found at | |
// http://www.ict.griffith.edu.au/anthony/info/graphics/bresenham.procs | |
// Provided by Anthony Thyssen, though he does not take credit for the original implementation | |
// | |
// It is highly likely that the original Author was Bob Pendelton, as referenced here | |
// | |
// ftp://ftp.isc.org/pub/usenet/comp.sources.unix/volume26/line3d | |
// |
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
// | |
// IntToUTF8String.cpp | |
// Created by Jonathan Rumion on 3/4/13. | |
// Copyright (c) 2014. | |
// | |
// Consider this BSD licensed for all intents and purposes | |
// You are free to modify and use this as you wish without | |
// Attribution (though it would be appreciated it is not necessary). | |
// |
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
// Taken from | |
// https://stackoverflow.com/questions/26916952/go-retrieve-a-string-from-between-two-characters-or-other-strings/62555190#62555190 | |
func GetStringInBetweenTwoString(str string, startS string, endS string) (result string,found bool) { | |
s := strings.Index(str, startS) | |
if s == -1 { | |
return result,false | |
} | |
newS := str[s+len(startS):] | |
e := strings.Index(newS, endS) |
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/bash | |
while getopts o:y:s:q: option | |
do | |
case "${option}" | |
in | |
o) OUTPUT=${OPTARG};; | |
y) YOUTUBE=${OPTARG};; | |
s) STEMS=${OPTARG};; | |
q) QUALITY=${OPTARG};; |
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
/* | |
I use the following to convert my audio source into ogg/opus : | |
avconv -i source.mp4 -f wav - | opusenc --bitrate 256 - output.opus | |
On OSX avconv is in libav, and opusenc is in opus-tools | |
$ brew install libav opus-tools |
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 urllib2 | |
import json | |
import time | |
req = urllib2.Request("https://www.kickstarter.com/projects/search.json?search=&term=Dual%20Universe") | |
opener = urllib2.build_opener() | |
f = opener.open(req) | |
response = json.loads(f.read()) |
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 -xe | |
API_KEY="YOUR_API_KEY_GOES_HERE" | |
FPS="10" | |
VLC_PATH="/Applications/VLC.app/Contents/MacOS/VLC" | |
# I don't know how this'll behave on multimon, so you might want to hard-code. | |
# INRES='1440x900' | |
INRES=$(osascript -e 'tell application "Finder" to get bounds of window of desktop'|sed 's/, /x/g'|cut -f3- -dx) | |
OUTRES='1280x800' | |
# You can change this to record microphone or something else, from man soxformat (under coreaudio): |
NewerOlder