Skip to content

Instantly share code, notes, and snippets.

View nagor's full-sized avatar

Roman Nagorkin nagor

  • Eastbanc Technologies
  • Washington, DC
View GitHub Profile
@mick-io
mick-io / street-suffix-abbreviations.json
Last active May 31, 2024 03:52
C1 Street Suffix Abbreviations from USPS. The keys represent the USPS standard abbreviations, the arrays contain primary and commonly used suffixes and abbreviations.
{
"ALY": [
"ALLEY",
"ALLEE",
"ALLY"
],
"ANX": [
"ANEX",
"ANNEX",
"ANNX"
@paulirish
paulirish / what-forces-layout.md
Last active April 30, 2025 13:27
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@gordey4doronin
gordey4doronin / read-git.md
Last active September 30, 2016 08:01
Useful links about git. Articles, presentations etc.
@petertakacs
petertakacs / default.html
Last active December 15, 2015 21:59
Extended Splashscreen implementation for Windows Store application
<!DOCTYPE html>
<html>
<head>
<title>ExtendedSplashScreen Sample</title>
<!-- WinJS references -->
<link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
<script src="//Microsoft.WinJS.1.0/js/base.js"></script>
<script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
/* An AngularJS directive to easily paginate any list of items */
/*
* The directive exposes a $pager (or other name set by ng-model) object to the view, with these properties
* $pager.items : array of current page's items
* $pager.index : current page index
* $pager.first : boolean, current page is first?
* $pager.last : boolean, current page is last?
* $pager.group : array of numbers representing current page group (eg [1,2,3,4,5])
* $pager.groupIndex : current group index
@jpoehls
jpoehls / gist:2030795
Created March 13, 2012 19:02
Using CTRL+W to close tabs in Visual Studio

In Tools | Options | Keyboard...

  1. Add CTRL+W as a Global shortcut for Window.CloseDocumentWindow
  2. Remove the CTRL+W shortcut for Edit.SelectCurrentWord

The caveat to this is if you are used to using CTRL+W to select the current word. If you do, find another shortcut that works for that.