четверг, июня 02, 2011

Links 2011-06

HTML

A new micro clearfix hack
http://nicolasgallagher.com/micro-clearfix-hack/
Что тут скажешь? Уже 2011 год а веб-дизайнеры все ищут пути правильно уложить div с float во всех браузерах.

Improved Internet Explorer Targeting through Body Classes
http://misteroneill.com/improved-internet-explorer-targeting-through-body-classes/
А так же метят IE условными комментариями

Scala

10 Scala One Liners to Impress Your Friends
http://solog.co/
http://solog.co/47/10-scala-one-liners-to-impress-your-friends/

Мелкие полезняшки типа
val pairs = List("C", "Procedural", "Java", "Object-Oriented", "Haskell", "Functional", "Scala", "Multi-Paradigm")
val map = pairs.grouped(2).map(pair => (pair(0), pair(1))).toMap
println(map)

Prints:
Map(C -> Procedural, Java -> Object-Oriented, Haskell -> Functional, Scala -> Multi-Paradigm)

Functional Testing with Selenium WebDriver and Scala
http://solog.co/44/functional-testing-with-selenium-webdriver-and-scala/

Лаконично выглядит тестирование с силениумским FirefoxDriver
val driver = new FirefoxDriver
driver.get("http://maps.google.com")

// verify we retrieve the page and have the title
"Google Maps" should "have the proper title" in {
assert(driver.getTitle() === "Google Maps")
}

it should "be able to perform a query" in {

// get form element
val inputElement = driver.findElement(By.name("q"))

// type in search query
inputElement.sendKeys("San Francisco")

// submit form
inputElement.submit
}


Отличный метод для создания round corners,
http://www.smashingmagazine.com/2011/02/07/mastering-photoshop-noise-textures-gradients-and-rounded-rectangles/

Комментариев нет:

Мой список блогов