Skip to content

Instantly share code, notes, and snippets.

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

Geordon Worley vadixidav

🦀
Rust ❤️
  • Austin, TX
  • 22:13 (UTC -05:00)
View GitHub Profile
///Apply lorentz forces between two PhysicsParticle objects based on quanta, position, and velocity.
///
///Example:
///```rust
///let mut a: BasicParticle<Cartesian3<f64>, f64>;
///#let mut b: BasicParticle<Cartesian3<f64>, f64>;
///lorentz(&a, &b, 1.0);
///a.advance(1.0);
///#b.advance(1.0);
///```
$ yaourt -Sa gcc-multilib-x32
==> Downloading gcc-multilib-x32 PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
x gcc-ada.install
x gcc-fortran.install
x gcc-go.install
x gcc-libs.install
x gcc.install
Compiling collenchyma-nn v0.2.1
/home/vadix/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.2.1/src/frameworks/cuda/mod.rs:126:132: 126:148 error: mismatched types:
expected `*mut cudnn_sys::Struct_cudnnConvolutionStruct`,
found `*mut cudnn_sys::Struct_cudnnTensorStruct`
(expected enum `cudnn_sys::Struct_cudnnConvolutionStruct`,
found enum `cudnn_sys::Struct_cudnnTensorStruct`) [E0308]
/home/vadix/.cargo/registry/src/github.com-88ac128001ac3a9a/collenchyma-nn-0.2.1/src/frameworks/cuda/mod.rs:126 let workspace_size_fwd = API::get_convolution_forward_workspace_size(*CUDNN.id_c(), algo_fwd, *filter_desc.id_c(), *src_desc.id_c(), *conv_desc.id_c(), *dest_desc.id_c()).unwrap();
^~~~~~~~~~~~~~~~
/home/vadix/.cargo/registry/src/githu
attempted access of field `energy` on type `&zoom::vector::space::Box<bot::Bot>`, but no field with that name was foundat line 160 col 38 in src/main.rs
#[derive(Clone)]
pub struct Bot {
pub bot_brain: mli::Mep<Ins, R, i64, fn(&mut Ins, &mut R), fn(&Ins, i64, i64) -> i64>,
pub node_brain: mli::Mep<Ins, R, i64, fn(&mut Ins, &mut R), fn(&Ins, i64, i64) -> i64>,
pub final_brain: mli::Mep<Ins, R, i64, fn(&mut Ins, &mut R), fn(&Ins, i64, i64) -> i64>,
pub energy: i64,
pub signal: i64,
pub memory: [i64; finalbrain::TOTAL_MEMORY],
$ rustc -vV
rustc 1.6.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.6.0
#!/bin/bash
for var in "$@"
do
echo "Syncing directory \"$(realpath "${var}")\" to \"/mnt/external/${var}\""
rsync -a --delete --progress "${var}" "/mnt/external/"
done
sudo btrfs subvolume snapshot -r /mnt/external/ "/mnt/external/snapshot/$(date +%F)"
#!/bin/bash
for var in "$@"
do
echo "Appending directory \"/mnt/external/${var}\"" to \"$(realpath "${var}")\"
rsync -a --progress "/mnt/external/${var}" "./"
done
#!/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
[package]
name = "seifmios"
description = "A chatbot"
repository = "https://github.com/mraof/seifmios"
version = "0.0.0"
authors = ["Mraof <[email protected]>", "Geordon Worley <[email protected]>"]
keywords = ["chat", "bot", "chatbot", "seifmios"]
license = "BSD-2-Clause"
[depdendencies]