Skip to content

Instantly share code, notes, and snippets.

View asmaloney's full-sized avatar
👽
Support Ukraine

Andy Maloney asmaloney

👽
Support Ukraine
View GitHub Profile
@asmaloney
asmaloney / FixBrewTBB.cmake
Created April 19, 2020 14:13
Fix rpath to brew's TBB when running a build
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 November 30, 2016 13:18
Modified leaflet example for Rich
<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 September 14, 2023 14:45
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/
#!/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