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
-- Using OPENROWSET | |
SELECT m.name, m.database_id | |
FROM OPENROWSET('SQLNCLI', 'Server=RemooteServerName;Trusted_Connection=yes;','SELECT * FROM master.sys.databases') AS m | |
-- Using OPENDATASOURCE | |
SELECT name, database_id | |
FROM OPENDATASOURCE('SQLNCLI','Data Source=RemooteServerName;Integrated Security=SSPI').master.sys.databases | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple SVG "pipe"</title> | |
</head> | |
<body> | |
<canvas id='canvas' width='1024' height='800'></canvas> | |
<script> | |
var ctx = document.getElementById("canvas").getContext("2d"); | |
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
/* | |
Source: http://harouny.com/2013/04/19/tsqlt-taketable-indexed-view/ | |
Description: With small modifications on REPLACE part and code style improvments | |
*/ | |
CREATE PROCEDURE [tSQLt].[PrepareTableForFaking] | |
@TableName NVARCHAR(MAX), | |
@SchemaName NVARCHAR(MAX) | |
AS | |
BEGIN | |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
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
C:\cd C:\Chocolatey\chocolateyInstall | |
C:\Chocolatey\chocolateyinstall>nuget.exe update -self | |
Checking for updates from https://nuget.org/api/v2/. | |
Currently running NuGet.exe 2.1.0. | |
Updating NuGet.exe to 2.8.2-beta. | |
Update successful. |
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
Person = Backbone.Model.extend({ | |
// default values of attributes | |
defaults:{ | |
age:0, | |
children: [] | |
}, | |
// validation | |
validate: function(attributes){ | |
if(attributes.age<0){ | |
console.log("Validation error, person can't be negative age!"); |
NewerOlder