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
/* | |
* Shows the various sized images for an instagram image. | |
* | |
* Usage: | |
* 1. Click on an instagram thumbnail. | |
* 2. Run this. | |
*/ | |
(function() { | |
let srcset = document.querySelector('img[sizes="600px"]') | |
.getAttribute('srcset'); |
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
commit 6c29a9b1835c820ab0abfd5e8c9c86d399d272b5 | |
Author: Jeff Palm <jeffpalm@gmail.com> | |
Date: Sun Jan 27 14:18:03 2019 -0500 | |
Add failure callback on decoding failure | |
diff --git a/ios/RNReactNativeSharingWinstagram.m b/ios/RNReactNativeSharingWinstagram.m | |
index 1607079..03814de 100644 | |
--- a/ios/RNReactNativeSharingWinstagram.m | |
+++ b/ios/RNReactNativeSharingWinstagram.m |
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
// Update every 3 seconds, may want to change this. | |
var updatePeriodMillis = 1000; | |
var lastRevs = 0; | |
var d = document.createElement('div'); | |
d.innerHTML = | |
'<div style="position: absolute; left: 150px; top: 250px; background-color: rgb(119,0,0); width: 1200px; height: ' | |
+ '800px; color: #fff; font-family: arial; right: 150px; padding: 20px;" id="reviews">' | |
+ ' <div id="numReviews" style="position: relative; font-size:6em; left: 10px; top: 10px;">--</div>' | |
+ ' <div style="margin-top:20px; position: relative; font-size:1em; left: 10px; top: 10px;">Last updated</div>' | |
+ ' <div id="lastUpdated" style="margin-top:10px; position: relative;font-size:2em; left: 10px;top: 10px;">not updated</div>' |
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
(function() { | |
/* | |
* Bookmarklet to view reddit with a sidebar and send the images to a chrome | |
* cast. To use: | |
* | |
* 1. Go to http://reddit.com/r/pics | |
* 2. Start casting | |
* 3. Click the link in http://jsfiddle.net/erkdp48b/ | |
* | |
* When you click links on the left, the images will be sent to your |
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
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
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
/* | |
* Bookmarklet to favorite tweets on a page with a frequency of 5 seconds. | |
* | |
* Usage | |
* ===== | |
* Copy the link "Favorite tweets" from http://jsfiddle.net/bfCnZ/1/ to your | |
* toolbar and this will favorite items at a frequency of 5 seconds. | |
*/ | |
(function() { |
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
/* | |
* This will find the full-size image urls of a smugmug.com page. | |
*/ | |
const MINIMUM_IMAGE_WIDTH = 1000; | |
/** Gets the url of the link to close a full-size image lightbox. */ | |
function getCloseLink() { | |
var els = document.getElementsByTagName('a'); | |
for (var i = 0; i < els.length; i++) { |
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
#!/bin/sh | |
# | |
# Prints a user's twitter stream using cowsay. | |
# | |
# Usage: | |
# | |
# % twittercowsay <user> | |
# | |
# http://jeffpalm.com/twitterer | |
# |
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
# Echos the message in a color given by the first argument. | |
# | |
# Example: | |
# | |
# % ccho red "This is red" | |
# | |
# Outputs "This is red" in red | |
# | |
# The following colors are supported | |
# red|r - RED |
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 type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript" src="webcounter.php"></script> current viewers. | |
</body> | |
</html> |