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
project_updates = [['noamlivne@gmail.com',250], | |
['farrellmeisel@gmail.com',3120], | |
['stterner@gmail.com',5592], | |
['hahellyer@gmail.com',300], | |
['dfaruqi@gmail.com ',2616], | |
['bfriedman9@gmail.com',3416], | |
['shadi.abuayyash@gmail.com',3128], | |
['evadgurevich@gmail.com',528], | |
['hamid.murad.khan@gmail.com',3832], |
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
#!/bin/bash | |
cat $(find app/assets/stylesheets/ -type f) | | |
grep -Eo '\.[a-z]+[a-z0-9_-]*' | sort | uniq | sed s/.// | | |
while read CSS; do | |
if ! grep -Erqi "([^(remove|has)]?class[(:|=|[:space:]*=>[:space:]*)]*[[:space:]\W]*[(\"|')]*[-a-z0-9[:space:]]*$CSS|\\.$CSS\b)" app/views/ vendor/assets/ app/assets/javascripts/; then | |
echo $CSS >> unused.scss; | |
fi | |
done |
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
Clinton: | |
Summary | |
Distinct words: 1339 out of 6101 (0.22) | |
Linear Histogram | |
Times said | Number of distinct words | |
0..10 | 1232 (20.19%) | |
10..20 | 52 (0.85%) | |
20..30 | 20 (0.33%) |
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 scipy.stats | |
from scipy import random | |
import heapq | |
import networkx as nx | |
from copy import deepcopy | |
import matplotlib.pyplot as plt | |
matplotlib.rcParams.update({'font.size': 22}) | |
class Community(): | |
""" |
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
states.each do |state| | |
csv = CSV.open("/mnt/nbec_voterdata/scott/match_stats/#{state.downcase}/county_zip5_birthdate_initials", 'wb') | |
table = MasterVoter.on(state) | |
totals = table.where({ is_dropped_from_file: false }).count(group: ['county', 'residential_zip5', 'born_at', "CONCAT(LEFT(first_name, 1), LEFT(last_name, 1))"]) | |
totals.values.each { |v| csv << [v] } | |
csv.close() | |
totals = nil | |
GC.start() | |
end |