Giter Club home page Giter Club logo

learn-cuis's People

Contributors

shnarazk avatar

Watchers

 avatar  avatar  avatar

learn-cuis's Issues

Add a padding to task bar

 'From Cuis 6.0 [latest update: #5202] on 30 May 2022 at 8:44:24 am'!

  !TaskbarMorph methodsFor: 'initialization' stamp: 'shnarazk 5/30/2022 08:43:59'!
  initialize
      super initialize.
      viewBox _ LayoutMorph newRow color: self defaultColor.
      self
          addMorph: (clock _ LabelMorph contents: '  ')
          layoutSpec: (LayoutSpec morphWidthProportionalHeight: 0.5).
      self
          addMorph: (clock _ UpdatingLabelMorph initializedInstance)
          layoutSpec: (LayoutSpec morphWidthProportionalHeight: 0.5).
      self
          addMorph: viewBox
          layoutSpec:
              (LayoutSpec
                  proportionalWidth: 1.0
                  proportionalHeight: 1.0
                  offAxisEdgeWeight: #rightOrBottom).
      viewBox separation: self defaultHeight // 8.! !

The order of the args of `TestCase>>assert:equals:` are not intuitive

assert: expected equals: actual
	^ self
		assert: expected = actual
		description: [ self comparingStringBetween: expected and: actual ]

But In Squeak 6.0 beta also they are swapped.

assert: expected equals: actual

	^ self
		assert: expected
		equals: actual
		description: nil

Only Pharo's implementation makes sense for me.

assert: actual equals: expected

	"This method raises an AssertionFailure if actual is different (using #= message) from expected.
	 Else it does nothing and execution continues.
	"

	^ self
		  assert: actual = expected
		  description: [ self comparingStringBetween: actual and: expected ]

I'm too tired for diversity of smalltalk.

Set background image

On Workspace

self runningWorld backgroundImageData: '/PATH/TO/bg.jpg' asFileEntry binaryContents.

Change debugger's color

Theme>>debugger holds the value (h: 0.0 s: 0.? v: 0.?).
0.0 0.4 0.9 is much better. Since it doesn't have setters, we need to redefine the method.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.