Skip to content

Instantly share code, notes, and snippets.

@Valid
Valid / gist:27e27c8c1fffcff8c8d38f98afe30837
Created March 12, 2018 16:56
Check Voter Registration Links by State (2018 edition)
Alabama- https://myinfo.alabamavotes.gov/VoterView/RegistrantSearch.do
Alaska- https://myvoterinformation.alaska.gov/
Arizona- https://voter.azsos.gov/VoterView/RegistrantSearch.do
Arkansas- https://www.voterview.ar-nova.org/VoterView/RegistrantSearch.do
California- https://voterstatus.sos.ca.gov/
Colorado- https://www.sos.state.co.us/voter/pages/pub/olvr/findVoterReg.xhtml
Connecticut- http://www.dir.ct.gov/sots/LookUp.aspx
Delaware- https://ivote.de.gov/voterlogin.aspx
Florida- https://registration.elections.myflorida.com/CheckVoterStatus
Georgia- https://www.mvp.sos.ga.gov/MVP/mvp.do
@Valid
Valid / gist:5667d9df5b6327b60b92a6d90fa09a4e
Created March 12, 2018 15:45
Check registration links for every state + DC
Alabama- https://myinfo.alabamavotes.gov/VoterView/RegistrantSearch.do
Alaska- https://myvoterinformation.alaska.gov/
Arizona- https://voter.azsos.gov/VoterView/RegistrantSearch.do
Arkansas- https://www.voterview.ar-nova.org/VoterView/RegistrantSearch.do
California- http://www.sos.ca.gov/elections/registration-status/
Connecticut- http://www.dir.ct.gov/sots/LookUp.aspx
Delaware- https://ivote.de.gov/voterinfo.aspx
Florida- http://registration.elections.myflorida.com/CheckVoterStatus
Georgia- https://www.mvp.sos.ga.gov/MVP/mvp.do
Idaho- http://www.idahovotes.gov/AbsenteeBallot/Default.aspx
RewriteEngine on
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTP_USER_AGENT} facebookexternalhit
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]
@Valid
Valid / css
Created February 1, 2016 06:08
/r/SandersForPresident "hack" css animation
@keyframes spin {
0% {
transform: rotate(0deg);
background-color: red;
border-color: red;
font: red
}
12% {
transform: rotate(45deg);
background-color: orange;
var sys = require('sys'),
http = require('http'),
cookie = require('cookie'),
count = 0;
initConnect = function(clientID) {
connectSite = http.createClient(80, 'ws30.sync.skoreit.com');
connectRequest = connectSite.request('POST', '/request.ashx?key=11111111-1111-1111-1111-111111111111&token=' + new Date().getTime(), {
'host': 'ws30.sync.skoreit.com',
'Content-type': 'text/json; charset=utf-8',
require.paths.unshift('lib')
require.paths.unshift('/usr/local/lib/node/.npm/html5/active/package/deps/jsdom/lib')
var HTML5 = require('html5'),
Script = process.binding('evals').Script,
sys = require('sys'),
fs = require('fs'),
jsdom = require('jsdom'),
http = require('http'),
window = jsdom.createWindow(null, null, {
parser: HTML5,
require.paths.unshift('lib')
require.paths.unshift('deps/jsdom/lib')
var HTML5 = require('html5'),
Script = process.binding('evals').Script,
sys = require('sys'),
fs = require('fs'),
jsdom = require('jsdom'),
http = require('http'),
window = jsdom.createWindow(null, null, {
parser: HTML5,
ubuntu@domU-12-31-38-02-50-19:/usr/local/lib/node/.npm/html5/active/package$ ls
COPYING doc lib n package.json tc.html temp.tar.gz test.js t.html tools
deps DOCUMENTATION.md Makefile n2 README.md tc.js testdata tests t.js t.sh
ubuntu@domU-12-31-38-02-50-19:/usr/local/lib/node/.npm/html5/active/package$ cat ~/webroot/test.js
var HTML5 = require('html5'),
Script = process.binding('evals').Script,
sys = require('sys'),
fs = require('fs'),
jsdom = require('jsdom'),
window = jsdom.createWindow(null, null, {parser: HTML5});
ubuntu@domU-12-31-38-02-50-19:~/webroot$ npm install html5
npm info it worked if it ends with ok
npm info using npm@0.2.4-1
npm ERR! Error installing html5@v0.2.5
npm ERR! Error: version not found: v0.2.5 undefined: html5/v0.2.5
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.4-1/package/lib/utils/registry/request.js:98:19)
npm ERR! at IncomingMessage.emit (events:41:20)
npm ERR! at HTTPParser.onMessageComplete (http:107:23)
npm ERR! at Client.ondata (http:886:22)
npm ERR! at IOWatcher.callback (net:510:29)
sys = require('sys');
getData = function(field, callback) {
console.log('this would get the data from ' + field + ' then continue');
//db.getFromField(field, function(error, response) {
//if(!error) {
// data = response
// callback(data);
callback('some data');
//}