Skip to content

Instantly share code, notes, and snippets.

View db's full-sized avatar
💻
Feel free to at me to your PRs

Dean Burge db

💻
Feel free to at me to your PRs
View GitHub Profile
@db
db / bulletproof-npm-workflow.md
Last active January 20, 2017 03:15
Bulletproof NPM Workflow

Bulletproof NPM Workflow

Use the Bulletproof Git Workflow, and before code review:

pre-release package

Publish a pre-release version of the package:

@db
db / _debug.css
Last active March 10, 2017 02:49
Foundation 5 Grid Debugger
.row > *:not(.columns) {
outline: 1px solid #c00;
}
.row > *:not(.columns):after {
color: white;
font: bold 13px arial;
background: #c00;
padding: 3px;
content: "grid: row child has no columns";
}

Keybase proof

I hereby claim:

  • I am db on github.
  • I am deanburge (https://keybase.io/deanburge) on keybase.
  • I have a public key ASAKqLVU07P23MBnACj_E8uajxjrGZsQql8J51Kq6k4WEQo

To claim this, I am signing this object:

@db
db / upinator.ps1
Created September 27, 2017 12:50
Start AppPool that has stopped
Import-Module WebAdministration
set-Location IIS:\AppPools
$AppPools = dir
foreach ($AppPool in $AppPools)
{
Write-Host "$AppPool.Name -> checking"
if($AppPool.state -ne "Started")
{
Write-Host "- $AppPool.Name found stopped - starting it"
Start-WebAppPool -Name $AppPool.Name
@db
db / package.json
Created November 10, 2023 02:11
resly job
{
"name": "resly",
"version": "1.0.0",
"main": "submitResume.js",
"type": "module",
"scripts": {
"test": "jest"
},
"keywords": [],
"author": "",
@db
db / bulletproof-git-workflow.md
Last active January 11, 2024 06:05
bulletproof git workflow

Bulletproof Git Workflow

start working

git checkout master
git pull
git checkout -b feature/my-work
# edit your files
@db
db / jquery.ajax.progress.js
Created May 11, 2011 12:43
add XHR2 progress events to jQuery.ajax
(function addXhrProgressEvent($) {
var originalXhr = $.ajaxSettings.xhr;
$.ajaxSetup({
progress: function() { console.log("standard progress callback"); },
xhr: function() {
var req = originalXhr(), that = this;
if (req) {
if (typeof req.addEventListener == "function") {
req.addEventListener("progress", function(evt) {
that.progress(evt);