This file contains hidden or 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
| <a href='javascript:(function(){function a(){var c=document.getElementsByClassName("js-short-timestamp");if(!c){return}for(var b in c){var d=c[b];if(!!d.getAttribute&&!!d.getAttribute("data-time")){d.innerHTML=d.parentNode.title}}}a()})();'>Show twitter dates</a> |
This file contains hidden or 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 Twitter Batch | |
| // @namespace http://jeffpalm.com/twitterbatch | |
| // @description Only display twitter updates in batches of certain numbers. | |
| // By default the minimum number of item required to show is | |
| // 10, this can be changed via localStorage to, say, N, e.g. | |
| // localStorage.setItem('batch.number',N) | |
| // @include https://twitter.com | |
| // @include https://www.twitter.com | |
| // @include https://twitter.com/* |
This file contains hidden or 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 | |
| # | |
| # Monitors the file you pass in, printing the number of lines. You | |
| # pass in the optional file as the first parameter (defaults to most | |
| # recently updated file) and optional sleep time in seconds as the | |
| # second argument. | |
| # | |
| # Examples: | |
| # | |
| # % ./monitor # -- use the most recently updated file |
This file contains hidden or 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 java.awt.*; | |
| import java.awt.image.*; | |
| import java.io.*; | |
| import java.util.*; | |
| import java.util.List; | |
| import javax.swing.*; | |
| import javax.imageio.ImageIO; | |
| import java.net.*; | |
| public final class LesPaulImage { |
This file contains hidden or 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 java.awt.*; | |
| import java.awt.Image; | |
| import java.awt.image.*; | |
| import java.io.*; | |
| import java.math.*; | |
| import java.util.*; | |
| import java.util.List; | |
| import javax.imageio.*; | |
| import javax.swing.*; |
This file contains hidden or 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
| all: americanVoices.html | |
| gather: | |
| python americanVoices.py >> results.txt | |
| americanVoices.html: results.txt | |
| sort $< | uniq | python genHtml.py > $@ |
This file contains hidden or 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
| /* | |
| * Selects all of the last opened gmail message. | |
| */ | |
| (function() { | |
| function setSelection(el) { | |
| var range = document.createRange(); | |
| var fst = el.firstChild, lst = el.lastChild; | |
| if (fst && lst) { | |
| range.setStartBefore(fst); |
This file contains hidden or 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 java.awt.*; | |
| import java.awt.image.*; | |
| import java.io.*; | |
| import java.util.*; | |
| import java.util.List; | |
| import javax.swing.*; | |
| import javax.imageio.ImageIO; | |
| import java.net.*; | |
| /** |
This file contains hidden or 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 out every in between the first two arguments: | |
| # | |
| # Example: | |
| # | |
| # % inbetween '- - \[' '\]' # Dates from an apache log file | |
| # | |
| fst=$1; shift | |
| if [[ x$fst = 'x' ]]; then |
This file contains hidden or 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
| /** | |
| * Displays all the results from nakedapartments.com. | |
| */ | |
| (function() { | |
| const REPLACE_TOKEN = '${replace.token}'; | |
| const RESULTS_CLASS_NAME = 'listing-results floatLeft'; | |
| const LISTING_CLASS_NAME = 'listing-row listing-row-standard clearfix'; | |
| /** |