Linux: sudo apt-get install odt2txt
OS X: git clone https://github.com/dstosberg/odt2txt.git && cd odt2txt && make
public String partToString() throws Exception { | |
javax.servlet.http.Part part; | |
try (java.util.Scanner scanner = new java.util.Scanner(part.getInputStream())) { | |
if (scanner.useDelimiter("\\A").hasNext()) { | |
return scanner.next(); | |
} else { | |
return ""; | |
} | |
} | |
} |
# -*- coding: utf-8 -*- | |
""" Small script that shows hot to do one hot encoding | |
of categorical columns in a pandas DataFrame. | |
See: | |
http://scikit-learn.org/dev/modules/generated/sklearn.preprocessing.OneHotEncoder.html#sklearn.preprocessing.OneHotEncoder | |
http://scikit-learn.org/dev/modules/generated/sklearn.feature_extraction.DictVectorizer.html | |
""" | |
import pandas | |
import random |
% Succeeds if `Lines` represents the nonogram specified by `ColumnSpecs` and | |
% `LineSpecs`. For example: | |
%nonogram | |
% 1 | |
% 2 1 2 | |
% +------ | |
% 1 | . # . ColumnSpecs = [[2], [1,1], [2]] | |
% 1 1 | # . # LineSpecs = [[1], [1,1], [3]] | |
% 3 | # # # Lines = [[0,1,0], [1,0,1], [1,1,1]] | |
nonogram(ColumnSpecs, LineSpecs, Lines) :- |
import rx.Observable; | |
import rx.functions.Func1; | |
import rx.functions.Func2; | |
import static java.util.Arrays.asList; | |
import static java.util.Collections.singleton; | |
/** | |
* Computes the cartesian product of Observables. | |
* |
#!/bin/bash | |
# | |
# This script is useful if: | |
# - you have a manuscript that you want to upload to the arXiv, | |
# - you are using biblatex, and | |
# - you are using texlive2015 while arXiv is still on texlive2011 | |
# | |
# Put this file in a directory containing the manuscript you want to | |
# upload to arXiv.org, and adapt the paths below. |
#!/usr/bin/env bash | |
# This script is useful if: | |
# - you have a manuscript that you want to upload to the arXiv, | |
# - you are using biblatex, and | |
# - you are using a recent version of texlive while arXiv is still on texlive2011 | |
# | |
# Put this file in a directory containing the manuscript you want to | |
# upload to arXiv.org, and adapt the paths below. |
diff --git a/app.py b/app.py | |
index a2b76f9..cd4c055 100755 | |
--- a/app.py | |
+++ b/app.py | |
@@ -198,7 +198,8 @@ class SplashScreen(wx.SplashScreen): | |
self.control = Controller(self.main) | |
self.fc = wx.FutureCall(1, self.ShowMain) | |
- wx.FutureCall(1, parse_comand_line) | |
+ options, args = parse_comand_line() |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
Recently, GitHub introduced the change in how atx headers are parsed in Markdown files.
##Wrong
While this change follows the spec, it breaks many existing repositories. I took the README dataset which we created at source{d} and ran a simple