Skip to content

Instantly share code, notes, and snippets.

View vinaypai's full-sized avatar

Vinay Pai vinaypai

View GitHub Profile
if (self.CavalryLogger) { CavalryLogger.start_js(["O+kXf"]); }
self.__DEV__=self.__DEV__||0;
if(JSON.stringify(["\u2028\u2029"])==='["\u2028\u2029"]')JSON.stringify=function(a){var b=/\u2028/g,c=/\u2029/g;return function(d,e,f){var g=a.call(this,d,e,f);if(g){if(-1<g.indexOf('\u2028'))g=g.replace(b,'\\u2028');if(-1<g.indexOf('\u2029'))g=g.replace(c,'\\u2029');}return g;};}(JSON.stringify);
PRESIDENT DONALD J. TRUMP'S ADDRESS TO A JOINT SESSION OF CONGRESS
Remarks as prepared for delivery
TO THE CONGRESS OF THE UNITED STATES:
Mr. Speaker, Mr. Vice President, Members of Congress, the First Lady of the United States, and Citizens of America:
Tonight, as we mark the conclusion of our celebration of Black History Month, we are reminded of our Nation's path toward civil rights and the work that still remains. Recent threats targeting Jewish Community Centers and vandalism of Jewish cemeteries, as well as last week's shooting in Kansas City, remind us that while we may be a Nation divided on policies, we are a country that stands united in condemning hate and evil in all its forms.
Each American generation passes the torch of truth, liberty and justice --- in an unbroken chain all the way down to the present.
That torch is now in our hands. And we will use it to light up the world. I am here tonight to deliver a message of unity and strength, and it is a message deeply delivered from my heart.
A new
@vinaypai
vinaypai / translation.txt
Created October 3, 2017 18:49
Interview Translation
RODRIGUEZ> The truckers are doing what they have to do. The one who's not doing what they have to do do is the government, okay?
REPORTER> Okay, but what does the governor have to do?
RODRIGUEZ> The governor needs to get to work, like the truckers. Because at 6am, a gas truck was already here. Ask all these people that have been here since 6am? [YELLS AT CROWD] Was the truck here at 6am?
CROWD> Yes!
REPORTER> Did you have any problems getting here?
Cr = (v_ball - v_cue) / (u_cue - 0) ... (by definition of Cr)
so,
v_ball = Cr·u_cue + v_cue ... [1]
m_cue·u_cue + m_ball·0 = m_cue·v_cue + m_ball·v_ball ... (conservation of momentum)
so,
v_cue = (m_cue·u_cue - m_ball·v_ball) / m_cue
= u_cue - v_ball (m_ball / m_cue)
vinay@vinay-desktop:~$ ps auxww | grep xclip
vinay 24787 0.0 0.0 9936 920 pts/10 S+ 16:40 0:00 grep --color=auto xclip
vinay@vinay-desktop:~$ echo blah | xclip
vinay@vinay-desktop:~$ ps auxww | grep xclip
vinay 24807 0.0 0.0 7004 308 pts/10 S 16:40 0:00 xclip
vinay 24810 0.0 0.0 9936 920 pts/10 S+ 16:40 0:00 grep --color=auto xclip
vinay@vinay-desktop:~$
import base64
import csv
import json
import sys
import urllib.request
import lxml.html
def get_inventory(url):
items = []