This file contains 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
colorChangeIndex := self detectIndex: [ :s | s = '; PRINT_COLOR_CHANGE' ]. | |
startLines := self first: colorChangeIndex-1. | |
restLines := self allButFirst: colorChangeIndex + 1. | |
layerChangeIndex := restLines detectIndex: [ :s | s = ';AFTER_LAYER_CHANGE' ]. | |
endLines := restLines allButFirst: layerChangeIndex. | |
layerLines := restLines first: layerChangeIndex. |
This file contains 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
top_d = 107; | |
wider_ridge_d = 100; | |
narrower_ridge_d = 92; | |
bottom_d = 78; | |
top_h = 18; | |
h = 80; |
This file contains 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
(FileSystem disk workingDirectory / 'temp.txt') writeStream | |
nextPutAll: 'string to write in file'; | |
close |
This file contains 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
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name mastodon-test.tymchuk.me; | |
root /home/mastodon/live/public; |
This file contains 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
[ | |
Transcript open. | |
[true] whileTrue: [ | |
WorldState addDeferredUIMessage: [ | |
SmalltalkImage current saveSession]. | |
(Delay forSeconds: 60) wait] | |
] forkNamed: 'autosave' |
This file contains 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
| methods size | | |
methods := (RPackage organizer packages select: [ :p | p packageManifestOrNil isNil]) flatCollect: #methods. | |
size := methods size * | |
(ReRuleManager uniqueInstance methodRules size + | |
ReRuleManager uniqueInstance nodeRules size). | |
(1 to: 10) collect: [ :x | | |
[ methods do: [ :m | m critiques ] ] timeToRunWithoutGC / size ]. |
This file contains 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
| all dict reverseDict filtered | | |
"get data from db" | |
all := (MooseModel root first allAuthors collect: #name) asArray. | |
"get author relations data" | |
dict := STON fromString: | |
(ZnClient new get: 'https://raw2.github.com/Uko/SHubAuthors/master/SHubAuthors.ston'). | |
"create reverse dictionary" |
This file contains 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
StartupLoader default executeAtomicItems: { | |
StartupAction | |
name: 'Code completion setings' | |
code: [ | |
NECPreferences | |
enabled: true; | |
popupShowAutomatic: true; | |
useController: NECController; | |
popupShowWithShortcut: Character space shift ] | |
runOnce: true |
This file contains 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
width=1920 | |
height=1080 | |
ffmpeg -i visualization/%d.png -c:v libx264 -filter:v "scale=iw*min($width/iw\,$height/ih):ih*min($width/iw\,$height/ih), pad=$width:$height:($width-iw*min($width/iw\,$height/ih))/2:($height-ih*min($width/iw\,$height/ih))/2:0xFFFFFF" -pix_fmt yuv420p z.mov |
This file contains 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
Metacello new | |
baseline: #Project; | |
repository: 'github://Uko/Project:branch'; | |
load |
NewerOlder