Skip to content

Instantly share code, notes, and snippets.

@arroz
arroz / gist:1d2e8bc9b3103a5e903a7786c6a11534
Created March 30, 2021 15:24
Concurrent queue issue
let queue = DispatchQueue(label: "Queue", qos: .default, attributes: [.concurrent], autoreleaseFrequency: .workItem, target: .global(qos: .default))
let cancellable = [1, 2, 3, 4, 5].publisher
.receive(on: queue)
.map { longRunningFunc(value: $0) }
.receive(on: DispatchQueue.main)
.sink (receiveCompletion: { completion in
Swift.print(completion)
}, receiveValue: { value in
Swift.print(value)
@arroz
arroz / dabblet.css
Created June 13, 2013 22:22
centering with absolute position
/**
* centering with absolute position
*/
.inside {
display: inline-block;
background: red;
margin: auto auto;
text-align: left;
@arroz
arroz / dabblet.css
Created June 13, 2013 22:21
centering with absolute position
/**
* centering with absolute position
*/
.inside {
display: inline-block;
background: red;
margin: auto auto;
text-align: left;
@arroz
arroz / dabblet.css
Created June 13, 2013 22:21 — forked from anonymous/dabblet.css
centering with absolute position
/**
* centering with absolute position
*/
.inside {
display: inline-block;
background: red;
margin: auto auto;
text-align: left;