Skip to content

Instantly share code, notes, and snippets.

View Uko's full-sized avatar
😎
zajebiście

Yuriy Tymchuk Uko

😎
zajebiście
View GitHub Profile
@Uko
Uko / loadBaseline.st
Last active December 25, 2015 01:59
To load some project with configuration from gofer
Metacello new
baseline: #Project;
repository: 'github://Uko/Project:branch';
load
@Uko
Uko / moveMcRepo.st
Last active December 25, 2015 01:49
Move montichello repository to some other place
"script by Damien Cassou originaly from: https://code.google.com/p/smalltalk-hub/issues/detail?id=12"
| source goSource destination goDestination files destinationFiles |
source := MCHttpRepository location: '<url-to-source-sepository>'.
destination := MCHttpRepository
location: '<url-to-destination-sepository>'
user: '<login>'
password: '<pass>'.
@seandenigris
seandenigris / gist:4981414
Last active January 9, 2020 10:23
Pharo: Dynamically Create a UI with Spec
"Requires at least the Spec version from Pharo 2.0"
| layout widget |
model := DynamicComposableModel new.
layout := SpecLayout composed.
layout newColumn: [ :col |
{1. 2. 3} do: [:e | | selector |
selector := ('accessorTo', e asString) asSymbol.
model instantiateModels: {selector. #TextInputFieldModel}.
widget := model perform: selector.