Skip to content

Instantly share code, notes, and snippets.

View varun93's full-sized avatar
🎯
Focusing

Varun varun93

🎯
Focusing
  • Seattle, WA
View GitHub Profile
@varun93
varun93 / uscis.py
Created December 11, 2019 21:30
USCIS
import requests
from bs4 import BeautifulSoup
from datetime import datetime
def evaluate():
filename = "{}.csv".format(datetime.today().strftime('%Y-%m-%d'))
fileHandle = open(filename, "a+")
url = 'https://egov.uscis.gov/casestatus/mycasestatus.do'
# initialize with the header
result = ["Receipt Number,Status,Date"]

Keybase proof

I hereby claim:

  • I am varun93 on github.
  • I am vhegde (https://keybase.io/vhegde) on keybase.
  • I have a public key ASBOm1UqMhQxKoWxWgEZ_AmHSAQc7yNgZZRAPATqhLaPnQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am varun93 on github.
  • I am vhegde (https://keybase.io/vhegde) on keybase.
  • I have a public key ASAtccJlpKdscVCNpH3UlnDYug4oFiABJsCTj7Qwp4DXRAo

To claim this, I am signing this object:

#include "ClangSACheckers.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include <clang/StaticAnalyzer/Core/CheckerRegistry.h>
#include <clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h>
#include "clang/StaticAnalyzer/Core/CheckerManager.h"
#include <iostream>
using namespace clang;
from config import log
from dice import Dice
import constants
from cards import Cards
import copy
# import timeout_decorator
from state import State,Phase,Reason
# autobahn imports
from os import environ
@varun93
varun93 / echo-video-download.js
Created February 3, 2019 03:22
Download video from echo
jQuery(".screens video").each((index,video) => { window.open(video["src"])});
const swapWithoutTemp = (a, b) => {
a = a ^ b;
b = a ^ b;
a = a ^ b;
};
const genericFormHoc = ({handleFieldChange,form}) => {
const {fields} = form || {};
const {submit} = form
return (
<div>
{
Object.keys(fields).map((fieldKey) => {
const {field} = fields[fieldKey];
return <Field fieldKey={fieldKey} field={field} handleFieldChange={handleFieldChange} />
})
@varun93
varun93 / compare.js
Last active December 31, 2017 10:39
Compare Javascript Objects/Arrays(Shallow Compare Only!)
const compareArrays = (arrayA, arrayB) => {
let isEqual = true;
if (arrayA == null && arrayB === null) {
return true;
}
if (arrayA.length !== arrayB.length) {
return false;
}
@varun93
varun93 / clone.js
Last active December 31, 2017 05:50
Snippet to clone a javascript Object for learning purposes only. This is based on Rick Waldron's implementation.
const clone = (deepCopy = false, source) => {
if (Array.isArray(source)) {
let array = [];
source.forEach((element, index) => {
if (typeof element == "object") {
array[index] = clone(deepCopy, element);
} else {
array[index] = element;
}
});