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" standalone="yes" ?> | |
<CodeBlocksConfig version="1"> | |
<editor> | |
<colour_sets> | |
<ACTIVE_COLOUR_SET> | |
<str> | |
<![CDATA[modnokai night shift v2]]> | |
</str> | |
</ACTIVE_COLOUR_SET> | |
<ACTIVE_LANG> |
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
Dropbox Style Filename |
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
const FRETBOARD: &str = "◯ ◯ ◯ ◯ ◯ ◯ | |
┌─┬─┬─┬─┬─┐ | |
│ │ │ │ │ │ | |
├─┼─┼─┼─┼─┤ | |
│ │ │ │ │ │ | |
├─┼─┼─┼─┼─┤ | |
│ │ │ │ │ │ | |
└─┴─┴─┴─┴─┘"; | |
use clap::Parser; |
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
// Spark 2.1 | |
val spark = SparkSession.builder().master("local").getOrCreate() | |
// Given a list of mixture of strings in integers | |
val values = List("20030100013280", 1.0) | |
// Create `Row` from `Seq` | |
val row = Row.fromSeq(values) | |
// Create `RDD` from `Row` |
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
[package] | |
name = "rust_grpc_demo" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
tonic = "0.7.1" | |
tokio = { version = "1.18.0", features = ["macros", "rt-multi-thread"] } |
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
# smtplib module send mail | |
import smtplib | |
TO = 'recipient@mailservice.com' | |
SUBJECT = 'TEST MAIL' | |
TEXT = 'Here is a message from python.' | |
# Gmail Sign In | |
gmail_sender = 'sender@gmail.com' |
- Client (Customer)
- Load Balancer (Greeter)
- Data Center (Coffee Shop)
- Distributed Message Queue (Bulletin Board w/ Sticky Notes)
- Producer (Cashier)
- Consumer (Barista)
- Database (Ledger Book)
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 typing import List | |
import json | |
class Student(object): | |
def __init__(self, first_name: str, last_name: str): | |
self.first_name = first_name | |
self.last_name = last_name | |
@classmethod | |
def from_json(cls, data): |
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
def format(input): | |
... | |
class BracketFormatterCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
whole_region = sublime.Region(0, self.view.size()) | |
text = self.view.substr(sublime.Region(0, self.view.size())) | |
formatted_text = format(text) | |
self.view.replace(edit, whole_region, formatted_text) |
NewerOlder