This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import meadowrun | |
def main(): | |
s3_bucket_name = "meadowrun-sd" # replace this with your own bucket name! | |
folder_name = "steampunk_computer" | |
prompt = "a digital illustration of a steampunk computer floating among clouds, detailed" | |
asyncio.run( | |
meadowrun.run_command( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import requests | |
def upload_license_file(base_url: str) -> None: | |
with open("Sentiment Analysis on Financial Text.gravity-ai.key", "r") as f: | |
response = requests.post(f"{base_url}/api/license/file", files={"License": f}) | |
response.raise_for_status() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3M | |
A. O. Smith | |
Abbott | |
AbbVie | |
Abiomed | |
Accenture | |
Activision Blizzard | |
ADM | |
Adobe | |
ADP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bar(): | |
print("in foo.bar!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class RabinKarp | |
{ | |
public static IReadOnlyDictionary<int, HashSet<ulong>> PrecomputePatternHashes(IEnumerable<string> patterns) | |
{ | |
return patterns.ToLookup(p => p.Length, p => RollingHash.Hash(p)) | |
.ToDictionary(ps => ps.Key, ps => new HashSet<ulong>(ps)); | |
} | |
public static IEnumerable<string> Search(string text, IEnumerable<string> patterns, IReadOnlyDictionary<int, HashSet<ulong>> patternHashes = null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#use Process Monitor and filter to Operation = TCP Disconnect to find blocked programs | |
#shortcut should point to %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "c:\bin\addwfrule\addwfrule.ps1" | |
function Select-FileDialog | |
{ | |
param([string]$Title,[string]$Directory,[string]$Filter="All Files (*.*)|*.*") | |
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | |
$objForm = New-Object System.Windows.Forms.OpenFileDialog | |
$objForm.InitialDirectory = $Directory | |
$objForm.Filter = $Filter |