Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Byron Wright bslayerw

🏠
Working from home
View GitHub Profile
View HomeScreenDatSource.swift
class HomeScreenDataSource: NSObject,
UICollectionViewDataSource,
UICollectionViewDelegateFlowLayout {
var homescreenViewController: HomeScreenBaseViewController
var screenItems: [Model.ScreenItem] {
Model.DataStore.shared.universalHome?.screens?.screenItems ?? []
}
@bslayerw
bslayerw / LightController.cs
Last active Apr 2, 2021
Light2D simple intensity tween
View LightController.cs
#region MIT License
// # Released under MIT License
//
// Copyright (c) 2021 Byron Wright.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
@bslayerw
bslayerw / kube-flannel.yml
Created Aug 28, 2017
Kubernetes Flannel resource configuration
View kube-flannel.yml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: flannel
namespace: kube-system
---
kind: ConfigMap
apiVersion: v1
metadata:
@bslayerw
bslayerw / kube-flannel-rbac.yml
Created Aug 28, 2017
Kubernetes Flannel RBAC resource
View kube-flannel-rbac.yml
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- pods
@bslayerw
bslayerw / # opencv3 - 2016-09-27_12-34-25.txt
Created Sep 27, 2016
opencv3 (homebrew/science/opencv3) on macOS 10.12 - Homebrew build logs
View # opencv3 - 2016-09-27_12-34-25.txt
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12
Build date: 2016-09-27 12:34:25
View gist:f72918c295c8dc91a2c1
platform :ios, '6.0'
inhibit_all_warnings!
pod 'AFNetworking', '1.3.4'
pod 'MagicalRecord', '2.2'
pod 'PonyDebugger', '0.3.0'
#pod 'GoogleTagManager', :path => './third_party/GoogleTagManager.podspec'
pod 'ZBarSDK', '1.3.1'
pod 'CrittercismSDK', '3.5.1'
pod 'SMCalloutView', '1.1'
View gist:1420710
function onSensorCollide ( phase, fixtureA, fixtureB, arbiter )
if phase == MOAIBox2DArbiter.BEGIN then
if fixtureA.userData._beginAction then
callbackThread = MOAIThread.new ()
callbackThread:run (
function ()
fixtureA.userData._beginAction(fixtureB)
end
)