Skip to content

Instantly share code, notes, and snippets.

View rubber-duck's full-sized avatar

Rafael Munitić rubber-duck

  • atena.tech
  • Zagreb, Croatia
  • 04:30 (UTC +02:00)
View GitHub Profile
Huuk
Side Menu
my profile -> User Profile
Map
chose filters -> Huuk Filters
switch to list view -> Huuk List View
create -> Huuk Create
tap on marker -> Huuk Details Over Map
tap on promoted place marker -> Promoted Place Details
@rubber-duck
rubber-duck / SketchSystems.spec
Last active January 25, 2021 07:52
Huuk Explorer
Huuk Explorer
new huuk -> Huuk Creation
select huuk -> Huuk Details
Huuk Details
join -> Waiting For Approval
if rejected -> Rejected
Huuk Creation
create -> Huuk Explorer
cancel -> Huuk Explorer
import bmesh
import bpy
bm = bmesh.new()
bm.from_mesh(bpy.context.object.data)
bm.faces.ensure_lookup_table()
bm.verts.ensure_lookup_table()
new_face = bm.faces[0].copy()
rust: task failed at 'index out of bounds: the len is 6 but the index is 7', /home/wiseen/SDK/rust/src/libstd/str.rs:1561
/home/wiseen/Work/srsc/libsyntax/../../../../../usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4b)[0x7f97a39a414b]
/home/wiseen/Work/srsc/libsyntax/../../../../../usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(+0x2b899)[0x7f97a39b5899]
/home/wiseen/Work/srsc/libsyntax/../../../../../usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(upcall_fail+0x1a8)[0x7f97a39a61f8]
/home/wiseen/Work/srsc/libsyntax/../../../../../usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-6c65cf4b443341b1-0.7-pre.so(_ZN3sys13begin_unwind_16_89e154cd09156716_07preE+0x2e4)[0x7f97a3ceab24]
/home/wiseen/Work/srsc/libsyntax/../../../../../usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-6c65cf4b443341b1-0.7-pre.so(+0x6c88e)[0x7f97a3c4688e]
/home/wiseen/Work/srsc/libsyntax/../../../../../usr/local/lib/rustc/x86_64-unknown-linux-g
use std::vec;
use std::str;
use std::char;
use std::iterator;
use std::num::strconv;
use token;
struct Scanner<'self> {
source: &'self str,
next: uint,
struct Foo<'self>
{
foo: &'self fn()
}
impl<'self> Foo<'self> {
fn foo(&self) {
println("Method foo");
}
}
#[deriving(Clone)]
struct Foo<'self>
{
foo: &'self str
}
fn main() {
}
struct Foo {
bar: ~[int]
}
fn main() {
let mut foo = Foo { bar: ~[0i] };
foo.bar = append_one(foo.bar, 1);
}
pub use self::_vec2::vec2;
pub use self::_vec3::vec3;
pub use self::_vec4::vec4;
macro_rules! impl_vec_dot(
($x: ident, $y: ident, $z: ident, $w: ident) => ( x.$x * y.$x + x.$y * y.$y + x.$z * y.$z + x.$w * y.$w );
($x: ident, $y: ident, $z: ident) => ( x.$x * y.$x + x.$y * y.$y + x.$z * y.$z );
($x: ident, $y: ident) => ( x.$x * y.$x + x.$y * y.$y );
)
macro_rules! define_vec (
($vect: ident, $vecmod: ident, $compt: ty, $($components: ident)+) => (
mod $vecmod {
#[deriving(ToStr)]
pub struct $vect { $($components : $compt),+ }
impl $vect
{
#[inline(always)]
pub fn new($($components: $compt),+) -> $vect {