This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class CustomTableViewCell: UITableViewCell | |
{ | |
var contentText:String = ""; | |
var contentLabel = UILabel(); | |
override func awakeFromNib() { | |
super.awakeFromNib() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class CameraSandBox: UIViewController,UIImagePickerControllerDelegate,UINavigationControllerDelegate{ | |
var button: UIButton! | |
private var myImageView: UIImageView! | |
override func viewDidLoad() { | |
super.viewDidLoad() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MapKit | |
import UIKit | |
import CoreLocation | |
class MapGetAddresSandbox: UIViewController,CLLocationManagerDelegate{ | |
var mapInit:Bool=false; | |
var button: UIButton! | |
var currentLatitude:CLLocationDegrees=35; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCTest | |
@testable import app | |
class appTests: XCTestCase { | |
override func setUp() { | |
super.setUp() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
import RealmSwift | |
class LocateModel: Object { | |
dynamic var lat = 0.0 | |
dynamic var long = 0.0 | |
dynamic var unixTime = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 平均値 | |
SELECT | |
AVG(x) | |
FROM | |
[projectName:dataSetName.tableName] | |
LIMIT | |
1000 | |
[ | |
426.842105263157 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MapKit | |
import UIKit | |
import CoreLocation | |
class MapViewController: UIViewController,CLLocationManagerDelegate{ | |
private var locationManager:CLLocationManager! | |
private var mapView: MKMapView = MKMapView() | |
private var lat:CLLocationDegrees = 0 | |
private var long:CLLocationDegrees = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCPlayground | |
import MapKit | |
class ViewController: UIViewController { | |
private var lat:CLLocationDegrees = 0 | |
private var long:CLLocationDegrees = 0 | |
private var latitudeDelta:CLLocationDegrees = 0 | |
private var longitudeDelta:CLLocationDegrees = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:go-api] | |
directory=/home | |
command=sh /var/www/run.sh | |
autostart=true | |
autorestart=true | |
user=root | |
redirect_stderr=true | |
stdout_logfile=/var/log/supervisor/go-api.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client_id = <client_id>; | |
$client_secret = <client_secret>; | |
$redirect_uri = <redirect_url>; | |
$scope = 'basic+public_content+comments+relationships+likes'; | |
session_start(); | |
if (isset($_GET['code']) && !empty($_GET['code']) && isset($_SESSION['state']) && !empty($_SESSION['state']) && isset($_GET['state']) && !empty($_GET['state']) && $_SESSION['state'] == $_GET['state']) { |