I hereby claim:
- I am aljohri on github.
- I am aljohri (https://keybase.io/aljohri) on keybase.
- I have a public key ASCyU9tkT0bjxapcWTiBVdT7EoTbrMpG6saIZ-iPeX-LSQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python2 | |
import re | |
import json | |
import requests | |
import execjs | |
response = requests.get("https://obamawhitehouse.archives.gov/interactive-budget") | |
m = re.search(r"//init data(.*)//init TreeMap", response.text, re.S) | |
js = m.groups()[0].replace('var json = ', '').replace(';', '') |
(function() { | |
function removeQuerySelector(selector) { | |
var el = document.querySelector(selector); | |
if (el) el.parentNode.removeChild(el); | |
} | |
removeQuerySelector('.header-wrap'); | |
removeQuerySelector('.share-wrap'); | |
removeQuerySelector('#pl_widget-schools'); | |
removeQuerySelector('.pl_widget-contact'); |
import re | |
import datetime | |
import requests | |
import lxml.html | |
def strip_within(s): | |
return re.sub(' +', ' ', s) | |
def get_nomination(s, congress, number): | |
url = f"https://www.congress.gov/nomination/{congress}/{number}" |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import socket | |
import struct | |
import sys | |
import os | |
import time | |
# see com.intellij.idea.SocketLock for the server side of this interface |
; https://github.com/r0man/sqlingvo/issues/75 | |
(ns my-proj.core | |
(:gen-class) | |
(:require [clojure.string :as str] | |
[sqlingvo.core :as sql] | |
[sqlingvo.util :refer [sql-quote-backtick]] | |
[sqlingvo.compiler :refer | |
[defarity compile-2-ary | |
compile-fn concat-sql compile-sql-join |
setInterval(function() { | |
console.log('ping'); | |
setTimeout(function() { | |
var hangoutChatIFrame = document.querySelector("#hangout-landing-chat").firstElementChild.contentWindow.document; | |
var conversationList = hangoutChatIFrame.querySelector("div[aria-label = Conversations]"); | |
var firstChat = conversationList.firstElementChild.firstElementChild.firstElementChild; | |
firstChat.click(); | |
setTimeout(function() { | |
var chatWindowIFrame = document.querySelector("body > .Cl").firstElementChild.contentWindow.document; | |
var settingsButton = chatWindowIFrame.querySelector("body > div > div:nth-child(3) > div > div > div > div > div > div > div:nth-child(2) > div > div > div > div > div:nth-child(2) button"); |
// document.querySelector("#messaging-view > div > md-content > div > gv-conversation-list > md-virtual-repeat-container > div > div.md-virtual-repeat-offsetter > div:nth-child(1) > div > gv-text-conversation-item > gv-conversation-item > div").click() | |
var interval = setInterval(function() { | |
console.log('ping'); | |
const el = document.querySelector("md-menu") | |
.lastElementChild | |
.querySelector("md-menu-content > md-menu-item:nth-child(2) > button"); | |
if (!el) { | |
console.log('done') | |
clearInterval(interval) | |
} else { |