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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace MethodHiding | |
{ | |
class Program | |
{ |
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
. PRNTST | |
. Output a null-terminated string to the console. | |
. Args: | |
. 1. Address of output string, WORD | |
. 2. Max Length, WORD | |
. 3. Device ID, BYTE | |
PRNTST START | |
STS BASADD | |
LDA @BASADD | |
STA STROUT |
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
extern crate ncurses; | |
use ncurses as nc; | |
fn main() { | |
nc::initscr(); | |
nc::start_color(); | |
if nc::can_change_color() { | |
nc::printw("Can change! :)"); | |
} |
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
import curses | |
def main(stdscr): | |
curses.start_color() | |
curses.use_default_colors() | |
for i in range(0, curses.COLORS): | |
curses.init_pair(i+1, i, -1) | |
colorno = 0 |
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
trait Fooable { fn foo(&mut self); } | |
trait Barable { fn bar(&mut self); } | |
struct StructA; | |
struct StructB; | |
impl Fooable for StructA { fn foo(&mut self) {} } | |
impl Barable for StructA { fn bar(&mut self) {} } | |
impl Fooable for StructB { fn foo(&mut self) {} } |
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
#![feature(globs)] | |
extern crate ncurses; | |
use ncurses::*; | |
fn main() | |
{ | |
initscr(); |
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::os; | |
use std::io::fs; | |
use std::io::fs::PathExtensions; | |
const LIB_PATH_REL: &'static str = "../libs/libtcod"; | |
fn main() { | |
let out_dir = os::getenv("OUT_DIR").unwrap(); | |
let dst = Path::new(out_dir.clone()); | |
let src = Path::new(LIB_PATH_REL); |
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
~/dev $ mkdir sandbox | |
~/dev $ cd sandbox | |
~/dev/sandbox $ virtualenv --python=python3 venv | |
Running virtualenv with interpreter /usr/local/bin/python3 | |
Using base prefix '/usr/local/Cellar/python3/3.4.0_1/Frameworks/Python.framework/Versions/3.4' | |
New python executable in venv/bin/python3.4 | |
Also creating executable in venv/bin/python | |
Installing setuptools, pip...done. | |
~/dev/sandbox $ source venv/bin/activate | |
(venv)~/dev/sandbox $ pip install pandas |
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
# libtcod makefile | |
# to build debug version, run "make -f makefile-linux debug" | |
# to build release version, run "make -f makefile-linux release" | |
SRCDIR=src | |
INCDIR=include | |
#dependencies | |
# SDL | |
SDL_FLAGS=`sdl-config --cflags` | |
SDL_LIBS=`sdl-config --libs` |
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
extern crate syntax; | |
extern crate rustc; | |
use syntax::diagnostic::SpanHandler; | |
use syntax::codemap::Span; | |
use syntax::ast::{Item, Item_}; | |
struct StructPkg { | |
pub name: String, | |
pub def: Item, | |
pub impls: Vec<Item> |
OlderNewer