Skip to content

Instantly share code, notes, and snippets.

Avatar
👽
Situation no change

Andy Maloney asmaloney

👽
Situation no change
View GitHub Profile
@asmaloney
asmaloney / FixBrewTBB.cmake
Created Apr 19, 2020
Fix rpath to brew's TBB when running a build
View FixBrewTBB.cmake
if ( APPLE )
option( FIX_TBB_RPATH
"Fix rpath to brew's TBB when running a build (see comment in CMakeLists.txt)"
ON
)
# The problem:
# When installed with homebrew, the TBB library libtbbmalloc_proxy.dylib
# includes an RPATH to libtbbmalloc.dylib. When you build & run your
# application, it might not be able to find this library and you end up
@asmaloney
asmaloney / Leaflet example modified
Last active Nov 30, 2016
Modified leaflet example for Rich
View Leaflet example modified
<script type='text/javascript'>
var markers = [
{
"name": "Canada",
"url": "https://en.wikipedia.org/wiki/Canada",
"lat": 56.130366,
"lng": -106.346771
},
{
"name": "Anguilla",
@asmaloney
asmaloney / Packaging_Example.sh
Last active Mar 29, 2021
This is an example of script to package up and create a DMG for a Mac OS X app. Details may be found here: http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
View Packaging_Example.sh
#!/bin/bash
# by Andy Maloney
# http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
# make sure we are in the correct dir when we double-click a .command file
dir=${0%/*}
if [ -d "$dir" ]; then
cd "$dir"
fi