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 ConvertNumbersToHex(text As String) As String | |
Dim objRegex As RegExp | |
Dim results | |
Dim text_result | |
Dim hex_value | |
Set objRegex = New RegExp | |
objRegex.Global = True | |
objRegex.Pattern = "(\d+)" |
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
#!/bin/bash | |
RELEASE_TAG=${1:?"missing arg 1 for RELEASE_TAG"} | |
echo Backing up database | |
/home/mastodon/backup_database.sh | |
cd /home/mastodon/live | |
git fetch | |
# The stash commands are only required if you mess around with the source code |
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
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json | |
index b8cb24799..0e4686e63 100644 | |
--- a/app/javascript/mastodon/locales/en.json | |
+++ b/app/javascript/mastodon/locales/en.json | |
@@ -104,7 +104,7 @@ | |
"column.direct": "Direct messages", | |
"column.directory": "Browse profiles", | |
"column.domain_blocks": "Blocked domains", | |
- "column.favourites": "Favourites", | |
+ "column.favourites": "Booped Toots", |
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
// ==UserScript== | |
// @name Printable GitHub issues | |
// @namespace https://github.com/gaute | |
// @include https://github.com/*/issues/* | |
// ==/UserScript== | |
if (typeof($) === "undefined") { | |
$ = unsafeWindow.$; | |
} |
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 latch_adjusted_dataframe(input_dataframe, shift_period): | |
df = input_dataframe.copy() | |
# latch-adjust returns | |
df.reset_index(inplace=True) | |
df['buy_signal'] = df['buy_signal'] & (df['buy_signal'].shift(1) == False) | |
df['sell_signal'] = df['sell_signal'] & (df['sell_signal'].shift(1) == False) | |
# not specifying a condition, because we are going to modify the same condition. |
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 datetime | |
import json | |
import os | |
from exif import Image | |
google_photos_directory = r'C:\\Users\\Matt\\Downloads\\Takeout\\Google Photos' | |
database = 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
/// Returns the largest highly composite number less than or equal to the given number. | |
/// There is nothing clever about this algorithm, it is slow. | |
/// # Arguments | |
/// * `maximum` - A reference to a number that the highly composite number must not exceed | |
/// # Examples | |
/// ``` | |
/// assert_eq!(highest_highly_composite_number(&842), 840) | |
/// ``` | |
fn highest_highly_composite_number<'a, T: 'a>(maximum: &T) -> T | |
where |