Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Leonardo Galli galli-leo

I may be slow to respond.
Block or report user

Report or block galli-leo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
galli-leo / .jazzy.yml
Created Jul 7, 2018
A sample jazzy config file with nested categories.
View .jazzy.yml
module: Siesta
author: Bust Out Solutions
- "**/*-ObjC.swift"
- "**/*Deprecations.swift"
- "Source/Siesta/Support/Siesta-ObjC.swift" # until Cocoadocs gets
- "Source/SiestaUI/SiestaUI-ObjC.swift" # ditto
- "Source/Siesta/Support/Ω_Deprecations.swift" # ditto
galli-leo / ClassWithEnum.swift
Last active Jun 24, 2018
TestFramework SourceKitten example
View ClassWithEnum.swift
// ClassWithEnum.swift
// TestFramework
// Created by Leonardo Galli on 15.06.18.
// Copyright © 2018 Leonardo Galli. All rights reserved.
import Foundation
galli-leo /
Created Dec 8, 2017
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.
./ <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 /
Last active Dec 2, 2019
Dumping the entire TMDB database's json inside a directory. Usage: python3 START_ID (defaults to 1)
import requests
import time
import json
import sys
import threading
import queue
from datetime import timedelta
append_to_response = "images,alternative_titles,videos,credits,keywords,release_dates,similar_movies,recommendations" //Change this if you do not want all the data.
galli-leo / search.cs
Created Jan 22, 2017
View search.cs
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!
You can’t perform that action at this time.