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 polymorphicprotocolencoding.swift
import Foundation
struct SoundSample {}
protocol Effect: Codable {
var type: EffectType { get }
// Properties that we want
var name: String { get set }
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 inheritance failure.swift
import Foundation
struct SoundSample {}
class Effect: Codable {
// Properties we are intersted in
var name: String = ""
var active: Bool = true
@mdales
mdales / dvtcolorconvert.rb
Created Jan 24, 2011 — forked from aktowns/dvtcolorconvert.rb
Fork of aktowns' excellent little script for converting xcode3 color themes to xcode4. Just added rubygems import
View dvtcolorconvert.rb
#!/usr/bin/env ruby
# This script converts xccolorthemes to dtvcolorthemes for porting xcode 3.x themes to xcode 4.x
# created by ashley towns <ashleyis@me.com>
# Public domain.
# ./dvtcolorconvert <inputfile>
# spits out a .dtvcolortheme file
require 'rubygems'
require 'plist'
raise "Error: need a source file #{__FILE__} [file.xccolortheme]" if ARGV.length == 0
View mandiserver.go
package main
import (
"image"
"image/color"
"image/png"
"math/cmplx"
"log"
"net/http"
)
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:3121363
HOMEBREW_VERSION: 0.9.2
HEAD: 6740810501e9a615aee9ab4c9502f9229b7e0c04
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit dunno
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 4.3.0.0.1.1249367152
GCC-4.0: N/A
GCC-4.2: N/A
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.