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> | |
<title>ProspectToLead - Campaign</title> | |
<style type="text/css"> | |
body { font-family: Consolas, Monaco, Courier New, Courier } | |
.error { color: red; font-weight: bold } | |
.finished { color: green; font-size: larger } | |
</style> | |
</head> | |
<body style="width: 1000em"> |
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
// what does this do?: | |
(function(){ | |
var i = 5; | |
}()); | |
// is it like a javascript hack equivalent to the jQuery(document).ready()? e.g.: | |
$(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
# Function that deletes any files, recursively, from a directory that are older than X days for modified day. | |
# this is mostly stolen from http://stackoverflow.com/a/19326146/18524 | |
function Cleanup-Dir | |
{ | |
param([string]$path, [int]$limit) | |
$minDay = (Get-Date).AddDays(-1 * $limit) | |
# delete files older than $limit | |
Get-ChildItem -Path $path -Recurse -Force ` |
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
# original idea from http://gis.stackexchange.com/questions/73946/automatically-download-and-merge-webmap-tiles-into-one-big-image | |
# pre-requisite: imagemagick | |
# ( e.g. sudo apt-get imagemagick ) | |
X1=0 | |
Y1=0 | |
X2=9 | |
Y2=13 | |
Z=4 | |
for x in `seq $X1 $X2`; do |
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
-- ====================================================================================== | |
-- Author: Adam Nofsinger | |
-- Created: 2013-04-29 | |
-- Description: Utility to return an integer number as a string, padded to X many chars | |
-- with zeros to the left of the number. E.g. Pad(45, 5) = '00045' | |
-- ====================================================================================== | |
CREATE FUNCTION [dbo].[Pad] ( | |
@num integer, | |
@len integer = 3 | |
) RETURNS varchar(100) |