This file contains hidden or 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 bpy | |
| from bpy import context | |
| import mathutils | |
| from mathutils import Vector,Quaternion,Matrix | |
| import math | |
| #obj = bpy.data.objects["Cube"] # particular object by name | |
| obj = bpy.context.scene.objects.active # active object | |
| # setup whatever matrix |
This file contains hidden or 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::cell::RefCell; | |
| use std::rc::{Rc, Weak}; | |
| type RefBox<T> = RefCell<Box<T>>; | |
| trait Control { | |
| fn id(&self) -> &Option<String>; | |
| fn set_id(&mut self, id: Option<String>); | |
| fn parent(&self) -> &Option<Weak<RefBox<dyn Control>>>; |
This file contains hidden or 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
| public class Foo | |
| { | |
| // ... | |
| public void Bar() | |
| { | |
| while(BazBaz() | |
| && BarBar()) | |
| { | |
| // The && under the while are |
This file contains hidden or 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
| #[derive(Clone, Debug)] | |
| pub struct Point(f32, f32); | |
| #[derive(Clone, Debug)] | |
| pub struct ValidBounds { | |
| min: Point, | |
| max: Point | |
| } | |
| #[derive(Clone, Debug)] |
This file contains hidden or 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::collections::HashMap; | |
| use std::error::Error; | |
| use zbus::{Connection, zvariant}; | |
| use zbus::zvariant::Value; | |
| use zbus::dbus_proxy; | |
| use async_std::stream::StreamExt; | |
| #[dbus_proxy( | |
| interface = "org.freedesktop.portal.FileChooser", | |
| default_service = "org.freedesktop.portal.Desktop", |
This file contains hidden or 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
| mod core { | |
| use generational_arena::{Arena, Index}; | |
| use qcell::LCell; | |
| use qcell::LCellOwner; | |
| use queues::Queue; | |
| use std::marker::PhantomData; | |
| use std::rc::Rc; | |
| #[derive(PartialEq)] | |
| pub enum KeyCode { |
This file contains hidden or 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
| # Lines configured by zsh-newuser-install | |
| HISTFILE=~/.histfile | |
| HISTSIZE=1000 | |
| SAVEHIST=1000 | |
| bindkey -e | |
| # End of lines configured by zsh-newuser-install | |
| # The following lines were added by compinstall | |
| zstyle :compinstall filename '~/.zshrc' | |
| autoload -Uz compinit |
OlderNewer