Skip to content

Instantly share code, notes, and snippets.

configure:2096: $? = 0
configure:2103: gcc -m32 -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
configure:2106: $? = 0
configure:2113: gcc -m32 -V >&5
gcc: '-V' must come at the start of the command line
Sentinel::Command.new(/incidents/, "Lists all of the incidents that Sentinel knows about") do |matches, message|
opts = {
service_id: Sentinel::DB[:room_services]
.join(:rooms, :id => :room_id)
.where(rooms__room_id: message.room_id)
.select(:service_id)
}
records = Sentinel::DB[:incidents].where(opts).order(created_at)
loop records do |record|
message.say Yajil::Encoder.encode(record)
@ericfode
ericfode / gist:3286021
Created August 7, 2012 14:54 — forked from akaptur/gist:3279183
quicksort in C
#include <stdio.h>
#include <stdlib.h>
void quicksort(int *array, int length);
void swap(int *a, int *b);
void print(int *array, int length);
int main()
{
import System.Random
import Wumpus.Core
import Wumpus.Core.Colour
import Wumpus.Drawing.Shapes
import Wumpus.Basic.Kernel
import System.Directory
makeRandomPoint :: (RandomGen g, Random f) => (f , f) -> g -> ((f,f),g)
makeRandomPoint limit gen =
@ericfode
ericfode / sentences.c
Created May 7, 2012 00:46 — forked from anonymous/sentences.c
c program
#include <stdio.h>
#include <string.h>
//Declaring variables..
int numOfSentences;
int numOfWords;
char word[1]; //temp variable to read in stuff from the file and check it.
char articles[10];
#include "stdlib.h"
#include "stdio.h"
#include "malloc.h"
typedef struct genePart* GenePart;
typedef struct geneData* GeneData;
typedef struct geneNode* GeneNode;
typedef u_char byte;
typedef struct bruteTreeTrainer* BruteTreeTrainer;
typedef struct geneDataSlice* GeneDataSlice;
typedef struct trainingData* TrainingData;