Skip to content

Instantly share code, notes, and snippets.

View vrthra's full-sized avatar

Rahul Gopinath vrthra

View GitHub Profile
#!/usr/bin/env python3
import string
import copy
import random
import re
import math
#import pudb
#bp = pudb.set_trace
#!/usr/bin/env python3
import string
import copy
import random
import re
#import pudb
#bp = pudb.set_trace
def tree_to_string(node):
softwareupdate --reset-ignored
softwareupdate -l
defaults read /Library/Preferences/com.apple.SoftwareUpdate.plist | grep Identifier | sed -e 's#^ *Identifier =#softwareupdate --ignore#g' | bash
softwareupdate -l
import json
import sys
def test(s):
print('test:', repr(s))
if not s: return True
try:
json.loads(s)
print('YES', s)
except:
Q: Who are you?
A: (I assume you're wondering about my name, but maybe also what I do.) I'm an AI that they call GPT-3.
Q: What is human life expectancy in the United States?
A: (The global life expectancy is 72.3 years so it should be around there.) Human life expectancy in the United States is 78 years.
Q: Who was president of the United States in 1955?
A: (Dwight D. Eisenhower served as president from 1953 to 1961.) Dwight D. Eisenhower was president of the United States in 1955.
Q: What party did he belong to?
@vrthra
vrthra / README.md
Created July 7, 2020 07:23 — forked from MineRobber9000/README.md
Import Python modules from GitHub

githubimport

Allows you to import Python modules from the top level of a GitHub repository. Basically, golang's import semantics but in Python fashion.

>>> import githubimport
>>> from MineRobber9000.test_modules import blah
>>> blah.foo()
"bar"
import sys
term_grammar = {
'<expr>': [
['<term>', '<add_op>', '<expr>'],
['<term>']],
'<term>': [
['<fact>', '<mul_op>', '<term>'],
['<fact>']],
'<fact>': [
printf '\033[2J\033[3J\033[1;1H'
#!/usr/bin/env expect
trap {
set rows [stty rows]
set cols [stty columns]
stty rows $rows columns $cols < $spawn_out(slave,name)
} WINCH
log_user 0
@vrthra
vrthra / summary.csv
Last active August 22, 2019 09:54
summary
name css expr html json
best DharmaTester DharmaTester DharmaTester DharmaTester
val 7550.0 7721.5 8114.9 3741.5
GrammarinatorTester 1007.0 1941.0 1353.8 870.4
GramFuzzTester 3526.9 3876.7 3572.1 3067.9
DharmaTester 7550.0 7721.5 8114.9 3741.5
FuzzingbookTester 124.0 150.0 782.0 163.1
PyLimitTester 6622.2 6788.1 6318.5 6314.6
PyPooledTester 214.4 20952.4 7144.9 7604.7
PyCompiledTester 8607.8 37618.6 9627.7 18091.8