Skip to content

Instantly share code, notes, and snippets.

@gatapia
gatapia / poc_duration.ipynb
Created Apr 13, 2018
What is the optimal length of a machine learning proof of concept project
View poc_duration.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gatapia
gatapia / dead_lock.py
Created Apr 28, 2014
A python script that causes deadlocks in ipython
View dead_lock.py
import sklearn as sk
import numpy as np
import pandas as pd
import scipy as scipy
import cPickle as pickle
import math
from collections import Counter
from sklearn.cross_validation import train_test_split
from sklearn.cross_validation import cross_val_score
View bug.py
import sklearn as sk
import numpy as np
import scipy as scipy
import cPickle as pickle
from sklearn.cross_validation import cross_val_score
from sklearn.cross_validation import ShuffleSplit
from scipy.stats import sem
# Models
@gatapia
gatapia / PicNetCommandLineRunner.java
Created Oct 18, 2011
PicNet Closure Compiler - Ignoring the goog namespace and the externs.zip
View PicNetCommandLineRunner.java
package picnet.closurecompiler;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
import picnet.closurecompiler.pass.*;
View Drag.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Drag example</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://jeffrey.reactiveextensions.net/rx.js" type="text/javascript"></script>
<script src="http://jeffrey.reactiveextensions.net/rx.jQuery.js" type="text/javascript"></script>
<script type="text/javascript">
function drag(dragTarget) {
@gatapia
gatapia / sqlappender.sql
Created May 10, 2011
A better, faster SQL Server and Azure log appender for log4net
View sqlappender.sql
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using log4net.Appender;
using log4net.Core;
using log4net.Layout;