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 | |
from datetime import datetime | |
from typing import Optional | |
import os | |
def get_property_sales_data(file_path): | |
reader = PropertySalesRowReader() | |
try: | |
for kind, row in reader.get_rows(file_path): |
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 | |
from collections import namedtuple | |
from typing import List, Union, Any, Optional | |
import re | |
@dataclass | |
class LandParcel: | |
id: str | |
part: bool = field(default=False) | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Copyright 2021 Angus Thomsen | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do | |
so, subject to the following conditions: |
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
# intro | |
16.000: [lyric] get | |
16.500: [lyric] get | |
17.000: [lyric] get | |
17.500: [lyric] get | |
18.000: [lyric] got | |
18.500: [lyric] got | |
19.000: [lyric] got | |
19.500: [lyric] got |
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
# Blender v2.90.1 OBJ File: '' | |
# www.blender.org | |
mtllib akst.mtl | |
o Curve | |
v 1.000000 -0.088656 -3.474279 | |
v 1.000000 -0.064552 -3.464055 | |
v 1.000000 -0.039982 -3.454721 | |
v 1.000000 -0.014946 -3.446275 | |
v 1.000000 0.010554 -3.438719 | |
v 1.000000 0.036521 -3.432051 |
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
class Controller { | |
@mobx.observable.ref count = 0; | |
@action | |
increment() { | |
this.count += 1; | |
} | |
} | |
// exposing a controller for a singleton component |
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 example_function(x, y, z): | |
return (x + y) * z | |
print(example_function(1, 2, 3)) # prints 9 | |
print(example_function(1, 2, z=3)) # prints 9 | |
print(example_function(x=1, y=2, z=3)) # prints 9 | |
# will break your program, because positional arguments are |
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/env fish | |
begin | |
function current_appearance | |
set output (osascript -l JavaScript -e " | |
Application('System Events').appearancePreferences.darkMode() | |
") | |
if test "$output" = "true" | |
echo "dark" | |
else |
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
function deepcopy (value) { | |
// if it's anything other than an object | |
// than let immediately return it. | |
switch (typeof value) { | |
case 'object': break; | |
default: return value; | |
} | |
// If it's a null let also return that. | |
if (value === null) return value; |
NewerOlder