Skip to content

Instantly share code, notes, and snippets.

View bitbrain's full-sized avatar
⚒️
Forging an RPG

miguel bitbrain

⚒️
Forging an RPG
View GitHub Profile
@bitbrain
bitbrain / new
Created February 17, 2014 02:16
Scanning dependencies of target particles
[ 44%] Building C object examples/CMakeFiles/particles.dir/particles.c.o
[ 46%] Building C object examples/CMakeFiles/particles.dir/__/deps/tinycthread.c.o
[ 48%] Building C object examples/CMakeFiles/particles.dir/__/deps/getopt.c.o
Linking C executable particles
/usr/bin/ld: CMakeFiles/particles.dir/__/deps/tinycthread.c.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_mutexattr_settype@@GLIBC_2.2.5' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [examples/particles] Error 1
#include "LinkedList.h"
#include <stdlib.h>
#include <stdio.h>
void addFrontLL(LL *list, int number)
{
if (list->head != NULL)
{
node *newNode;
newNode = malloc(sizeof(node));
/home/miguel/Buildsystem/Install/springbok/lib/libSpringbok.a(SoundInstance.cpp.o): In function `SoundInstance::SoundInstance(SoundSource const&, float, float, float)':
SoundInstance.cpp:(.text+0x2c): undefined reference to `alGenSources'
SoundInstance.cpp:(.text+0x52): undefined reference to `alSourcei'
SoundInstance.cpp:(.text+0x73): undefined reference to `alSourcef'
SoundInstance.cpp:(.text+0x93): undefined reference to `alSourcef'
SoundInstance.cpp:(.text+0xb4): undefined reference to `alSourcef'
SoundInstance.cpp:(.text+0xd5): undefined reference to `alSourcef'
SoundInstance.cpp:(.text+0x106): undefined reference to `alSource3f'
SoundInstance.cpp:(.text+0x113): undefined reference to `alSourcePlay'
SoundInstance.cpp:(.text+0x118): undefined reference to `alGetError'
$('.enterButton').each(function() {
var button = $(this);
button.keypress(function(e){
if(e.keyCode==13)
button.click();
});
});
/* twttrfy, jquery plugin to fetch twitter data on the fly
*
* Author: Miguel Gonzalez <[email protected]>
* Version: 1.0
* Since: 1.0
*/
(function($) {
$.fn.extend({
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<?php
/**
* Script which generates valid JSON for the website in order to display all current members
*
* @author Miguel Gonzalez <[email protected]>
* @since 1.0
* @version 1.0
*/
// Connect to phpBB
<?php
function specialSort($a, $b) {
return $b['user_id'][1] - $a['user_id'][1];
}
usort($arr, 'specialSort');
?>
function generateCelledList($data, $func, $columns) {
echo '<div class="table">';
echo '<div class="row">';
for ($i = 0; $i < count($data); $i++) {
if ($i % $columns == 0 && $i > 0) {
echo '</div><div class="row">';
}
package de.bitbrain.guice;
import java.util.HashMap;
import java.util.Map;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.name.Named;
public class StateHandler {