Skip to content

Instantly share code, notes, and snippets.

View FUNC_Pad.sql
-- ======================================================================================
-- 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'
-- ======================================================================================
@num integer,
@len integer = 3
) RETURNS varchar(100)
# original idea from
# pre-requisite: imagemagick
# ( e.g. sudo apt-get imagemagick )
for x in `seq $X1 $X2`; do
adamnoffie / Cleanup_FilesByAge.ps1
Created Nov 23, 2015
Recursively Clean up Files/Folders in a directory by the Modified Date (Age) of File
View Cleanup_FilesByAge.ps1
# Function that deletes any files, recursively, from a directory that are older than X days for modified day.
# this is mostly stolen from
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 `
View whats_this_do.js
// what does this do?:
var i = 5;
// is it like a javascript hack equivalent to the jQuery(document).ready()? e.g.:
$(function() {
View TargetsToLeads.php
<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 }
<body style="width: 1000em">