Skip to content

Instantly share code, notes, and snippets.

Michael Dales mdales

Block or report user

Report or block mdales

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ca85b8135818d0dfc89438c5d73a8c50
Process: boundless [59578]
Path: /Users/USER/Library/Application Support/Steam/*/boundless.app/Contents/MacOS/boundless
Identifier: com.turbulenz.boundless
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: boundless [59578]
User ID: 501
Date/Time: 2018-06-23 11:04:59.128 +0100
View gist:e2bf2d2e3b8e3c1aeb532b3196f8bdd5
Process: boundless [4690]
Path: /Users/USER/Library/Application Support/Steam/*/boundless.app/Contents/MacOS/boundless
Identifier: com.turbulenz.boundless
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: boundless [4690]
User ID: 501
Date/Time: 2018-06-16 20:42:08.326 +0100
View gist:119380440b72a52bb5bb06a1fa33b3ef
[2018-06-16 19:41:17.395] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/appbase/macosx/macosxentry.mm:318 TryPixelFormatsGot NSOpenGLPixelFormat for samples:1, opengl32:true
[2018-06-16 19:41:17.395] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/appbase/macosx/macosxentry.mm:395 -[NativeEntryView initWithFrame:]Format: alpha 8, depth 24, stencil 0
[2018-06-16 19:41:17.397] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/browserfeatures/filecache.cpp:169 InitializeCache dir: /Users/michael/Library/Caches/com.turbulenz.boundless/
[2018-06-16 19:41:17.398] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/native/src/appbase/standaloneplatformreaders.cpp:574 SetHttpCachePathHttpCache: enabled (/Users/michael/Library/Caches/com.turbulenz.boundless)
[2018-06-16 19:41:17.532] [INFO] /Users/autobuild/jenkins/workspace/boundless-macosx-deploy/game/client/standalone/standalone.cpp:70 ApplicationStartupGameCod
View polymorphicprotocolencoding.swift
import Foundation
struct SoundSample {}
protocol Effect: Codable {
var type: EffectType { get }
// Properties that we want
var name: String { get set }
View inheritance failure.swift
import Foundation
struct SoundSample {}
class Effect: Codable {
// Properties we are intersted in
var name: String = ""
var active: Bool = true
View mandiserver.go
package main
import (
"image"
"image/color"
"image/png"
"math/cmplx"
"log"
"net/http"
)
@mdales
mdales / gist:6b97ff366f210d741178
Created Mar 22, 2015
Script in swift to write a view out to a TIFF file
View gist:6b97ff366f210d741178
#!/usr/bin/env xcrun swift
import Cocoa
// library code (one day)
func convertViewToTIFF(view: NSView) -> NSData? {
let application = NSApplication.sharedApplication()
application.setActivationPolicy(NSApplicationActivationPolicy.Accessory)
View gist:83a99f9afe948ae903bb
SUMMARY="Irssi is a command line irc client"
DESCRIPTION="Irssi is a command line irc client"
HOMEPAGE="http://www.irssi.org/"
SRC_URI="http://www.irssi.org/files/irssi-0.8.16-rc1.tar.gz"
CHECKSUM_SHA256="bb6c0125db30b697f80837941c17372b7484c64d57a6920b8bfa7ee3def92de3"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
SOURCE_DIR="irssi-0.8.16-rc1"
View gist:3124189
pisteuo[/tmp]% /usr/bin/clang -v -Os -w -pipe -march=native -Qunused-arguments -arch i386 -arch x86_64 -isystem /usr/local/include -L/usr/local/lib conftest.cApple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
"/usr/bin/clang" -cc1 -triple i386-apple-macosx10.7.4 -emit-obj -disable-free -disable-llvm-verifier -main-file-name conftest.c -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -target-cpu i686 -target-linker-version 128.2 -v -resource-dir /usr/bin/../lib/clang/3.1 -isystem /usr/local/include -fmodule-cache-path /var/folders/br/8tl1xl954m13qt180qp_csf80000gn/T/clang-module-cache -Os -w -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/br/8tl1xl954m13qt180qp_csf80000gn/T/conftest-SCpybJ.o -x c conftest.c
clang -cc1 version 3.1 based upon llvm 3.
View gist:3121367
pisteuo[/tmp]% /usr/bin/clang -v -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -arch i386 -arch x86_64 -isystem /usr/local/include -L/usr/local/lib -arch i386 -arch x86_64 conftest.c 8:32
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
"/usr/bin/clang" -cc1 -triple i386-apple-macosx10.7.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name conftest.c -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -target-cpu i686 -target-linker-version 128.2 -v -resource-dir /usr/bin/../lib/clang/3.1 -isystem /usr/local/include -fmodule-cache-path /var/folders/br/8tl1xl954m13qt180qp_csf80000gn/T/clang-module-cache -Os -w -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 249 -stack-protector 1 -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/br/8tl1xl954m13qt18
You can’t perform that action at this time.