I hereby claim:
- I am mrhaw on github.
- I am mrhaw (https://keybase.io/mrhaw) on keybase.
- I have a public key ASCytruHC3Sj4FibQatiMmwMURntZEvyFnPKMbNsKPTu6wo
To claim this, I am signing this object:
# ignore everything in this directory | |
/* | |
# but not these | |
!.gitignore | |
!assets/ | |
!core/ | |
!_SASS/ | |
!_JS/ |
DECLARE @WorkingSQL VARCHAR(8000) | |
,@NewPath VARCHAR(8000) = 'G:\SQL Data\' /* Root location to move files */ | |
,@TargetDatabase sysname = '%'; /* Specify a singular database, or % for All Databases */ | |
SET NOCOUNT ON; | |
/* Sanitize path */ | |
IF RIGHT(@NewPath, 1) <> '\' | |
BEGIN | |
SET @NewPath = @NewPath + '\'; |
I hereby claim:
To claim this, I am signing this object:
<?php | |
$output = ''; | |
function isValidZipCode($zipCode) { | |
return (preg_match('/^[0-9]{5}(-[0-9]{4})?$/', $zipCode)) ? true : false; | |
} | |
//$format = !empty($format) ? '?output='.urlencode(trim($format)) : '?output=text'; | |
$address = !empty($address) ? '&addr='.urlencode(trim($address)) : '&addr='; | |
$city = !empty($city) ? '&city='.urlencode(trim($city)) : '&city='; |
var svg = document.querySelector( "svg" ); | |
var svgData = new XMLSerializer().serializeToString( svg ); | |
var canvas = document.createElement( "canvas" ); | |
var ctx = canvas.getContext( "2d" ); | |
var img = document.createElement( "img" ); | |
img.setAttribute( "src", "data:image/svg+xml;base64," + btoa( svgData ) ); | |
img.onload = function() { |
<?php | |
/** | |
* A sample plugin to display the "welcome message" to all users, login for the first time in Revo manager | |
* | |
* @var modX $modx | |
* @var array $scriptProperties | |
* @var modPlugin $this | |
* | |
* @see modPlugin::process() | |
* |
// Dashboard widget to show number of Manager messages | |
$id = $modx->user->get('id'); | |
$output = 'No messages.'; | |
$total = $modx->getCount('modUserMessage',array( | |
'recipient' => $id, | |
)); | |
if($total) { | |
$output = 'You have ' . $total . ' messages'; | |
$unread = $modx->getCount('modUserMessage',array( | |
'recipient' => $id, |
git remote prune origin | |
git branch -r --merged master | egrep -iv '(master|develop)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin |
1 - Create a *private* GitHub/Bitbucket or similar git repo. Here I assume the repo is: | |
https://github.com/calkan/bash_history.git | |
2 - Create .history directory and initialize it for the repo: | |
mkdir $HOME/.history | |
cd $HOME/.history | |
git init | |
touch README.md |
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} |