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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>GitHub Repositories</title> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet" referrerpolicy="no-referrer"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" /> | |
<style> | |
body { |
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
// run this in browser console at https://global.americanexpress.com/offers/eligible (or use Tampermonkey) | |
var amexOfferButtons = [] | |
var amexOfferClicker = function(index) { | |
if(index < amexOfferButtons.length) { | |
console.log("Clicking offer button "+index+" of "+amexOfferButtons.length); | |
amexOfferButtons[index].click(); | |
setTimeout(function(){ amexOfferClicker(index+1) }, 500); | |
} |
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
// ==UserScript== | |
// @name Clip all QFC coupons | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Click every "clip" coupon button on the QFC coupons page www.qfc.com/savings/cl/coupons/ | |
// @author peckjon | |
// @authorurl https://greasyfork.org/en/users/824205-peckjon | |
// @include http*://*qfc.com/savings/cl/coupons* | |
// @icon https://www.google.com/s2/favicons?domain=qfc.com | |
// @grant none |
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 os | |
import sys | |
# Set the maximum number of words per file | |
max_words = 3900 | |
# Set the pattern to split on | |
pattern = "00;" | |
# Get the input file name from the command line arguments |
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
// paste into browser console at https://www.joinhoney.com/droplist to remove ALL Droplisted items | |
var script = document.createElement('script'); | |
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
setTimeout(() => { | |
$('img[alt="Remove this item from your Droplist"]').each(function(){this.click()}); | |
$('button[aria-label="Remove item"]').each(function(){this.click()}); | |
$('div[id="HoneyDropList:index-moreButton"]').click(); | |
}, 2000); |
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 Algorithmia | |
input = "//blog.algorithmia.com/predictive-algorithms-track-real-time-health-trends/" | |
client = Algorithmia.client('YOUR API KEY') | |
algo = client.algo('web/AnalyzeURL/0.2.14') | |
print algo.pipe(input) |
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 Algorithmia | |
input = { | |
"query": "seattle seahawks", | |
"numTweets": "1000", | |
"auth": { | |
"app_key": "YOUR_TWITTER_APP_KEY", | |
"app_secret": "YOUR_TWITTER_APP_SECRET", | |
"oauth_token": "YOUR_TWITTER_OAUTH_TOKEN", | |
"oauth_token_secret": "YOUR_TWITTER_OAUTH_TOKEN_SECRET" |
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
input = { | |
"input_file":"data://media/videos/lounge_demo.mp4", | |
"output_file":"data://.algo/temp/detected_objects.json", | |
"algorithm":"algo://LgoBE/CarMakeandModelRecognition/0.3.4", | |
"advanced_input":{"$SINGLE_INPUT"} | |
} | |
result = client.algo('media/VideoMetadataExtraction?timeout=3000').pipe(input).result |
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
<html> | |
<head> | |
<script src="https://algorithmia.com/v1/clients/js/algorithmia-0.2.0.js" type="text/javascript"></script> | |
<script src="content-aware-resize.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<h3>Image:</h3> | |
<input type="text" size="80" id="img_url" value="https://upload.wikimedia.org/wikipedia/commons/f/f7/Hickory_Golfer.jpg" /> | |
<h3>Automatically resize:</h3> | |
<input type="submit" value="Thumbnail 150x150" onclick="resize(150,150,'thumb')" /> <a download="thumb.png" id="thumb"></a><br/> |
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 Algorithmia | |
api_key = "YOUR_API_KEY" | |
client = Algorithmia.client(api_key) |
NewerOlder