20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
Custom keyboard configuration builder
Таймкод 40:40: Кого из российских чиновников стоит слушать?
«Се́тунь» — малая ЭВМ на основе троичной логики, разработанная в вычислительном центре Московского государственного университета в 1959 году
Бывает, придёшь в кафе, там всякие круассаны и пирожные лежат красиво. Поразглядывал, выбрал, обращаешься к девушке. А она такая: «Вам с собой?» Нет, здесь. «Садитесь, к вам подойдет официант».
package src
type config struct {
// Required
foo, bar string
// Optional
fizz, bazz int
}
// Each optional configuration attribute will have its own public method
func (c *config) WithFizz(fizz int) *config {
c.fizz = fizz
return c
}
func (c *config) WithBazz(bazz int) *config {
c.bazz = bazz
return c
}
// This only accepts the required options as params
func NewConfig(foo, bar string) *config {
// First fill in the options with default values
return &config{foo, bar, 10, 100}
}
func Do(c *config) {}
You’d use the API as follows:
package main
import ".../src"
func main() {
// Initialize the struct with only the required options and then chain
// the option methods to update the optional configuration attributes
c := src.NewConfig("hello", "world").WithFizz(0).WithBazz(42)
src.Do(c)
}
In this post I describe a couple of practice that makes the process of writing code faster, more predictable and straightforward
Trying to make the case for permanent irrevocable digital identities, which unfortunately today, by de-facto, are email addresses.
By default, the apps on your phone are connecting to the internet even when your not using them. It's a feature called Background App Refresh and it is mostly not very useful.
The most complete list on the web about cars, bikes, trucks and other vehicles seen in movies and series, image captures and information about them.
Almost all mattresses should not be flipped — instead they should be rotated 180° so the foot of the mattress is now at the head.
Мой любимый рецепт борща
Whenever I explain my research at Google into mobile text editing, I’m usually met with blank stares or a slightly hostile “Everyone can edit text on their phones, right? What’s the problem?”
A non-comprehensive and opinionated guide to best monitor for programming
Утилита для создания загрузочной флешки сразу с несколькими образами
If you make a div with overflow:scroll;transform:skewX(45deg); and give it a child element with transform:skewX(-45deg); you can make a diagonal scroll bar. It seems pretty useful if you want to hurt people's eyes.
Дистрибутив для резервного копирования