This file contains hidden or 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
.app-container .title { | |
font-family: sans-serif; | |
font-weight: lighter; | |
} | |
.theme-light .app-container { | |
color: #408bbd; | |
background-color: white; | |
} | |
.theme-dark .app-container { | |
color: #ddd; |
This file contains hidden or 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
@import 'themes.scss'; | |
.app-container { | |
@include themify($themes) { | |
color: themed('textColor'); | |
background-color: themed('backgroundColor'); | |
} | |
.title { | |
font-family: sans-serif; |
This file contains hidden or 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
<main id="app-root" class="theme-dark"> | |
... | |
</main> |
This file contains hidden or 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
<main id="app-root"> | |
<div class="app-container"> | |
<h1 class="title">A title</h1> | |
<button class="button">A button</button> | |
</div> | |
</main> |
This file contains hidden or 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
$themes: ( | |
light: ( | |
backgroundColor: #fff, | |
textColor: #408bbd, | |
buttonTextColor: #408bbd, | |
buttonTextTransform: none, | |
buttonTextHoverColor: #61b0e7, | |
buttonColor: #fff, | |
buttonBorder: 2px solid #fff, | |
), |
This file contains hidden or 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
void delete_all_at_price(Dir dir, Price price) { | |
auto orders_map = trading_book_info.orders().get_orders_by_dir_to_map(dir); | |
auto it = orders_map.find(price); | |
if (it == orders_map.end()) { | |
return; | |
} | |
auto& active_orders = it->second; | |
for (auto& order : active_orders) { | |
delete_order(order); | |
} |
This file contains hidden or 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
memory_file = BytesIO() | |
with zipfile.ZipFile(memory_file, 'w') as zf: | |
files = result['files'] | |
for individualFile in files: | |
data = zipfile.ZipInfo(individualFile['fileName']) | |
data.date_time = time.localtime(time.time())[:6] | |
data.compress_type = zipfile.ZIP_DEFLATED | |
zf.writestr(data, individualFile['fileData']) | |
memory_file.seek(0) | |
return send_file(memory_file, attachment_filename='capsule.zip', as_attachment=True) |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <map> | |
#include <set> | |
int main() | |
{ | |
std::vector<int> a = {1, 2, 3, 4, 5}; | |
a.push_back(42); |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <vector> | |
int main() | |
{ | |
// Enter lambda functions.. | |
auto sum = [] (int x, int y) { | |
std::cout << "Hello, side-effects!" << std::endl; | |
return x + y; |
This file contains hidden or 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
#include <iostream> | |
#include <thread> | |
void hello() | |
{ | |
std::cout << "HW!" << std::endl; | |
} | |
int main() | |
{ |