Skip to content

Instantly share code, notes, and snippets.

View vadixidav's full-sized avatar
🦀
Rust ❤️

Geordon Worley vadixidav

🦀
Rust ❤️
  • Austin, TX
  • 22:20 (UTC -05:00)
View GitHub Profile
$ iverilog -g2012 -t null -I src/ src/core0.sv
src/core0.sv:7: syntax error
src/core0.sv:5: Errors in port declarations.
src/core0.sv:21: syntax error
src/core0.sv:21: error: Invalid module instantiation
src/core0.sv:22: error: Invalid module instantiation
src/core0.sv:23: error: Invalid module instantiation
// Iterate forwards weaving between messages and adding instances to the vec
loop {
let ins = instances.back().unwrap().borrow().next_instance();
if let Some(i) = ins {
instances.push_back(i);
}
}
// Iterate forwards weaving between messages and adding instances to the vec
while let Some(i) = {instances.back().unwrap().borrow().next_instance()} {
instances.push_back(i);
}
use std::rc::Rc;
use std::cell;
use std::ops::{Deref, DerefMut};
pub struct SCell<T>(Rc<cell::RefCell<T>>);
pub struct Ref<'a, T: 'a>(cell::Ref<'a, T>);
pub struct RefMut<'a, T: 'a>(cell::RefMut<'a, T>);
impl<T> SCell<T> {
Category:
Cocategory:
nothing ~ nothing is bad
everything ~ everything is good
nothing ~ nothing is good
Category:
Cocategory:
good ~ everything is good
bad ~ nothing is bad
good ~ nothing is good
extern crate rand;
mod text;
fn main() {
use rand::SeedableRng;
let mut lex = text::Lexicon::new(rand::Isaac64Rng::from_seed(&[1, 2, 3, 4]));
let nowhere = lex.source("nowhere".to_string());
let nobody = lex.author(nowhere.clone(), "nobody".to_string());
let message = lex.tell(nowhere.clone(), nobody, "nothing".to_string());
[package]
name = "seifmios"
description = "A chatbot"
repository = "https://github.com/mraof/seifmios"
version = "0.0.0"
authors = ["Mraof <mraof@mraof.com>", "Geordon Worley <vadixidav@gmail.com>"]
keywords = ["chat", "bot", "chatbot", "seifmios"]
license = "BSD-2-Clause"
[depdendencies]
#!/bin/ruby
require 'fileutils'
def show_usage
STDERR.puts "usage: vbuild [build|run|buildrun] topmodule_path"
exit 1
end
# Sanity check
show_usage if ARGV.length < 2
#!/bin/ruby
require 'fileutils'
def show_usage
STDERR.puts "usage: vbuild [build|run|buildrun] topmodule_path"
exit 1
end
# Sanity check
show_usage if ARGV.length < 2
#!/bin/bash
for var in "$@"
do
echo "Appending directory \"/mnt/external/${var}\"" to \"$(realpath "${var}")\"
rsync -a --progress "/mnt/external/${var}" "./"
done