Skip to content

Instantly share code, notes, and snippets.

View vpontis's full-sized avatar
🌊

Victor Pontis vpontis

🌊
View GitHub Profile
@vpontis
vpontis / copy.py
Last active January 11, 2024 18:59
Copy to clipboard from iPython on Mac OS X
"""
Add copy to clipboard from IPython!
To install, just copy it to your profile/startup directory, typically:
~/.ipython/profile_default/startup/
Example usage:
%copy hello world
# will store "hello world"
{
"mint_address": "DFnBmD4HvuEq2DuefNjJQmeamBwR3QjCbFjSwnd5meyz",
"name": "Christmas Crate 2021",
"symbol": "",
"uri": "https://arweave.net/Kdj8ISa58PStAQgUj6vUvlxvfuotcOW0LaX6iJIEuu4",
"seller_fee_basis_points": 1000,
"creators": [
{
"address": "6jHbPEmLFuixLmyTDBzjwPDiTcWGbdJ3P9ewCtBP9dW9",
"verified": true,
@vpontis
vpontis / VICTOR.md
Last active August 16, 2021 17:10
me
  __      _
o'')}____//
 `_/      )
 (_(_/-(_/          

lu.ma

diff --git a/next/utils/upload-file-to-s3.ts b/next/utils/upload-file-to-s3.ts
index c8374943b..5e9d4ef37 100644
--- a/next/utils/upload-file-to-s3.ts
+++ b/next/utils/upload-file-to-s3.ts
@@ -1,4 +1,4 @@
-import { S3Bucket, S3FolderName } from "@luma-team/shared";
+import { S3Bucket, S3FolderName, sleep } from "@luma-team/shared";
import axios from "axios";
import { ZmClient } from "./ZmClient";
{
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Somehow I stopped writing this update. One week, I decided not to send an update and that cascaded for over two months. So after not missing a week for nearly 2 years, I missed 10 of them… Oh well. "
}
@vpontis
vpontis / quine.py
Created May 22, 2019 14:33
A Program That Prints Itself
A = [
"A = [",
"]",
"def f():",
" print(A[0])",
" for v in A:",
" print(chr(34) + v + chr(34) + ',')",
" print(A[1])",
" for v in A[2:]:",
" print(v)",
@vpontis
vpontis / strobe_light.htm
Created April 27, 2019 21:09
Strobe Light
<html><head>
<title>Strobe</title>
<script>
function toggleBgColor()
{
document.bgColor = document.bgColor == '#ffffff' ? '#000000' : '#ffffff';
setTimeout('toggleBgColor()', 75); //in milliseconds
}
</script>
@vpontis
vpontis / lets_rev_testing.py
Created December 3, 2013 03:16
Solution code for letsrevolutionizetesting.com
from httplib import HTTPConnection
import json
if __name__ == '__main__':
base_url = '/challenge.json'
url = base_url
count = 0
conn = HTTPConnection('www.letsrevolutionizetesting.com')
while count < 100:
conn.request("GET", url)