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
// Modified from http://pipetree.com/qmacro/blog/2011/10/automated-email-to-task-mechanism-with-google-apps-script/ | |
// Globals, constants | |
var LABEL_PENDING = "pending"; | |
var LABEL_DONE = "done"; | |
// processPending(sheet) | |
// Process any pending emails and then move them to done | |
function processPending_(sheet) { | |
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
#include <iostream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <X11/Xlib.h> |
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
<p> | |
<details> | |
<summary>Click this to collapse/fold.</summary> | |
These details <em>remain</em> <strong>hidden</strong> until expanded. | |
<pre><code>PASTE LOGS HERE</code></pre> | |
</details> | |
</p> |
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
git checkout -B master origin/master |
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
conda create --name name python=3.7 | |
conda activate name | |
conda deactivate |
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
alembic init | |
alembic revision --autogenerate -m "Migration comment" | |
alembic upgrade head |
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
from xml.sax.saxutils import escape | |
from datetime import datetime | |
from bs4 import BeautifulSoup | |
headerXml = """<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd"> | |
<en-export application="Evernote" version="Evernote Mac">""" | |
footerXml = "</en-export>" |
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
%lex | |
%{ | |
var parser = yy.parser; | |
%} | |
%% | |
\n return 'NEWLINE' | |
\s+ /* skip whitespace */ |
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 csv | |
import numpy as np | |
from sklearn.cross_validation import KFold | |
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer | |
from sklearn.feature_selection import SelectPercentile, f_classif | |
from sklearn.metrics import accuracy_score, precision_recall_fscore_support | |
from sklearn.pipeline import Pipeline | |
from sklearn.svm import SVC | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn.naive_bayes import MultinomialNB |
NewerOlder