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
using System.Diagnostics; | |
using Sylvan.Data.Csv; | |
var options = new CsvDataReaderOptions { HasHeaders = false, Delimiter = ';' }; | |
using var csv = await CsvDataReader.CreateAsync("demo.csv", options); | |
var sw = Stopwatch.StartNew(); | |
while(await csv.ReadAsync()) | |
{ |
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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>refresh</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style type="text/css"> | |
body { |
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 dataclasses import dataclass, field, asdict | |
import hug | |
@dataclass | |
class Paged: | |
items: list = field(default_factory=list) | |
total: int = 0 |
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
using System; | |
using System.Collections.Generic; | |
namespace MsgBuilder | |
{ | |
public partial class Builder<T> | |
{ | |
internal class Message : Dictionary<string, T>, IMessage<T> | |
{ | |
private Builder<T> _builder; |
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
#! /usr/bin/python | |
import sys | |
def generate(count=10): | |
def msg(key, value): | |
return '*3\r\n$3\r\nSET\r\n${}\r\n{}\r\n${}\r\n{}\r\n'.format(len(key), key, len(value), value) | |
for i in range(count): |
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
import sys | |
from PyQt5.QtCore import QUrl | |
from PyQt5.QtGui import QGuiApplication | |
from PyQt5.QtQml import QQmlApplicationEngine | |
def run(): | |
app = QGuiApplication(sys.argv) | |
engine = QQmlApplicationEngine() |
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
import sys | |
from PyQt5.QtCore import QObject, QUrl, pyqtSignal, pyqtSlot, pyqtProperty | |
from PyQt5.QtGui import QGuiApplication | |
from PyQt5.QtQml import QQmlApplicationEngine | |
class ViewModel(QObject): | |
text_changed = pyqtSignal(name='textChanged') |
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
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Colorsublime - Themes/Muukii.tmTheme", | |
"fade_fold_buttons": false, | |
"fold_buttons": true, | |
"font_face": "Droid Sans Mono", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": |
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
alias gs='git st' | |
alias gd='git diff --ignore-all-space' | |
alias gl='git l' |
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
[branch] | |
autosetuprebase = always | |
[color] | |
ui = auto | |
[alias] | |
st = status | |
br = branch | |
#l = log --pretty=tformat:"%C(yellow)%h\\ %ad%Creset\\ |\\ %s%C(cyan)\\ [%an]\\%Cred%d%Creset" --decorate --graph --abbrev-commit --date=relative | |
hl = log --pretty=tformat:"%C(yellow)%h\\ %Cgreen(%ad)%Creset\\ -\\ %s%C(cyan)\\ [%an]\\%Cred%d%Creset" --decorate --graph --abbrev-commit --date=relative | |
ll = log --pretty=tformat:"%C(yellow)%h%Cred%d\\ %Creset%s%C(cyan)\\ [%an]" --decorate --numstat -1 |
NewerOlder