Skip to content

Instantly share code, notes, and snippets.

eminarcissus /
Created June 25, 2018 05:57 — forked from MatthiasWinkelmann/
Tensorflow 1.7 Mac OS Sierra 10.12 GPU Support


System information

  • OS - Sierra 10.12
  • Tensorflow - 1.7.0
  • Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
  • Cmake - 3.11
  • Bazel - 0.11.1
eminarcissus /
Created February 7, 2018 17:25 — forked from lyoshenka/
Search Git commit history for a string and see the diffs

Searching Git commit history

This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:

To find which commits and which files a string was added or removed in:

git log -S'search string' --oneline --name-status

To see the diff of that

eminarcissus /
Last active March 20, 2023 19:30 — forked from dulacp/
Download & Compile Libjpeg for iOS (all architectures)
# Builds a Libjpeg framework for the iPhone and the iPhone Simulator.
# Creates a set of universal libraries that can be used on an iPhone and in the
# iPhone simulator. Then creates a pseudo-framework to make using libjpeg in Xcode
# less painful.
# To configure the script, define:
# IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1)
# Then go get the source of the libjpeg you want to build, shove it in the
# same directory as this script, and run "./". Grab a cuppa. And voila.
eminarcissus / beam-search.js
Created June 5, 2016 18:39 — forked from Leko/beam-search.js
View beam-search.js
// 結論(出力結果)
// Rank 1: Sum: 486, HELMS-05(54)
// BODIES-05(50)
// FOLDS-01(141)
// HANDS-04(120)
// LEGS-04(121)
// Rank 2: Sum: 484, HELMS-05(54)
// BODIES-05(50)
// FOLDS-05(139)
// HANDS-04(120)
eminarcissus /
Last active April 4, 2016 13:05 — forked from omz/
File Transfer script for Pythonista (iOS)
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from
# and to Pythonista via local Wifi.
# It starts a basic HTTP server that you can access
# as a web page from your browser.
# When you upload a file that already exists, it is
# renamed automatically.
# From Pythonista's settings, you can add this script
# to the actions menu of the editor for quick access.