Skip to content

Instantly share code, notes, and snippets.

// A proof of concept of letting you iterate over a HashMap.
class Map[String, Real3]
{
// Private Data holders that shold not be touched
var PRIVATE_Hash : HashMap[String, Real3] = new HashMap[String, Real3](); // holds our data
var PRIVATE_Array : Array[String] = new Array[String](); // used to iterate
// Used by ForEach
var All : MapRange[String, Real3] { get { return new MapRange[String, Real3](this); } }
# SDL2.framework is in the correct location:
$ ls /Library/Frameworks
AEProfiling.framework AudioMixEngine.framework PluginManager.framework iTunesLibrary.framework
AERegistration.framework NyxAudioAnalysis.framework SDL2.framework
# Frameworks direction is included in path (Note: shouldn't actually matter)
$ echo $PATH
/Users/Jo/_UTIL:/Library/Frameworks:/usr/local/lib:/usr/local/include:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
# Source file for a simple sdl2 program
#!/bin/bash
# located in root
# cd into project directory
cd ${0%/*}
# compile library
clang++ -Wall -dynamiclib lib_src/myprint.cpp -o myprint.dylib
# compile main object file
#!/bin/bash
#details: this file is intended to be called from inside generate_csv.sh
#usage: ./file_info.sh <Path to root> <Path to file> <blank lines int> <comment lines int> <code lines int>
#example "<ABSOLUTE_PATH>/../../"
OFFSET=$1 # how to get to the directory to search
#example:'Source/Engine/main.cpp'
SOURCEFILE=${2//###/ }
dyld: Symbol not found: __al_mangled_main
Referenced from: /usr/local/lib/liballegro_main.5.0.dylib
Expected in: flat namespace
in /usr/local/lib/liballegro_main.5.0.dylib
Trace/BPT trap: 5
Process: FLAT [4554]
Path: /Dropbox/*/FLAT
Identifier: FLAT
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [4533]
Date/Time: 2012-06-12 14:25:04.885 -0500
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
Allegro initialized!
Display created successfully.
Couldn't find image
Couldn't find image
Couldn't find image
Couldn't find image
Couldn't find image
Couldn't find image
Couldn't find image
Couldn't find image
@JohannesMP
JohannesMP / dabblet.css
Created May 16, 2013 15:26
Template: aspect-ratio locked Divs floating to center with outline
/**
* Template: aspect-ratio locked Divs floating to center with outline
*/
.container {
text-align: center;
}
.image-wrapper {
display: inline-block;
@JohannesMP
JohannesMP / dabblet.css
Created May 16, 2013 17:12
This should be private.
/**
* This should be private.
* Private: true
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@JohannesMP
JohannesMP / dabblet.css
Created May 16, 2013 18:09
Template: aspect-ratio locked Divs floating to center with outline
/**
* Template: aspect-ratio locked Divs floating to center with outline
*/
body {
margin: 80px;
padding: 0;
}
.image-grid {
text-align: center;