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
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
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 / 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
galli-leo / build_framework.py
Created Dec 8, 2017
Modified the script to build the opencv framework to allow for debug builds.
View build_framework.py
#!/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 / tmdbdump.py
Last active Dec 2, 2019
Dumping the entire TMDB database's json inside a directory. Usage: python3 tmdbdump.py START_ID (defaults to 1)
View tmdbdump.py
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.
@galli-leo
galli-leo / search.cs
Created Jan 22, 2017
IFetchNetImport
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.