Skip to content

Instantly share code, notes, and snippets.

View floatplane's full-sized avatar

Brian Sharon floatplane

View GitHub Profile
@floatplane
floatplane / build.gradle
Created October 13, 2015 00:41
Gradle iOS test output
plugins {
id "org.openbakery.xcode-plugin" version "0.11.4"
}
xcodebuild {
target = 'Core'
scheme = 'CoreTests'
sdk = 'iphonesimulator'
destination {
name = 'iPad Retina'
@floatplane
floatplane / rtags + OS X.md
Last active December 6, 2018 02:13
rtags OS X
  1. brew install llvm --with-libcxx --with-clang --without-assertions --with-rtti
  2. git clone git@github.com:Andersbakken/rtags.git; cd rtags; git submodule init; git submodule update
  3. make a build directory, run cmake from it:

brian@brian-desktop.local: /Users/brian/src/rtags/build [master] $ LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config CMAKE_PREFIX_PATH=/usr/local/opt/llvm CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ cmake .. ```

  1. make && make install
  2. set up launchd integration: https://github.com/Andersbakken/rtags#integration-with-launchd-mac-os-x
  3. generate compile_commands.json: xctool -reporter json-compilation-database:compile_commands.json -workspace iOS/Paper/Paper.xcworkspace -scheme Paper -configuration Debug -derivedDataPath .build
@floatplane
floatplane / .lldbinit
Created May 7, 2015 17:05
Sample .lldbinit
# This file contains commands that LLDB will execute at startup. Drop it in your
# home directory: ~/.lldbinit
# Dump the UIKit view hierarchy
command regex rd 's/[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/.+$/po [%1 recursiveDescription]/'
# Try not to step into uninteresting library code. Needs some work.
settings set target.process.thread.step-avoid-regexp ^(std::(!function)|boost::shared_ptr)
# https://github.com/facebook/chisel
@floatplane
floatplane / gist:6226786
Last active August 18, 2023 13:20 — forked from remy/gist:2484402
jquery marquee plugin - forked to support percentage widths on marquee element, AMD wrapped
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
require(['jquery'], function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;