Skip to content

Instantly share code, notes, and snippets.

@darth-cheney
darth-cheney / SheetUtil.js
Created October 17, 2019 15:08
Possible Sheet Frame Stuff
import {Component} from './Component';
import {h} from 'maquette';
class ESheet extends Component {
constructor(props, ...args){
super(props, ...args);
// Component-specific properties
this.cursorIndex = [0, 0];
this.currentFrame = null;
@darth-cheney
darth-cheney / output.txt
Created October 17, 2019 03:54
GToolkit Terminal Output
[Glutin] OpenGL Headless Context: ContextBuilder { gl_attr: GlAttributes { sharing: None, version: Latest, profile: Some(Core), debug: false, robustness: TryRobustNoResetNotification, vsync: false }, pf_reqs: PixelFormatRequirements { hardware_accelerated: Some(true), color_bits: Some(24), float_color_buffer: false, alpha_bits: Some(8), depth_bits: Some(24), stencil_bits: Some(8), double_buffer: Some(true), multisampling: None, stereoscopy: false, srgb: true, release_behavior: Flush, x11_visual_xid: None } }
[Glutin] Primary monitor: MonitorHandle { inner: X(MonitorHandle { id: 63, name: "eDP-1", dimensions: (1920, 1080), position: (0, 0), primary: true, hidpi_factor: 1.0, rect: AaRect { x: 0, y: 0, width: 1920, height: 1080 }, video_modes: [VideoMode { size: (1920, 1080), bit_depth: 24, refresh_rate: 60, native_mode: 71, monitor: None }, VideoMode { size: (1920, 1080), bit_depth: 24, refresh_rate: 120, native_mode: 72, monitor: None }, VideoMode { size: (1920, 1080), bit_depth: 24, refresh_rate: 120, native_
@darth-cheney
darth-cheney / cocoa-class-spec-creator.st
Created October 9, 2018 20:18
Pharo Cocoa Bridgesupport Class Spec Creator
"
Cocoa Framework Class Specification Loader
------------------------------------------
If you execute all of the following script
(highlight and select 'doIt'), it will
create several classes based on the input XML.
These are not Cocoa class proxies, but rather
classes whose instances can eventually be used
to create such proxy classes -- we hope!
@darth-cheney
darth-cheney / bltextexample.st
Created March 19, 2017 18:23
Stack Trace Report for BlTextElement example
SpText(Object)>>doesNotUnderstand: #lockDuring:
BrSingleLineTextParagraph(BrTextParagraph)>>measureOn:
BlTextElement>>onMeasure:
BlTextElement(BlElement)>>measure:
BlBasicLayout(BlLayout)>>measureChild:parentSpec:widthUsed:heightUsed:
[ :each |
self
measureChild: each
parentSpec: anExtentSpec
widthUsed: 0
@darth-cheney
darth-cheney / dabblet.css
Last active November 28, 2016 23:25
Untitled
.adder {
color: white;
text-align: center;
display: block;
position: relative;
padding: 10px;
border: 1px solid rgba(100, 100, 100, 0.4);
width: calc(1em + 10px);
height: calc(1em + 10px);
border-radius: 5px;
.slider-container {
width: 300px;
min-height: 50px;
}
.slider-bar {
display: block;
position: relative;
width: 100%;
height: 5px;
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
@darth-cheney
darth-cheney / dabblet.css
Created December 10, 2015 19:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#logo {
display: flex;
width: 20rem;
height: 20rem;
text-align: center;
background-color: purple;
justify-content: center;
@darth-cheney
darth-cheney / dabblet.css
Last active December 7, 2015 02:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#m-logo {
width: 85%;
height: 100%;
margin-left: 15%;
fill-color: white;
}
@darth-cheney
darth-cheney / dabblet.css
Created December 1, 2015 02:46
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
input[type=range] {
-webkit-appearance: none;
height: 3px;
background-color: black;
}