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
var getAddressProperty = function (place, property, shortName) { | |
var addressComponents = place.address_components; | |
for (var componentIndex in addressComponents) { | |
var component = addressComponents[componentIndex]; | |
var types = component.types; | |
if (types.length > 0) { | |
for (var typeIndex in types) { | |
var type = types[typeIndex]; | |
if (type === property) { | |
return (shortName) ? component.short_name : component.long_name; |
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
$url = "https://update.code.visualstudio.com/latest/win32-x64/stable" | |
$vsCodePath = "D:\Artifacts\Software\Base\Visual Studio Code\" | |
# the url is s redirect - get the url with filename | |
$request = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction Ignore | |
$location = $request.Headers.Location | |
$location | |
# output path is paht to vs code folder plus the file name | |
$output = $vsCodePath + $location.SubString($location.LastIndexOf('/') + 1) |
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
# if web application exists | |
$getSPWebApplication = Get-SPWebApplication | Where-Object {$_.DisplayName -eq $spAppName} | |
If ($getSPWebApplication -ne $null) | |
{ | |
# do somehting if exists | |
} | |
else | |
{ | |
write-host "Web Application does not exists" | |
} |
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 ClassDeserializer<T> implements JsonDeserializer<T> { | |
private Class<T> mClass; | |
private String mKey; | |
public ClassDeserializer(Class<T> targetClass, String key) { | |
mClass = targetClass; | |
mKey = key; | |
} |
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
.ui-autocomplete { | |
position: absolute; | |
top: 100%; | |
left: 0; | |
z-index: 1000; | |
float: left; | |
display: none; | |
min-width: 160px; | |
_width: 160px; | |
padding: 4px 0; |