Skip to content

Instantly share code, notes, and snippets.

View gatapia's full-sized avatar

Guido Tapia gatapia

View GitHub Profile
@gatapia
gatapia / sqlappender.sql
Created May 10, 2011 20:57
A better, faster SQL Server and Azure log appender for log4net
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;
<!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 / PicNetCommandLineRunner.java
Created October 18, 2011 19:54
PicNet Closure Compiler - Ignoring the goog namespace and the externs.zip
package picnet.closurecompiler;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
import picnet.closurecompiler.pass.*;
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 / dead_lock.py
Created April 28, 2014 06:22
A python script that causes deadlocks in ipython
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
@gatapia
gatapia / poc_duration.ipynb
Created April 13, 2018 02:13
What is the optimal length of a machine learning proof of concept project
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.