DO NOT USE VSCODE terminal and make sure uname -m
returns arm64
- First Install Xcode command line tool
xcode-select --install
- Create and change
/opt
directories owner
#!/bin/bash | |
#make a package-specific makefile | |
# Requirement: set the environment variable STATA_PLATFORM | |
# The platform names are: | |
# WIN (32-bit x86) and WIN64A (64-bit x86-64) for Windows; | |
# MACINTEL (32-bit Intel, GUI), OSX.X86 (32-bit Intel, console), MACINTEL64 (64-bit Intel, GUI), OSX.X8664 (64-bit Intel, console), MAC (32-bit PowerPC), and OSX.PPC (32-bit PowerPC), for Mac; | |
# LINUX (32-bit x86), LINUX64 (64-bit x86-64), SOL64, and SOLX8664 (64-bit x86-64) for Unix. | |
# To do: generate this automatically |
import mercantile | |
from shapely.geometry import box, shape | |
from supermercado import burntiles | |
minzoom = 7 | |
maxzoom = 12 | |
maximum_items_per_tile = 20 | |
def stac_to_mosaicJSON(data): | |
dataset = data["features"] |
/** | |
* zipObject.js | |
* tags: { JavaScript, Array, Object } | |
* Given an array of valid property identifiers and an array of values, | |
* return an object associating the properties to the values. | |
* Since an object can have undefined values but not undefined property | |
* pointers, the array of properties is used to decide the structure of | |
* the resulting object using Array.prototype.reduce(). | |
*/ |
~/local/filegdb
. Here's an example path to one of the files: ~/local/filegdb/lib/libFileGDBAPI.dylib
~/local/filegdb
so it can stay isolated in it's own place. You can put it anywhere, but the next few steps might be different.~/local/filegdb
@rpath
's, so to avoid needing to mess with DYLD_LIBRARY_PATH
, I updated the @rpath
's using install_name_tool
. There might be a more elegant way to handle this. If so, comments are welcome!DYLD_LIBRARY_PATH
yourself:/* This code snippet is a part of the blog at | |
https://github.com/animeshtrivedi/blog/blob/master/post/2017-12-26-arrow.md | |
*/ | |
import com.google.common.collect.ImmutableList; | |
import org.apache.arrow.memory.RootAllocator; | |
import org.apache.arrow.vector.*; | |
import org.apache.arrow.vector.dictionary.DictionaryProvider; | |
import org.apache.arrow.vector.types.FloatingPointPrecision; | |
import org.apache.arrow.vector.types.pojo.ArrowType; |
# If you don't list all dependencies for code (because maybe it varies programmatically) then you can force a remake by doing 'make -B <target>. Note that it will remake all dependencies! | |
#nice-ness. Uncomment a line to enable. Default is +10 | |
#nice_prefix := nice | |
#nice_prefix := nice -n10 | |
############################# Project-specific Entries #################### | |
# which entries use parallel and need a windows gateway | |
# from $grep -r eval_synth . --include="*.do" |
# get api token with proper perms, ensure full "repos" for private repo access. | |
$ export auth="Authorization: token 123345465hfghfghfghgfhgfhfg" | |
$ export org="your_org" | |
# get the last page in the Link header. github API limits per_page to 100. Anything over this will require pagination. | |
$ curl -I -H "$auth" https://api.github.com/orgs/$org/repos | |
# go over all pages. Put this in a script, and save it. | |
#!/bin/bash |