This file contains hidden or 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
// Extend Ember.LinkView to support target attribute binding | |
var NewTabLinkView = Ember.LinkView.extend({ | |
// Bind target attribute to view | |
//attributeBindings: Ember.LinkView.prototype.attributeBindings.concat('target'), | |
attributeBindings: ['href', 'title', 'target'], | |
// Set target attribute to '_blank' by default | |
target: '_blank', | |
// Since we are navigating to a new browser instance (bypassing router), we can | |
// just let browser do its default thing | |
_invoke: function() { |
This file contains hidden or 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 {parse, define, Model, DataTypes} from './Sequelize'; | |
/** | |
* Decorator for creating Sequelize model definition | |
* | |
* - `parse(__filename)` extracts the name of the current file (without extension.) | |
* - `@define('MyProduct')` would define the model as `MyProduct`. | |
*/ | |
@define(parse(__filename)) |
This file contains hidden or 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
Add-Type -TypeDefinition @' | |
using System.Runtime.InteropServices; | |
[Guid("5CDF2C82-841E-4546-9722-0CF74078229A"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | |
interface IAudioEndpointVolume { | |
// f(), g(), ... are unused COM method slots. Define these if you care | |
int f(); int g(); int h(); int i(); | |
int SetMasterVolumeLevelScalar(float fLevel, System.Guid pguidEventContext); | |
int j(); | |
int GetMasterVolumeLevelScalar(out float pfLevel); |