★ UIWebViewのオブジェクト生成
var webView = UIWebView()
var webView: UIWebView = UIWebView()
// サイズを指定して生成
package net.vvakame.sapmle; | |
import java.util.List; | |
import android.content.Context; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageManager; | |
import android.util.Log; | |
import android.view.ActionProvider; | |
import android.view.Menu; |
/* !-------- WORDPRESS CLASSES ------------------- */ | |
/*------------------------------------------------------------ *\ | |
\*------------------------------------------------------------ */ | |
/* !-- WP WYSIWYG Editor Styles -- */ | |
.entry-content img { | |
margin: 0 0 1.5em 0; | |
} | |
.alignleft, img.alignleft { | |
margin-right: 1.5em; |
import CoreMIDI | |
enum ChannelMessage { | |
case NoteOn(key: UInt8, velocity: UInt8) | |
case NoteOff(key: UInt8) | |
case ControlChange(controller: UInt8, value: UInt8) | |
func bytesForChannel(channel: Int) -> [UInt8] { | |
let status = { $0 | (UInt8(channel) & 0x0F) } | |
let removeMSB = { $0 & UInt8(0x7F) } |
import XCPlayground | |
import CoreMIDI | |
XCPSetExecutionShouldContinueIndefinitely(true) | |
func notifyProc(a: UnsafePointer<MIDINotification>, b: UnsafeMutablePointer<Void>) -> Void { | |
let notification = a[0] | |
notification.messageID | |
notification.messageSize | |
} |
// | |
// MNGSoundManager.swift | |
// | |
// | |
// Created by Tommie N. Carter, Jr., MBA on 10/26/15. | |
// Copyright © 2015 MING Technology. All rights reserved. | |
// | |
import Foundation | |
import AudioToolbox |
// | |
// RxUIWebViewDelegateProxy.swift | |
// | |
// Created by Casey Liss on 24/3/16. | |
// Copyright © 2016 Casey Liss. All rights reserved. | |
// | |
import Foundation | |
import RxSwift | |
import RxCocoa |
// | |
// swift | |
// SwiftMIDI | |
// | |
// Created by Jacob Rhoda on 12/24/16. | |
// Copyright © 2016 Jadar. All rights reserved. | |
// | |
import Foundation | |
import CoreMIDI |
/* | |
* This function scans through all files in the wp-content/uploads | |
* folders and imports them into the media library. This should be | |
* included in your theme's functions.php file. Simply visit your | |
* website, including the URL param: | |
* http://www.example.org/?import_non_existing_media_library_entries=1 | |
* | |
* Plan on it timing out a few times. Just keep refreshing. It won't | |
* duplicate files being imported. | |
*/ |