This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _loadScript = function(path, callback){ var script= document.createElement('script'); script.type= 'text/javascript'; script.src= path; document.head.appendChild(script); setTimeout(function() {callback();}, 5000); }; var draw = function() {var func = document.createElement('script'); func.type='text/javascript';var f='for (var i=20; i>0; i -= 1) { cornify_add(); }';func.innerText = f;document.head.appendChild(func);}; _loadScript('https://www.cornify.com/js/cornify.js', draw); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk 'BEGIN{OFS=FS=","} | |
{print $2, $5 } | |
' "file.csv" > output.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed = test_csv.csv | sed 'N;s/\n/,/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $inj = angular.injector(['App']); | |
var serv = $inj.get('$http'); | |
var x = serv({method: 'POST', url: 'http://127.0.0.1:5000'}).success(function(data){console.log(data)}).error(function(data, status, header){ console.log(data); console.log(status); console.log(header);}); | |
console.log(x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import warnings | |
from itertools import cycle, izip | |
from sklearn.utils import gen_even_slices | |
from sklearn.utils import shuffle | |
from sklearn.base import BaseEstimator | |
from sklearn.base import ClassifierMixin | |
from sklearn.preprocessing import LabelBinarizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "gensim_tutorial" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install the anaconda python distribution | |
echo 'grabbing the distro, note that you need to accept the license...' | |
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh | |
bash Anaconda*.sh | |
echo "all done, have a great day $USER" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cd into your top level directory ml-group/ | |
# add a remote called 'upstream' | |
git remote add upstream https://github.com/dcumachinelearning/ml-group.git | |
# pull from upstream | |
git pull upstream master | |
# push the new commits from upstream to your fork on github | |
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fraternize | |
sassafras's | |
frankish | |
franjo | |
refractor | |
frannie | |
infractions | |
frantically | |
frankfurters | |
frantically |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#Author: Chris Hokamp | |
#Spring 2013 | |
import sys | |
import requests | |
from BeautifulSoup import BeautifulSoup | |
import re | |
if len(sys.argv) != 4: |
OlderNewer