Skip to content

Instantly share code, notes, and snippets.

View EdwardTang's full-sized avatar
🌴
On Crushing Agentic AI

Eddie Tang EdwardTang

🌴
On Crushing Agentic AI
  • Good Night Oppie LLC
  • Seattle
  • 10:31 (UTC -12:00)
View GitHub Profile
@EdwardTang
EdwardTang / google-docs-copy.js
Created June 5, 2023 06:41 — forked from Snarp/google-docs-copy.js
Script to allow copying from a protected Google Doc
/*
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc>
NOTE - 2021-05-24
-----------------
The script below isn't the fastest way to copy-and-paste from a protected
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from
the comments:
@EdwardTang
EdwardTang / Solution.py
Last active October 5, 2018 05:00
Find total days problem
# Checks if the year is leap year
def is_leap(year):
if year % 4 == 0:
if year % 100 == 0:
if year % 400 == 0:
return True
return False
return True
return False
@EdwardTang
EdwardTang / 0_reuse_code.js
Created December 28, 2016 20:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@EdwardTang
EdwardTang / update-python-ec2.sh
Created March 22, 2016 06:18 — forked from daspecster/update-python-ec2.sh
Update EC2 Python virtualenv
# Thanks to Sebastian Kreutzberger
# Source: http://www.lecloud.net/post/61401763496/install-update-to-python-2-7-and-latest-pip-on-ec2
# install build tools
sudo yum install make automake gcc gcc-c++ kernel-devel git-core -y
# install python 2.7 and change default python symlink
sudo yum install python27-devel -y
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python