For a complete template see this Gist
<system.web>
<trace enabled="false" />
<rewrite> | |
<!-- Have a bunch of redirects? Put them in a separate file --> | |
<rules configSource="Rewrites.config" /> | |
<rules> | |
<!-- Simple rewrite --> | |
<rule name="Simple rewrite" stopProcessing="true"> | |
<match url="^path/sub path/page\.aspx$" /> | |
<action type="Rewrite" url="/newpath.aspx" /> |
.pulsate path { | |
stroke: #2980b9; | |
-webkit-animation: pulsate 5s ease-out; | |
-webkit-animation-iteration-count: infinite; | |
-moz-animation: pulsate 5s ease-out; | |
-moz-animation-iteration-count: infinite; | |
-ms-animation: pulsate 5s ease-out; | |
-ms-animation-iteration-count: infinite; | |
animation: pulsate 5s ease-out; | |
animation-iteration-count: infinite; |
For a complete template see this Gist
<system.web>
<trace enabled="false" />
<%@ Language="VBScript" %> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
<!--#include file="json.asp"--> | |
<% |
// Get the queryString module from: | |
// https://github.com/sindresorhus/query-string | |
console.log(location.href); | |
// http://sindresorhus.com/?foo=bar | |
console.log(location.search); | |
// ?foo=bar | |
var parsed = queryString.parse(location.search); |
import UIKit | |
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { | |
@IBOutlet weak var tableView: UITableView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
NSLayoutConstraint.activate([ | |
tableView.topAnchor.constraint(equalTo: view.topAnchor), |
// Must install ImageMagick first | |
http://www.imagemagick.org/script/index.php | |
//This compresses a jpg with no visible loss of quality. Add in your own file names for target.jpg and result.jpg | |
convert -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% target.jpg result.jpg | |
// This does the same as above but to an entire folder (will overwrite original files): | |
mogrify -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% *.jpg | |
//This does the same thing but to all subfolders as well (Be careful with this one it will overwrite all original files) |
// ---- | |
// libsass (v3.1.0-beta) | |
// ---- | |
$map-one: (color: orange, height: 100px); | |
.block { | |
color: map-get($map-one, color); | |
} |
<% | |
' **************************************************************************** | |
' Sub: GetUtcOffsetMinutes | |
' Description: Gets the number of minutes between local time and UTC. | |
' | |
' Params: None | |
' **************************************************************************** | |
Function GetUtcOffsetMinutes() |
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.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()