- Location - The location of the application. Usually just a URL, but the location can contain multiple pieces of information that can be used by an app
- pathname - The "file/directory" portion of the URL, like
invoices/123
- search - The stuff after
?
in a URL like/assignments?showGrades=1
. - query - A parsed version of search, usually an object but not a standard browser feature.
- hash - The
#
portion of the URL. This is not available to servers inrequest.url
so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things. - state - Object associated with a location. Think of it like a hidden URL query. It's state you want to keep with a specific location, but you don't want it to be visible in the URL.
- pathname - The "file/directory" portion of the URL, like
This file contains 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
upstream node_server { | |
server localhost:3000; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
root /usr/share/nginx/html; |
This file contains 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
.. |
This file contains 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
{"lastUpload":"2020-02-29T10:58:46.320Z","extensionVersion":"v3.4.3"} |
This file contains 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
image: node:7.9.0 # change to match your node version | |
cache: | |
paths: | |
- node_modules/ | |
before_script: | |
- npm install | |
test: |
This file contains 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 React, { Component, PropTypes, createElement } from 'react' | |
import { findDOMNode } from 'react-dom' | |
// usage: | |
// import { ScrollSpy, Link } = './wherever-this-file-is' | |
// | |
// <ScrollSpy> | |
// <Link ref={c => this._firstLink = c} section="1">Section 1</Link> | |
// <Link section="2">Section 2</Link> | |
// <Link section="3">Section 3</Link> |
This file contains 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
/* | |
* Copyright (C) 2015 Glowworm Software | |
* Copyright (C) 2014 Nizamutdinov Adel | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains 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
apply plugin: 'com.android.application' | |
apply plugin: 'pmd' | |
apply plugin: 'findbugs' | |
android { | |
compileSdkVersion 21 | |
buildToolsVersion "19.1.0" | |
defaultConfig { | |
applicationId "com.possebom.coritibawidget" |
This file contains 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 BaseImageProcessor { | |
func createARGBBitmapContext(imageRef : CGImageRef) -> CGContextRef! { | |
var pixelWidth:UInt = CGImageGetWidth(imageRef); | |
var pixelHeight:UInt = CGImageGetHeight(imageRef); | |
var bitmapBytesPerRow:UInt = (pixelWidth * 4) | |
var bitmapByteCount:UInt = (bitmapBytesPerRow * pixelHeight) | |
var colorSpace:CGColorSpace = CGColorSpaceCreateDeviceRGB() | |
NewerOlder