Skip to content

Instantly share code, notes, and snippets.

View CINJ's full-sized avatar

Joe Cincotta CINJ

  • Sydney, Australia
View GitHub Profile

With a somewhat complex set of data science related dependencies (matplotlib, scikitlearn, and pytorch amongst others) I initially I came across this error: 

Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized OMP: Hint: This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

The solutions I found to this problem when searching was primarily around forcing the Conda environment to use X86 (basicall

@CINJ
CINJ / gitkraken-update.sh
Created May 1, 2019 01:31
GitKraken Update Script
#!/bin/bash
# This script can be put in your local user directory
# It is used to update GitKraken with one command
# Remember to enter 'chmod u+x gitkraken-update.sh'
cd /tmp
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb
sudo dpkg -i gitkraken-amd64.deb
@CINJ
CINJ / bing.py
Created February 25, 2019 21:32
Python Wrapper for Bing Web Search API
__author__ = "Joe Cincotta, Iwan Cornelius, Michael Grassi and Gelin Luo"
__copyright__ = "Copyright 2017-2019, Thinking.Studio"
__version__ = "1.0"
__maintainer__ = "CINJ"
__status__ = "Production"
"""
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit