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
/* SDLMain.m - main entry point for our Cocoa-ized SDL app | |
Initial Version: Darrell Walisser <dwaliss1@purdue.edu> | |
Non-NIB-Code & other changes: Max Horn <max@quendi.de> | |
Feel free to customize this file to suit your needs | |
*/ | |
#ifndef _macsupport_h_ | |
#define _macsupport_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
#import "macsupport.h" | |
/* Portions of CPS.h */ | |
typedef struct CPSProcessSerNum | |
{ | |
UInt32 lo; | |
UInt32 hi; | |
} CPSProcessSerNum; | |
extern OSErr CPSGetCurrentProcess( CPSProcessSerNum *psn); |
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
/* | |
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
#!/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
// 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) |
OlderNewer