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
DEBUG:root:Args(memories_history=PosixPath('input/memories_history.json'), memories_folder=PosixPath('input/memories'), output_folder=PosixPath('output'), verbose=<VerboseLevel.PROGRAM_AND_LIBRARIES: 3>, type_handled=<MediaToHandle.VIDEO: 3>, only_one=False) | |
INFO:__snap:211DF926-3448-4295-9272-943F90487E48 has duplicates in memories_history.json but has same data, continuing... | |
INFO:__snap:AEF7F4A4-2BB5-42AE-91C6-50C87013764F has duplicates in memories_history.json but has same data, continuing... | |
INFO:__snap:2DB39DED-7E68-498B-8C1C-1BE16BD55647 has duplicates in memories_history.json but has same data, continuing... | |
INFO:__snap:6C139340-4652-4DEB-8F70-5EEF541FEFD2 has duplicates in memories_history.json but has same data, continuing... | |
INFO:__snap:4AD5F006-3212-4354-A540-E2FD926D2266 has duplicates in memories_history.json but has same data, continuing... | |
INFO:__snap:60F60E5D-C5BF-4604-A45E-67059335A0DE has duplicates in memories_history.json but has same data, continuing... | |
INFO:__snap:4056A9AA-2474-4E75-AE |
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 snowflake provides a very simple way to generate unique snowflake | |
// IDs. It is based on Twitter's snowflake algorithm. The snowflake ID is a 63 | |
// bit integer, composed of 41 bits for time, 10 bits for node id, and 12 bits | |
// for a sequence number. | |
package snowflake | |
import ( | |
"sync" | |
"time" | |
) |
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
all: test | |
test: build/basic-test-suite.o build/unity.o build/matrix.o | |
gcc build/basic-test-suite.o build/unity.o build/matrix.o -o build/test | |
playground: build/playground.o build/matrix.o | |
gcc -g build/playground.o build/matrix.o -o build/playground | |
build/playground.o: playground.c matrix.h | |
gcc -g -c playground.c -o build/playground.o |
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
// Media Query Mixins | |
$small-width: 576px; // Phone | |
$medium-width: 768px; // Tablet | |
$large-width: 1024px; // Desktop | |
// Media Breakpoint Up | |
// sm | md | lg | |
@mixin media-breakpoint-up($breakpoint) { | |
@if $breakpoint == sm { | |
@media (min-width: $small-width) { |
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
# | |
# Scraper.py | |
# | |
# Copyright Harry Day 2021 | |
# | |
# Twitter: https://twitter.com/realharryday | |
# Github: https://github.com/harryday123 | |
# | |
import json |
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
/** | |
This function removes duplicates from any dictionary | |
- Parameter dict: The input dictionary to remove duplicate values from | |
- Returns: The same dictionary with duplicates removed | |
*/ | |
private static func removeDuplicates<Key: Hashable, Value: Hashable>(fromDict dict: Dictionary<Key, Value>) -> Dictionary<Key, Value> { | |
var uniqueValues = Set<Value>() | |
var resultDict = [Key : Value](minimumCapacity: dict.count) | |
for (key, value) in dict { |
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
/// A Stub for use with unit testing URLSession | |
class URLProtocolStub: URLProtocol { | |
// this dictionary maps URLs to test data | |
static var testURLs = [URL?: Data]() | |
static var response = HTTPURLResponse(url: "https://songlinkr.harryday.xyz", statusCode: 200, httpVersion: "HTTP/1.1", headerFields: nil) | |
// say we want to handle all types of request | |
override class func canInit(with request: URLRequest) -> Bool { | |
return true |
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
protocol Stubbable: Identifiable { | |
static func stub(withID id: UUID) -> Self | |
} | |
extension Stubbable { | |
func setting<T>(_ keyPath: WritableKeyPath<Self, T>, | |
to value: T) -> Self { | |
var stub = self | |
stub[keyPath: keyPath] = value | |
return stub |
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
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
} |