This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="YourProjectName" default="build" basedir="."> | |
<description> | |
YOUR DESCRIPTION GOES HERE | |
</description> | |
<!-- Properties --> | |
<property name="src" location="src/"/> | |
<property name="bin" location="bin/"/> | |
<target name="init"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm http GET https://registry.npmjs.org/passport-facebook | |
npm http GET https://registry.npmjs.org/jade | |
npm http GET https://registry.npmjs.org/passport-twitter | |
npm http GET https://registry.npmjs.org/mongoose | |
npm http GET https://registry.npmjs.org/connect-mongo | |
npm http GET https://registry.npmjs.org/component-builder | |
npm http GET https://registry.npmjs.org/string-to-js/0.0.1 | |
npm http GET https://registry.npmjs.org/component-stylus-plugin | |
npm http GET https://registry.npmjs.org/commander | |
npm http GET https://registry.npmjs.org/component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE users ( | |
username VARCHAR(20) NOT NULL PRIMARY KEY, | |
password CHAR(40) NOT NULL, | |
firstname VARCHAR(20) NOT NULL, | |
lastname VARCHAR(20) NOT NULL, | |
email VARCHAR(20) NOT NULL, | |
is_director CHAR(1) DEFAULT '0' | |
); | |
CREATE INDEX fullname ON users(firstname, lastname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple Binary Tree implementation in Rust. | |
// This snippet fails to compile with the given message: | |
// | |
// Compilation started at Sat Jan 11 22:31:53 | |
// rustc --test binarytree.rs | |
// binarytree.rs:61:26: 61:32 error: mismatched types: expected `K` but found `K` (expected type parameter but found type parameter) | |
// binarytree.rs:61 if key < node_k { | |
// ^~~~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// A LashToken is a token in Lash. Every token has an associated value. | |
/// | |
use std::io; | |
use std::result; | |
pub enum LashToken { | |
Identifier(~str), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// A LashToken is a token in Lash. Every token has an associated value. | |
/// | |
use std::io; | |
use std::str; | |
#[deriving(Show, Eq, Clone)] | |
pub enum LashToken { | |
Identifier(~str), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// A LashToken is a token in Lash. Every token has an associated value. | |
/// | |
use std::io; | |
use std::str; | |
#[deriving(Show, Eq, Clone)] | |
pub enum LashToken { | |
Identifier(~str), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// A LashToken is a token in Lash. Every token has an associated value. | |
/// | |
use std::io; | |
use std::str; | |
#[deriving(Show, Eq, Clone)] | |
pub enum LashToken { | |
Identifier(~str), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fmt; | |
#[deriving(Show, Clone)] | |
pub enum LinkedList<T> { | |
Node(T, ~LinkedList<T>), | |
Nil | |
} | |
impl<T: Clone> LinkedList<T> { | |
pub fn new() -> LinkedList<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct RopeNode<T> { | |
left: Option<~RopeNode<T>>, | |
right: Option<~RopeNode<T>>, | |
weight: uint, | |
balance_factor: int, | |
height: int, | |
data: Option<~[T]> | |
} | |
pub struct Rope<T> { |
OlderNewer