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
Ticker | Company | Dividend Yield | |
---|---|---|---|
AAPL | Apple Inc. | 0.98 | |
ADP | Automatic Data Processing. Inc. | 2.08 | |
BA | Boeing Company (The) | 2.48 | |
BAC | Bank of America Corporation | 2.07 | |
CAT | Caterpillar. Inc. | 2.79 | |
CL | Colgate-Palmolive Company | 2.43 | |
CSCO | Cisco Systems. Inc. | 2.85 | |
CVX | Chevron Corporation | 4.07 | |
D | Dominion Energy. Inc. | 4.39 |
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
Flux.error<String>(RuntimeException()) | |
.retryWhen { error -> | |
error.doOnNext { println(it) } | |
.zipWith(Flux.range(1, 4)) | |
.map { tuple -> if (tuple.t2 < 4) tuple.t2 else throw Exceptions.propagate(tuple.t1) } | |
.flatMap { Mono.delay(Duration.ofMillis(it.toLong() * 1000)) } | |
.doOnNext { println("Retrying... ${LocalTime.now()}") } | |
} | |
.doOnError { println("Finished with ERROR!") } | |
.subscribe() |
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
Name | Rating | Comment | |
---|---|---|---|
Zsa Zsa Burger | 8.5 | the best so far | |
Windburger | 7 | Charlottenburg | |
Tommi's Burger | 7 | need a retest | |
Hard Rock Cafe | 7 | prepare your wallet (sometimes it's a bit dry) | |
Burgermeister | 6.8 | very honest buger but can be better... they are close to be the best | |
Corroboree Sony Center | 6.8 | extra cheeeeeeeeeeese!!! | |
Club Burger | 6.8 | Torstraße... cheap place but the burger was very nice | |
Revolver Burger | 6.7 | need a retest | |
Five Guys | 6.7 | a hipster pricey version of Burger King |
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
-- From the Evan Miller's article http://www.evanmiller.org/how-not-to-sort-by-average-rating.html | |
SELECT widget_id, ((positive + 1.9208) / (positive + negative) - | |
1.96 * SQRT((positive * negative) / (positive + negative) + 0.9604) / | |
(positive + negative)) / (1 + 3.8416 / (positive + negative)) | |
AS ci_lower_bound | |
FROM widgets | |
WHERE positive + negative > 0 | |
ORDER BY ci_lower_bound DESC; |
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
#define PercentColor(a) (float)((float)a / 255.0f) | |
#define UIColorFromRGB(r, g, b, a) [UIColor colorWithRed:PercentColor(r) green:PercentColor(g) blue:PercentColor(b) alpha:PercentColor(a)*255.0f] |
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
#!/bin/sh | |
projectfile=`find -d . -name 'project.pbxproj'` | |
projectdir=`echo *.xcodeproj` | |
projectfile="${projectdir}/project.pbxproj" | |
tempfile="${projectdir}/project.pbxproj.out" | |
savefile="${projectdir}/project.pbxproj.mergesave" | |
cat $projectfile | grep -v "<<<<<<< HEAD" | grep -v "=======" | grep -v "^>>>>>>> " > $tempfile | |
cp $projectfile $savefile |
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
// | |
// VerticallyAlignedLabel.h | |
// | |
#import <Foundation/Foundation.h> | |
typedef enum VerticalAlignment { | |
VerticalAlignmentTop, | |
VerticalAlignmentMiddle, |
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
UILabel *label; | |
CGRect labelRect = [label textRectForBounds:label.bounds limitedToNumberOfLines:10]; | |
CGRect f = label.frame; | |
f.size.height = labelRect.size.height; | |
label.frame = f; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Colors</key> | |
<dict> | |
<key>Background</key> | |
<string>0.082 0.087 0.109</string> | |
<key>InsertionPoint</key> | |
<string>1.000 1.000 1.000</string> |
NewerOlder