Skip to content

Instantly share code, notes, and snippets.

View Moncader's full-sized avatar

Jason Parrott Moncader

  • GREE Inc.
  • Chiba Japan
  • 01:36 (UTC +09:00)
View GitHub Profile
@Moncader
Moncader / gist:3521832
Created August 30, 2012 02:38
JS Class Style Inheriting
function inherit(pThis, pBase) {
pThis.prototype = Object.create(pBase.prototype);
pThis.prototype.constructor = pThis;
pThis.prototype.super = pBase.prototype;
}
function Animal() {
this.type = 'animal';
this.num = 34;
}
@Moncader
Moncader / gist:5011288
Created February 22, 2013 06:48
Pretending to be an Array (like DOMTokenList needs to do)
function DOMTokenList() {
Object.defineProperty(this, 'length', {
enumerable: true,
configurable: false,
get: function() {
var tLargestNumber = -1;
var tKeys = Object.keys(this);
var tTemp, tKey;
for (var i = 0, il = tKeys.length; i < il; i++) {
@Moncader
Moncader / designer.html
Created September 9, 2014 01:55
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-progress/paper-progress.html">
<polymer-element name="my-element">
11-16 15:48:53.611 20335-20335/? I/WCNSS_FILTER: ibs_msm_serial_clock_vote: vote UART CLK ON using UART driver's ioctl()
11-16 15:48:53.646 20307-20341/? W/bt_smp: smp_br_connect_callback is called on unexpected transport 2
11-16 15:48:53.646 20307-20341/? W/bt_btif: bta_dm_acl_change info: 0x0
11-16 15:48:53.646 20307-20341/? E/bt_btif: bta_gattc_rebuild_cache: bta_gattc_rebuild_cache
11-16 15:48:53.646 20307-20328/? D/bt_btif_dm: remote version info [54:ab:3a:fc:15:14]: 0, 0, 0
11-16 15:48:53.647 20307-20328/? E/BluetoothRemoteDevices: state12newState0
11-16 15:48:53.649 20307-20328/? D/BtGatt.GattService: onConnected() - clientIf=7, connId=7, address=54:AB:3A:FC:15:14
11-16 15:48:53.650 12989-13001/? D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=7 device=54:AB:3A:FC:15:14
11-16 15:48:53.651 12989-6849/? D/BluetoothGatt: requestConnectionPriority() - params: 1
11-16 15:48:53.655 20307-20318/? D/BtGatt.GattService: connectionParameterUpdate() - address=54:AB:3A:FC:15:14params=1 interval=9/12
import Foundation
import os.log
public class OrientationFixFlutterViewController : FlutterViewController {
fileprivate var _orientationPreferences: UIInterfaceOrientationMask = .all
override public var supportedInterfaceOrientations: UIInterfaceOrientationMask {
get { return _orientationPreferences }
}