wc -l empty_searches_7d.log
12914 empty_searches_7d.log
cat empty_searches_7d.log | jq -c '[ .q, .lang ]' | sort | uniq | wc -l
7670
so
7670/12914
.5939
wc -l empty_searches_7d.log
12914 empty_searches_7d.log
cat empty_searches_7d.log | jq -c '[ .q, .lang ]' | sort | uniq | wc -l
7670
so
7670/12914
.5939
import requests | |
import json | |
import sys | |
import time | |
import os | |
if len(sys.argv) < 3: | |
raise Exception("Usage: python throw-into-skyfish.py <folder_id> <file_path>") | |
auth = {'Authorization': 'CBX-SIMPLE-TOKEN Token=TOKENGOESHERE'} |
git add -p
will let you add changes to parts of a file
git commit -a
will commit all changes to all files known to git
I want to change what I did in the previous commit. Make everything look like you want it to look. Add the changes and commit with:
git commit --amend
git grep -n -w "FIXME\|TODO\|XXX" | awk '{ print $1 }' | while read fileline; do | |
filename=`echo $fileline | cut -d: -f1` | |
lineno=`echo $fileline | cut -d: -f2` | |
time=`git blame -p -t $filename -L$lineno,$lineno | grep author-time | cut -d' ' -f2` | |
msg=`git blame $filename -L$lineno,$lineno` | |
echo "$time $fileline $msg" | |
done | sort | cut -d' ' -f1- |
There are as many kinds of tests there are names for them. However, there are three useful classes of tests that I will cover
Unit tests tests the smallest possible part of the system. This could be a function which determines if a license needs renewal. This implies that unit tests do not touch the database.
Integration tests tests the boundaries between classes. Integration tests may rely on the database, multiple classes and so on. They strive to make sure that a specific feature is working. This could "Does User::getById work?".