- Python 3
- Pip 3
$ brew install python3
public class MovieDBTest: XCTestCase { | |
/// The shared client with their settings. | |
private lazy var client: HTTPClient = { | |
client = HTTPClient(baseURL: "https://api.themoviedb.org/3") | |
// it will happens value to each call. | |
client.queryParams = [ | |
.init(name: "api_key", value: "<API KEY>"), | |
.init(name: "language", value: "IT-it") |
<?php | |
/** | |
* Plugin Name: WordPress Export to JSON | |
* Plugin URI: https://jsnelders.com/ | |
* Description: Export all WordPress posts, pages, comments, tags, commments and users to a JSON file. | |
* Author: Jason Snelders | |
* Author URI: http://jsnelders.com | |
* Version: 2020-01-30.1 | |
**/ |
#!/usr/local/bin/python | |
from os import chdir, environ, getcwd, listdir, stat | |
from sys import exit, argv | |
from subprocess import Popen, PIPE | |
from xmlrpclib import ServerProxy, Fault |
import Foundation | |
import UIKit | |
extension UIColor { | |
convenience init(hexString:String) { | |
let hexString:NSString = hexString.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()) | |
let scanner = NSScanner(string: hexString) | |
if (hexString.hasPrefix("#")) { | |
scanner.scanLocation = 1 |