Skip to content

Instantly share code, notes, and snippets.

View nolili's full-sized avatar
:octocat:

NORITAKA KAMIYA nolili

:octocat:
View GitHub Profile
1Password.app
Adobe
Adobe Acrobat X Pro
Adobe Bridge CS5.1
Adobe Device Central CS5.5
Adobe Extension Manager CS5.5
Adobe Illustrator CS5.1
Adobe InDesign CS5.5
Adobe Media Encoder CS5.5
Adobe Photoshop CS5.1

Install OS X 10.10 Yosemite in VirtualBox

(based on this pastebin i've found via Google, markdownified and adjusted to work with the official Yosemite release)

Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.

(LEGAL DISCLAIMER: This guide aims to explain how to create a virtual machine on a regularly purchased Apple computer, running a genuine Mac OS X operating system, for testing purposes only.)

Install OS X 10.10 Yosemite in VirtualBox

(based on this pastebin i've found via Google, markdownified and adjusted to work with the official Yosemite release)

Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.

(LEGAL DISCLAIMER: This guide aims to explain how to create a virtual machine on a regularly purchased Apple computer, running a genuine Mac OS X operating system, for testing purposes only.)

@nolili
nolili / gist:1bb8f1a0c25928b34a3f
Last active October 22, 2015 19:59
Get serial number of connected all iOS devices.
# install mobiledevice[https://github.com/imkira/mobiledevice] by homebrew, first
result = `mobiledevice list_devices`
result.lines do |device|
deviceUDID = device.chomp
print(`mobiledevice get_device_prop -u #{deviceUDID} SerialNumber`)
end
- (BOOL)isEqualCoordinate1:(CLLocationCoordinate2D)coordinate1 coordinate2:(CLLocationCoordinate2D)coordinate2{
return (coordinate1.latitude == coordinate2.latitude && coordinate1.longitude == coordinate2.longitude);
}
- (BOOL)isEqualCamera1:(MKMapCamera *)camera1 camera2:(MKMapCamera *)camera2
{
if (!camera1){
return NO;
}
if (!camera2){
@nolili
nolili / gist:9aeadf285528a44c2e41
Last active August 29, 2015 14:16
MapView Test
//
// ViewController.m
// DropPinStudy
//
// Created by nori on 2015/03/04.
// Copyright (c) 2015年 Noritaka Kamiya. All rights reserved.
//
#import "ViewController.h"
@nolili
nolili / gist:6e209065d172945cb2a8
Created February 10, 2015 08:02
Swift 1.2 if let...
var hello:String? = "Hello"
var goodbye:String? = "Goodbye"
// Swift 1.2
if let a = hello, b = goodbye {
println(a + " ," + b)
}
// Swift 1.1
if let a = hello {
@nolili
nolili / gist:302a1d512f09781ae3be
Created February 9, 2015 14:25
CBCentralManagerStateDescription
extension CBCentralManagerState:Printable{
public var description: String { get {
switch self {
case .Unknown:
return "Unknown"
case .Resetting:
return "Resetting"
case .Unsupported:
@nolili
nolili / gist:8d76128bb70d2263cb5a
Created November 15, 2014 08:28
CBCharacteristicからデータ取り出し
- (void) peripheral:(CBPeripheral *)aPeripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error
{
// 長さチェック、エラーチェックなどは省略している
NSData *data = characteristic.value;
uint8_t value[2] = {0x00, 0x00};
[data getBytes:value length:2];
}
@nolili
nolili / gist:a583ea045dafafebb17f
Last active June 22, 2020 01:41
Heart Rate Monitor Example(Swift)
import UIKit
import CoreBluetooth
class ViewController: UIViewController, CBCentralManagerDelegate, CBPeripheralDelegate {
let centralManager:CBCentralManager!
var connectingPeripheral:CBPeripheral!
required init(coder aDecoder: NSCoder) {