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
el1 := 1. | |
el2 := 2. | |
view := RTMondrian new. | |
view shape rectangle. | |
view nodes: {el1. el2} . | |
view edges | |
shape: ( | |
(RTGradientColoredLine new) |
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
v := RTView new. | |
elementShape := RTEllipse new size: 10; color: Color green trans. | |
e1 := elementShape elementOn: 'Start'. | |
e2 := elementShape elementOn: 'End'. | |
v add: e1. | |
v add: e2. | |
e1 @ RTDraggable. | |
e2 @ RTDraggable. | |
e1 @ RTHighlightable. |
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
ratio := #( 10 by 4 ). | |
width := ratio at: 3. | |
height := ratio at: 1. | |
totalWidth := 20. | |
totalHeight := 30. | |
v := RTView new. | |
elements := OrderedCollection new. |
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
| v elementslayout | | |
v := RTView new. | |
elements := (RTBox new size: 20) elementsOn: (1 to: 20 * 30). | |
elements withIndexDo: [ :element :index | (index > (15 * 20)) ifTrue: [element color: TRTheme current green]]. | |
v addAll: elements. | |
layout := RTGridLayout on: elements withGap: 1 withLineItemsCount: [ 20 ]. | |
v | |
canvas focusOnCenterScaled; | |
signalUpdate. | |
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
v := RTView new. | |
e := RTBox new element. | |
v add: e. | |
e when: TRMouseClick do: [ :evt | | |
e color: Color random. | |
v signalUpdate ]. | |
v |
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
source /opt/anaconda2/bin/activate | |
export {http,https,ftp}_proxy=webproxy.xxx.tla:8080 | |
pip install glances |
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
yarn jar /usr/hdp/current/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient-tests.jar TestDFSIO -write -nrFiles 200 -fileSize 50G |
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
ToolRegistry new openRecentChangesLog |
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
babunSshDir := FileLocator C / 'Users' / 'phil' / '.babun' / 'cygwin' / 'home' / 'phil' / '.ssh'. | |
IceCredentialsProvider useCustomSsh: true. | |
IceCredentialsProvider sshCredentials | |
publicKey: (babunSshDir / 'id_rsa.pub') pathString; | |
privateKey: (babunSshDir / 'id_rsa') pathString. |
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
https://pharoweekly.wordpress.com/2015/11/06/quickaccess/ | |
I quickly wrote yet another small tool to work faster with Pharo. I call it | |
"QuickAccess" - it's some kind of "ScriptManager 2.0" allowing you | |
to quickly access actions (defined as code scripts) via Spotter, Menu, Button, etc. | |
You can load it from Spotter/Catalog in Pharo 5.0 beta. | |
The following video demonstrates how to use it: |