Skip to content

Instantly share code, notes, and snippets.

View skystrife's full-sized avatar

Chase Geigle skystrife

View GitHub Profile
@skystrife
skystrife / sigir18-topic-models.ipynb
Created July 8, 2018 13:17
SIGIR18: Probabilistic Topic Models Hands-on 2 (Text Mining)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skystrife
skystrife / sigir18-retrieval.ipynb
Created July 8, 2018 13:16
SIGIR18: Probabilistic Topic Models Hands-on Exercise 1 (Retrieval)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skystrife
skystrife / KDD 2017.ipynb
Last active August 16, 2017 22:29
KDD 2017 Tutorial Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skystrife
skystrife / llvm38.rb
Created April 16, 2016 06:51
LLVM 3.8 with clang, libc++, and libc++abi + CMake toolchain file for Linuxbrew
class CodesignRequirement < Requirement
include FileUtils
fatal true
satisfy(:build_env => false) do
mktemp do
touch "llvm_check.txt"
quiet_system "/usr/bin/codesign", "-s", "lldb_codesign", "--dryrun", "llvm_check.txt"
end
end
@skystrife
skystrife / PKGBUILD.diff
Created February 5, 2016 12:31
Fix for mingw-w64-clang PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index 5ecf3c9..acecc97 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Mildred Ki'Lya <mildred-pub.aur@mildred.fr>
pkgname=mingw-w64-clang
-pkgver=r70.fc6bf05
+pkgver=r76.e3b174e
@skystrife
skystrife / default_argument_lambda.cpp
Created September 6, 2015 03:34
Example of default argument of a member function template being a lambda causing GCC 4.8.1 to ICE
#include <functional>
#include <iostream>
struct herp
{
template <class T>
void derp(T something,
std::function<void()> callback = [](){}) // <-- gcc 4.8.1 explodes here
{
std::cout << "Something: " << something << "\n";
// do some work
@skystrife
skystrife / gist:2434581
Created April 21, 2012 06:03
Add chained attr accessors using coffeescript classes
# utility that allows us to defined chained attr accessors on classes
Function::chain_accessor = (attrs...) ->
for attr in attrs
# add the function to the prototype. we wrap the function in a closure
# to ensure that "attr" keeps its value so we are accessing the right
# attribute when we call this function later
@::[attr] = do (attr) ->
(data) ->
return @["_#{attr}"] unless data?
@["_#{attr}"] = data