Skip to content

Instantly share code, notes, and snippets.

View tkc's full-sized avatar
🏠
Working from home

Tkc tkc

🏠
Working from home
  • Japan
View GitHub Profile
import UIKit
class CustomTableViewCell: UITableViewCell
{
var contentText:String = "";
var contentLabel = UILabel();
override func awakeFromNib() {
super.awakeFromNib()
import UIKit
class CameraSandBox: UIViewController,UIImagePickerControllerDelegate,UINavigationControllerDelegate{
var button: UIButton!
private var myImageView: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
import MapKit
import UIKit
import CoreLocation
class MapGetAddresSandbox: UIViewController,CLLocationManagerDelegate{
var mapInit:Bool=false;
var button: UIButton!
var currentLatitude:CLLocationDegrees=35;
import XCTest
@testable import app
class appTests: XCTestCase {
override func setUp() {
super.setUp()
}
import Foundation
import UIKit
import RealmSwift
class LocateModel: Object {
dynamic var lat = 0.0
dynamic var long = 0.0
dynamic var unixTime = 0
@tkc
tkc / BigQuerySample
Last active September 8, 2016 07:08
## 平均値
SELECT
AVG(x)
FROM
[projectName:dataSetName.tableName]
LIMIT
1000
[
426.842105263157
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
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
[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
@tkc
tkc / gist:ea88c7a26117573975e1282e29b56381
Created June 8, 2016 09:10
instagram api get token By php server
<?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']) {