Skip to content

Instantly share code, notes, and snippets.

View bpiwowar's full-sized avatar

Benjamin Piwowarski bpiwowar

View GitHub Profile
@bpiwowar
bpiwowar / understanding-word-vectors.ipynb
Created April 28, 2017 07:34 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
/**
* Class for working with BibTex data.
*
* Most the code comes from OSBib 3.0
* http://bibliophile.sourceforge.net under the GPL licence.
*
* @author B. Piwowarski
* @date November 2011
@bpiwowar
bpiwowar / cmake-xcode-4.3-compat.patch
Created March 2, 2012 14:02
Patch for cmake (2.8.7) for Xcode 4.3
diff --git Modules/Platform/Darwin.cmake Modules/Platform/Darwin.cmake
index 867c788..0e17b80 100644
--- Modules/Platform/Darwin.cmake
+++ Modules/Platform/Darwin.cmake
@@ -58,20 +58,22 @@ ENDIF(NOT DEFINED CMAKE_INSTALL_NAME_TOOL)
# Set the assumed (Pre 10.5 or Default) location of the developer tools
SET(OSX_DEVELOPER_ROOT "/Developer")
+# Use the xcode-select tool if it's available (Xcode >= 3.0 installations)
+FIND_PROGRAM(CMAKE_XCODE_SELECT xcode-select)
@bpiwowar
bpiwowar / exec.coffee
Created January 25, 2012 16:23 — forked from vman/exec.coffee
execordelay
#Load the client object model only if the sp.js script is loaded on this page.
ExecuteOrDelayUntilScriptLoaded loadCOM, "sp.js"