Skip to content

Instantly share code, notes, and snippets.

View rsxss's full-sized avatar

Natworpong Loyswai rsxss

View GitHub Profile
@rsxss
rsxss / google_form_python_post_example.py
Last active February 15, 2022 23:32
Example of send http post request to simple single page google form.
import requests
form_url = 'https://docs.google.com/forms/d/e/1FAIpQLSfLrWtKW9bLZjhSSNN22dQw7wXHf8Fb9pLAWCssRV94yzJ48g/formResponse'
payload = {
'entry.1528073003': 'phone',
'entry.1553910829': 'note',
'entry.244270893': 'Spagetthi',
'entry.1054697158': 'Salmon steak',
'entry.1226813051': 'Chocolate Ice-cream',
import urllib2
word_site = "http://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain"
if __name__ == '__main__':
response = urllib2.urlopen(word_site)
txt = response.read()
WORDS = txt.splitlines()
print(txt)
import random
if __name__ == '__main':
in = input('Say a magic word (A very very cute creature as our master: ')
if lower(in) == 'cat':
print('Yes!')
else: print('No!')
@rsxss
rsxss / hello_devs.py
Created June 28, 2020 11:48
wob_gist_a
print('Hello developers!');
@rsxss
rsxss / default.reg
Created August 25, 2018 19:39 — forked from P4/default.reg
Color schemes for Windows Command Prompt
Windows Registry Editor Version 5.00
; Default color scheme
; for Windows command prompt.
; Values stored as 00-BB-GG-RR
[HKEY_CURRENT_USER\Console]
; BLACK DGRAY
"ColorTable00"=dword:00000000
"ColorTable08"=dword:00808080
; BLUE LBLUE