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 |
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
| 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
| #[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
| 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
| 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
| 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
| import gi | |
| gi.require_version('Gtk', '3.0') | |
| from gi.repository import Gtk | |
| from gi.repository import GLib | |
| i=0 | |
| def func(obj): | |
| global i | |
| win.set_title("i: %d" % i) |
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 time | |
| import subprocess as sp | |
| enc = 'UTF-8' | |
| p = sp.Popen(['dialog', '--gauge', 'hello', '6', '75', '0'], stdin=sp.PIPE) | |
| for i in range(0, 100): | |
| p.stdin.write(bytes(str(i)+"\n", enc)) | |
| p.stdin.flush() |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src='js/jquery.js'></script> | |
| <script src='js/bicubicInterpolation.js'></script> <!-- https://github.com/sukhoi1/ie-bicubic-img-interpolation-plugin --> | |
| <script type='text/javascript'> | |
| $(function() { | |
| var ua = window.navigator.userAgent; | |
| var msie = ua.indexOf('MSIE '); |
NewerOlder