git checkout master
git pull
git checkout -b feature/my-work
# edit your files
This file contains hidden or 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 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); |
This file contains hidden or 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
{ | |
"name": "resly", | |
"version": "1.0.0", | |
"main": "submitResume.js", | |
"type": "module", | |
"scripts": { | |
"test": "jest" | |
}, | |
"keywords": [], | |
"author": "", |
This file contains hidden or 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
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 |
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:
This file contains hidden or 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
.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"; | |
} |
Use the Bulletproof Git Workflow, and before code review:
Publish a pre-release version of the package:
This file contains hidden or 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 getPercentageOfElementAreaViewable(el) { | |
var viewport = { width: window.innerWidth, height: window.innerHeight }; | |
var rect = el.getBoundingClientRect(); | |
var area = rect.width * rect.height; | |
var visibleHeight = rect.height; | |
var visibleWidth = rect.width; | |
// deduct amount out of viewport at top | |
if (rect.top < 0) visibleHeight += rect.top; |
This file contains hidden or 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
class FloatUtil | |
{ | |
public static function fixedFloat(v:Float, ?precision:Int = 2):Float | |
{ | |
return Math.round( v * Math.pow(10, precision) ) / Math.pow(10, precision); | |
} | |
} |
This file contains hidden or 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 safeConsole() { | |
if (typeof window.console == "undefined") { window.console = {}; } | |
for (var methods = "log,warn,error,info,dir".split(","), safe=function(){}, method; method=methods.pop();) { | |
window.console[method] = window.console[method] || safe; | |
} | |
})(); |
NewerOlder