Skip to content

Instantly share code, notes, and snippets.

@timvisee
timvisee / falsehoods-programming-time-list.md
Last active January 4, 2025 11:56
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@beardedtim
beardedtim / monads.md
Last active January 4, 2025 11:55
Monads are like burritos...and trees...and clocks...and...

Monads and Why The Hell We Need Weird Words

Once you understand what monads are, and why they exist, you lose the ability to explain it to anybody.

Here's to hoping I don't understand them

Table of Contents

@redlotus
redlotus / docstrings.py
Created October 2, 2017 04:34
Google Style Python Docstrings
# -*- coding: utf-8 -*-
"""Example Google style docstrings.
This module demonstrates documentation as specified by the `Google Python
Style Guide`_. Docstrings may extend over multiple lines. Sections are created
with a section header and a colon followed by a block of indented text.
Example:
Examples can be given using either the ``Example`` or ``Examples``
sections. Sections support any reStructuredText formatting, including
@ih2502mk
ih2502mk / list.md
Last active January 4, 2025 11:47
Quantopian Lectures Saved
@PixelSergey
PixelSergey / wireless.md
Last active January 4, 2025 11:45
FTP guide

Transferring files wirelessly between your 3DS and computer

This is especially useful if you do not have an SD card reader or if you do not want to open the New 3DS' pesky shell.

There are two options: the official MicroSD management (New 3DS only) (Requires Windows) or FTPD (must have CFW or homebrew installed).

FTPD is quicker and easier to use in the long run and can be used on all systems and computers (and phones!); however, MicroSD management is official and can be done with a stock system.



@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 4, 2025 11:41
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@sunmeat
sunmeat / main.cpp
Created January 4, 2025 11:38
найпростіший приклад на клієнт-серверну взаємодію
#include <iostream>
#include <windows.h>
#pragma comment(lib, "urlmon.lib")
using namespace std;
int main() {
// URL для завантаження
const char* srcURL = "https://www.gismeteo.ua/weather-odessa-4982/";
// файл для збереження
@vszakats
vszakats / s3-upload-aws4.sh
Last active January 4, 2025 11:38
AWS S3 upload using signature v4
#!/bin/sh
# To the extent possible under law, Viktor Szakats
# has waived all copyright and related or neighboring rights to this
# script.
# CC0 - https://creativecommons.org/publicdomain/zero/1.0/
# SPDX-License-Identifier: CC0-1.0
# THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@Jonny-exe
Jonny-exe / syncthing-setup-exclusively-with-CLI.md
Last active January 4, 2025 11:35
syncthing setup exclusively with CLI

After long searching I did not find a good description of how to set up Syncthing that works exclusively via CLI without using a Web browser on the devices.

This is useful for example on a headless Raspberry Pi without proxying web-traffic through SSH or with port-forwarding limitations. In this example we will want to share the default folder from Machine A with Machine B

Machine A Machine B