Sometimes we need to open Setting's Preferences not of our app, but of the iPhone itself. What should we do to acomplish this?
[UPDATE: Added Wallet And Apple Pay below]
[UPDATE: Changed prefs for Bluetooth]
| from __future__ import print_function | |
| def main(): | |
| while True: | |
| x = int(input("Please enter an integer: ")) | |
| print([[[x, "Fizz"][x % 3 == 0], "Buzz"][x % 5 == 0], "FizzBuzz"][x % 15 == 0]) | |
| if __name__ == "__main__": | |
| main() |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| def DFS(graph, root_node = "root"): | |
| stack = [] | |
| children = graph[root_node] | |
| stack = children + stack | |
| print(root_node) |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "os" | |
| "syscall" | |
| "time" | |
| ) |
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| from __future__ import print_function | |
| import sys | |
| if sys.version_info.major < 3: | |
| input = raw_input | |
| def main(): | |
| while True: |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| import sys | |
| class A(object): | |
| """ | |
| Base Class | |
| """ | |
| def __init__(self): |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| import sys | |
| class A(object): | |
| """ | |
| Base Class | |
| """ | |
| def __init__(self): |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| print("Hello world") |
| """ | |
| RALIGN - Rigid alignment of two sets of points in k-dimensional | |
| Euclidean space. Given two sets of points in | |
| correspondence, this function computes the scaling, | |
| rotation, and translation that define the transform TR | |
| that minimizes the sum of squared errors between TR(X) | |
| and its corresponding points in Y. This routine takes | |
| O(n k^3)-time. | |
| Inputs: |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| ## References | |
| - [Umeyama's paper](http://edge.cs.drexel.edu/Dmitriy/Matching_and_Metrics/Umeyama/um.pdf) | |
| - [CarloNicolini's python implementation](https://gist.github.com/CarloNicolini/7118015) | |
| """ | |
| from __future__ import print_function | |
| import numpy as np |