You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ This is a Cheatsheet for [RxSwift](https://github.com/ReactiveX/RxSwift) develop
3
3
4
4
It's based on the following blog post: [https://medium.com/gett-engineering/rxswift-to-apples-combine-cheat-sheet-e9ce32b14c5b](https://medium.com/gett-engineering/rxswift-to-apples-combine-cheat-sheet-e9ce32b14c5b)
error("csv2md is not intalled, Please run `bundle install` first")unless $?.exitstatus == 0
5
+
6
+
require'commonmarker'
7
+
require'imgkit'
8
+
require'colorize'
9
+
10
+
docs={
11
+
"basics.csv"=>"Basics",
12
+
"core_components.csv"=>"Core Components",
13
+
"operators.csv"=>"Operators"
14
+
}
15
+
16
+
output="# RxSwift to Combine Cheatsheet\n" +
17
+
"This is a Cheatsheet for [RxSwift](https://github.com/ReactiveX/RxSwift) developers interested in Apple's new [Combine](https://developer.apple.com/documentation/combine) framework.\n\n" +
18
+
"It's based on the following blog post: [https://medium.com/gett-engineering/rxswift-to-apples-combine-cheat-sheet-e9ce32b14c5b](https://medium.com/gett-engineering/rxswift-to-apples-combine-cheat-sheet-e9ce32b14c5b)\n\n"
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
45
+
font-size:16px;
46
+
line-height:1.5;
47
+
}
48
+
49
+
table {
50
+
width:100%;
51
+
border-collapse: collapse;
52
+
border-spacing:0;
53
+
}
54
+
55
+
tr:nth-child(2n) {
56
+
background-color:#f6f8fa;
57
+
}
58
+
59
+
tr {
60
+
background-color:#fff;
61
+
}
62
+
63
+
td {
64
+
padding:6px13px;
65
+
border:1px solid #dfe2e5;
66
+
display: table-cell;
67
+
}
68
+
69
+
th {
70
+
border:1px solid #dfe2e5;
71
+
padding:6px13px;
72
+
font-weight: bold;
73
+
}
74
+
</style>
75
+
</head>
76
+
<body>
77
+
#{tableHTML}</body>
78
+
</html>
79
+
HTML
80
+
81
+
## Convert HTML to Image 🤯
82
+
kit=IMGKit.new(html,:quality=>85)
83
+
file=kit.to_file("Resources/#{image_file}")
84
+
}
85
+
86
+
output += "# Contributing\n"
87
+
output += "Add any data/operators to the appropriate CSV files in the **Data** folder, run `bundle install` and `generate.rb`.\n\nFinally, commit the changes and submit a Pull Request."
0 commit comments