Skip to content

Instantly share code, notes, and snippets.

@db0company
db0company / queerale_tiktok.md
Created April 28, 2024 12:37
Queerale TikTok
Audio Lieu Action et texte à l'écran Personnes nécessaires
Oh, no! These girls are all boobs and no brain, I’m too busy, in the library, reading books with dust on them soirée ou autre Quand quelqu’un.e qui fait pas partie de la queerale te demande si t’as regardé glee 1 soprano
Typical dance moves soirée Danse comme un baryton, ténor, alto, soprano 1 baryton + 1 ténor + 1 alto + 1 soprano
All that work and what did it get me cavern Quand tu connais une chanson par cœur mais que t’es baryton donc tout ce que tu dois dire c’est “aaah” 1 baryton
Wassup riri wassup rocky cavern Quand ça frotte entre les sopranos et les ténors Groupes de sopranos et ténors
Twins where have you been cavern POV les tenors et le
@db0company
db0company / ratio_gallery.py
Created August 2, 2022 13:34
A script to crop a bunch of photo to match a given ratio. Requires imagemagick installed (convert) and pip install Pillow
@db0company
db0company / mask.md
Created April 26, 2021 12:29
Crop an image using a mask

If the image has no transparency

convert src.png mask.png -alpha off -compose copy_opacity -composite result.png

Example

If the image has some transparency

# Previous code
def fallback_translation_button(self, field_name):
language, translation = self.get_translation(field_name, return_language=True)
return translationURL(translation, from_language=language, with_wrapper=True)
def fallback_translation_button(self, field_name):
language, translation = self.get_translation(field_name, return_language=True)
return translationURL(translation, from_language=language, with_wrapper=True)
@db0company
db0company / gist:c3870cd54422aaaf4b23d889a0a19591
Last active November 6, 2019 15:31
List of users who joined IdolStoryInktober but didn't get a badge because they didn't follow the instructions to get a badge
{
"twitter": [
"CobaltWolfArt",
"SylPrime",
"moypumpkin",
"DJ_Tiya2",
"hanabyka",
"Lunalaxy",
"mandlamZA",
"kataakelacena",
card id, level, appeal, stamina, technique for SR Honoka
100012001 1 1280 960 960
100012001 2 1291 969 969
100012001 3 1302 977 977
100012001 4 1313 985 985
100012001 5 1324 993 993
100012001 6 1335 1001 1001
100012001 7 1346 1009 1009
100012001 8 1356 1017 1017
100012001 9 1367 1026 1026
@db0company
db0company / circles9.md
Last active July 17, 2018 06:41
Circles Fiesta #9
Bandori Party:
- has activities now!
- preview of the new logo by violerR
- available in Vietnamese
- French translation fully completed
Cinderella Producers:
- We are updating it, and it will be about the whole Idolm@ster license!
School Idol Tomodachi:
@db0company
db0company / gist:e8c34e7518709fc4adcc02166b812a74
Created June 19, 2018 14:56
Google sheets convert yens to us dollars
=GOOGLEFINANCE("CURRENCY:JPYUSD")*REGEXEXTRACT(C182,"\d+")
// this is the function being called whenever a page gets loaded, including when you scroll to get the next page
// you need to configure your view in magicollections.py to specify that you want this function to be called
// this function is in main.py, but for some pages that are not loaded often (staff pages, settings) or are
// big enough you can have a file just for this page like `settings.js` (for what you're trying to do main.js is enough)
function loadCardInList() {
...
// Show/hide include_cameos when member_id is set
// $(xxx) is a way to retrieve an HTML element currently on the page
// "#sidebar-wrapper #id_member_id" is the selector to find the elements. it's very similar to CSS selectors.