Skip to content

Instantly share code, notes, and snippets.

View galli-leo's full-sized avatar
💭
I may be slow to respond.

Leonardo Galli galli-leo

💭
I may be slow to respond.
View GitHub Profile
@galli-leo
galli-leo / search.cs
Created January 22, 2017 22:16
IFetchNetImport
public interface IFetchNetImport
{
List<Movie> FetchAndFilter(int listId, bool onlyEnableAuto); //Returns movies from listId that have not been added yet.
List<Movie> Fetch(int listId, bool onlyEnableAuto); //Returns all movies from listId.
//If onlyEnableAuto is set to true, only lists with enableAuto will be queried.
//If listId = 0, query all lists available!
}
@galli-leo
galli-leo / build_framework.py
Created December 8, 2017 09:50
Modified the script to build the opencv framework to allow for debug builds.
#!/usr/bin/env python
"""
The script builds OpenCV.framework for iOS.
The built framework is universal, it can be used to build app and run it on either iOS simulator or real device.
Usage:
./build_framework.py <outputdir>
By cmake conventions (and especially if you work with OpenCV repository),
the output dir should not be a subdirectory of OpenCV source tree.
@galli-leo
galli-leo / ClassWithEnum.swift
Last active June 24, 2018 17:25
TestFramework SourceKitten example
//
// ClassWithEnum.swift
// TestFramework
//
// Created by Leonardo Galli on 15.06.18.
// Copyright © 2018 Leonardo Galli. All rights reserved.
//
import Foundation
@galli-leo
galli-leo / .jazzy.yml
Created July 7, 2018 12:29
A sample jazzy config file with nested categories.
module: Siesta
author: Bust Out Solutions
author_url: http://bustoutsolutions.com
github_url: https://github.com/bustoutsolutions/siesta
exclude:
- "**/*-ObjC.swift"
- "**/*Deprecations.swift"
- "Source/Siesta/Support/Siesta-ObjC.swift" # until Cocoadocs gets https://github.com/realm/jazzy/pull/640
- "Source/SiestaUI/SiestaUI-ObjC.swift" # ditto
- "Source/Siesta/Support/Ω_Deprecations.swift" # ditto
@galli-leo
galli-leo / readme.txt
Created April 19, 2020 10:12
A Plaid Puzzle (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@galli-leo
galli-leo / readme.txt
Created April 19, 2020 19:03
A Plaid Puzzle (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@galli-leo
galli-leo / readme.txt
Created April 19, 2020 19:03
A Plaid Puzzle (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@galli-leo
galli-leo / tmdbdump.py
Last active April 7, 2024 03:05
Dumping the entire TMDB database's json inside a directory. Usage: python3 tmdbdump.py START_ID (defaults to 1)
import requests
import time
import json
import sys
import threading
import queue
from datetime import timedelta
API_KEY = "YOUR_TMDB_APIKEY"
append_to_response = "images,alternative_titles,videos,credits,keywords,release_dates,similar_movies,recommendations" //Change this if you do not want all the data.