Skip to content

Instantly share code, notes, and snippets.

use vec;
pub trait BitField {
fn get(&self, index: u8) -> bool;
fn set(&mut self, index: u8, value: bool);
fn ensure_size(&mut self, byte: u8);
}
pub struct U8BitField {
u8s: ~[u8],
global loader
extern kmain
; Multiboot!
MODULEALIGN equ 1<<0
MEMINFO equ 1<<1
FLAGS equ MODULEALIGN | MEMINFO
MAGIC equ 0x1BADB002
CHECKSUM equ -(MAGIC + FLAGS)
g++ -I include -g -O2 -c src/player.cpp -o src/player.o
src/player.cpp: In constructor ‘Player::Player()’:
src/player.cpp:6:30: error: class ‘Player’ does not have any field named ‘Rotation’
src/player.cpp:6:56: error: class ‘Player’ does not have any field named ‘Pos’
src/player.cpp:6:159: error: no matching function for call to ‘Entity::Entity()’
include/entity.h:14:5: note: candidates are: Entity::Entity(Vector3, Vector3, Vector3)
include/entity.h:8:1: note: Entity::Entity(const Entity&)
src/player.cpp: In constructor ‘Player::Player(float, Vector3, Vector3, std::string)’:
src/player.cpp:8:105: error: class ‘Player’ does not have any field named ‘Rotation’
src/player.cpp:8:124: error: class ‘Player’ does not have any field named ‘Pos’
#pragma once
#ifndef ENTITY_H
#define ENTITY_H
#include "vector3.h"
class Entity
{
public:
Vector3 Pos;
#pragma once
#ifndef BLOCK_H
#define BLOCK_H
class Block
{
public:
Block() {};
virtual Block *newBlock() {};
package main
import ("fmt"
"time")
func main() {
var t = time.LocalTime()
fmt.Println(t.Year)
}
data Expr = Expr Bool
| Conjunction Expr Expr
| Negation Expr
| Disjunction Expr Expr
| Implication Expr Expr
deriving (Eq, Show)
nnf :: Expr -> Expr
nnf (Expr expr) = Expr expr
nnf (Conjunction expr1 expr2) = Conjunction (nnf expr1) (nnf expr2)
data Expr = Expr Bool
| Conjunction Expr Expr
| Negation Expr
| Disjunction Expr Expr
| Implication Expr Expr
deriving (Eq, Show)
nnf :: Expr -> Expr
nnf (Expr expr) = Expr expr
nnf (Negation (Negation expr)) = nnf expr
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NetSFX
{
class Params
{
enum e_WaveType { Square, Saw, Sine, Noise };
/ldunn$ jekyll
Configuration from /home/ldunn/ldunn/_config.yml
Notice: for 10x faster LSI support, please install http://rb-gsl.rubyforge.org/
Building site: /home/ldunn/ldunn -> /home/ldunn/ldunn/_site
Running the classifier... this could take a while.
../usr/lib/ruby/1.8/matrix.rb:601:in `inverse_from': Not Regular Matrix (ExceptionForMatrix::ErrNotRegular)
from /usr/lib/ruby/1.8/matrix.rb:591:in `each'
from /usr/lib/ruby/1.8/matrix.rb:591:in `inverse_from'
from /usr/lib/ruby/1.8/matrix.rb:580:in `inverse'
from /var/lib/gems/1.8/gems/classifier-1.3.3/lib/classifier/extensions/vector.rb:96:in `SV_decomp'