Skip to content

Instantly share code, notes, and snippets.

View BAProductions's full-sized avatar
💭
Making Test Build With Imported Repo

DJABHipHop BAProductions

💭
Making Test Build With Imported Repo
View GitHub Profile
@vvakame
vvakame / AppPickActionProvider.java
Created December 11, 2011 13:18
Android ActionProvider sample.
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;
@maxxscho
maxxscho / style.css
Created April 19, 2012 07:34
Wordpress Default CSS Styles
/* !-------- WORDPRESS CLASSES ------------------- */
/*------------------------------------------------------------ *\
\*------------------------------------------------------------ */
/* !-- WP WYSIWYG Editor Styles -- */
.entry-content img {
margin: 0 0 1.5em 0;
}
.alignleft, img.alignleft {
margin-right: 1.5em;
@JRHeaton
JRHeaton / midimsg.swift
Last active May 6, 2023 16:41
elegant midi message model w/ swift
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
}
@KentarouKanno
KentarouKanno / UIWebView.md
Last active March 30, 2023 17:20
UIWebView

UIWebView

★ UIWebViewのオブジェクト生成

var webView = UIWebView()
    
var webView: UIWebView = UIWebView()

// サイズを指定して生成
@mingsai
mingsai / MNGSoundManager.swift
Created February 12, 2016 17:45
A Swift class to manage initialization, playback and memory related to sound playback on iOS
//
// MNGSoundManager.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 10/26/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import Foundation
import AudioToolbox
@cliss
cliss / RxUIWebViewDelegateProxy.swift
Created March 29, 2016 13:48
Reactive Extensions for UIWebView
//
// RxUIWebViewDelegateProxy.swift
//
// Created by Casey Liss on 24/3/16.
// Copyright © 2016 Casey Liss. All rights reserved.
//
import Foundation
import RxSwift
import RxCocoa
@KentarouKanno
KentarouKanno / WKWebView.md
Last active March 30, 2023 17:24
WKWebView

WKWebView

import UIKit
import WebKit

class ViewController: UIViewController, WKNavigationDelegate {
    
    var wkWebView: WKWebView!
    let observerKeyName = ["estimatedProgress", "loading", "title", "URL", "hasOnlySecureContent", "canGoBack", "canGoForward"]
@jadar
jadar / SwiftMIDI.swift
Last active May 6, 2023 16:41
Swift class making use of AudioToolbox
//
// swift
// SwiftMIDI
//
// Created by Jacob Rhoda on 12/24/16.
// Copyright © 2016 Jadar. All rights reserved.
//
import Foundation
import CoreMIDI
@alecordev
alecordev / gist:28bbca245865bb8aaf8b964ec72bcc72
Created March 19, 2017 15:13
Wordpress - Import uploaded files to media library
/*
* 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.
*/