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/bash | |
# Creates an image with a palete of swatches of the most common colors in an | |
# image, and their hexadecimal code, ordered by higher frequency from left to | |
# right. | |
# | |
# Requires Imagemagick. | |
# | |
# Author: Jorge Hernández Valiñani |
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
var my_array = document.querySelectorAll('[id^=post_]'); | |
var i; | |
for (i = 0; i < Math.min(my_array.length, 100); i += 1) { | |
my_array[i].click(); | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="UTF-8"/> | |
<title> </title> | |
<style type="text/css"> | |
html, body { | |
height: 100%; | |
width: 100%; |
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
SmartyPants | |
=========== | |
by John Gruber | |
http://daringfireball.net/ | |
Version 1.5.1 - Fri 12 Mar 2004 | |
SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, |
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/bash | |
# `autoingestion.sh` downloads Apple iOS App Store sales data. It will | |
# download it to the same folder the script is running from, and group | |
# the downloaded files into directories by report type. | |
# | |
# It will only attempt to download if new sales data should be | |
# available. | |
# | |
# As skipping already downloaded files depends on the filename pattern |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Stylesheet for converting between an intermediate format and JSON --> | |
<!-- Copyright 2006 Theo Hultberg, all rights reserved --> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
version="1.0"> | |
<xsl:output method="text" | |
encoding="UTF-8" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Stylesheet for converting between plist and an intermediate format --> | |
<!-- Copyright 2006 Theo Hultberg, all rights reserved --> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
version="1.0"> | |
<xsl:output method="xml" | |
indent="yes" |
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 PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Styling a poem</title> | |
<style type="text/css"> | |
/* Left-aligned text in a centered block (mangles text in Adobe Digital Editions 1.7, so search an alternative if you need to support it) */ | |
.poem { | |
display: table; | |
margin-right: auto; |
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
# Preview (multi)markdown documents in the preferred browser. | |
function mmdp() { | |
if [ -z "$1" ]; then | |
echo "Usage: mmdp FILE" | |
return 1 | |
fi | |
# Determine how to open a file based on OS, and what MMD binary to use: | |
local OS=$(uname -s) |
NewerOlder