Skip to content

Instantly share code, notes, and snippets.

@JohannesMP
JohannesMP / dabblet.css
Created May 21, 2013 14:19
Border Image Test
/**
* Border Image Test
*/
* {
font-family: arial;
}
.border-wrapper {
width: 50%;
@JohannesMP
JohannesMP / dabblet.css
Created May 21, 2013 14:35
Border Image Test
/**
* Border Image Test
*/
* {
font-family: arial;
}
.border-wrapper {
width: 50%;
@JohannesMP
JohannesMP / dabblet.css
Created May 22, 2013 12:20
Image size test
/**
* Image size test
*/
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
@JohannesMP
JohannesMP / dabblet.css
Created May 22, 2013 12:21
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(20deg, #bbb, #fff);
min-height: 500px;
@JohannesMP
JohannesMP / dabblet.css
Created June 4, 2013 10:35
Pagination Styling
/**
* Pagination Styling
*/
.wrapper {
background-color: #ccc;
height: 400px;
margin: 50px 20px;
}
@JohannesMP
JohannesMP / dabblet.css
Created June 4, 2013 10:51
Pagination Styling
/**
* Pagination Styling
*/
.wrapper {
background-color: #ccc;
height: 400px;
margin: 50px 20px;
}
// 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); } }
solution "SDL2_Test"
configurations { "debug", "release" }
location("make/" .. os.get() .. "/")
targetdir("bin/" .. os.get() .. "/%{cfg.buildcfg}/")
objdir("obj/" .. os.get() .. "/%{cfg.buildcfg}/")
project "sdl2_test"
kind "WindowedApp"
language "C"
# 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