(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
load local data infile 'tfidf.csv' into table tfidf fields terminated by "|" lines terminated by '\n'(term, tag, count); | |
DELIMITER // | |
CREATE PROCEDURE tfidf_applier() | |
begin | |
declare res1 INT; | |
set res1 = (select count(distinct tag) from tfidf); | |
drop table if exists log_term_table; | |
create table log_term_table(term varchar(200), logval decimal(20,5)); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Picking the right architecture = Picking the right battles + Managing trade-offs
from __future__ import (absolute_import, division, print_function, | |
unicode_literals) | |
from sqlalchemy import Column, MetaData, Table, create_engine | |
from sqlalchemy import String, Integer, Float, BigInteger, DateTime | |
from sqlalchemy.schema import DropTable, CreateTable | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
<?php | |
/** | |
* deploy.php by Hayden Schiff (oxguy3) | |
* Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9 | |
* | |
* No rights reserved. Dedicated to public domain via CC0 1.0 Universal. | |
* See https://creativecommons.org/publicdomain/zero/1.0/ for terms. | |
*/ | |
// random string of characters; must match the "Secret" defined in your GitHub webhook |
import hashlib | |
import sys | |
from concurrent.futures import ProcessPoolExecutor | |
from time import sleep, time | |
def t1(n): | |
"""Silly function whose time increases as n does.""" | |
for i in range(n): |
A simple script in python3.x
to
To send email from the local SMTP server (localhost) it is assumed that a mail transfer agent (MTA), like postfix, is already configured on your local system. If not the follow this gist for step by step setup.
To send email from the gmail server you need to allow access for less secure apps in your Google account