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
$rulename = '' | |
$servername = '' | |
$resourcegroup = '' | |
$currentip = Invoke-WebRequest 'http://ipv4.icanhazip.com' | Select -Expand Content | |
$currentip = $currentip.Trim() | |
az sql server firewall-rule delete --name $rulename --resource-group $resourcegroup --server $servername | |
az sql server firewall-rule create --debug -n $rulename --resource-group $resourcegroup --server $servername --start-ip-address "$currentip" --end-ip-address "$currentip" |
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 * as React from 'react' | |
import { translate } from 'react-i18next' | |
import * as classNames from 'classnames' | |
import { getTranslatedTextIfAvailable } from '../utils/text' | |
import { LocalizableComponent } from '../constants/types' | |
export interface HeaderProps extends LocalizableComponent { | |
text?: string | |
translationId?: string |
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 * as React from 'react' | |
import { connect } from 'react-redux' | |
// | |
// Higher order component (HOC) to provide Anti-Forgery Token | |
// to a component that needs to send POST request to a back-end | |
// controller action that has an attribute [ValidateAntiForgeryTokenHeader] | |
// | |
export function AntiForgeryTokenized<P extends WithToken>( | |
Comp: React.ComponentClass<P> | React.StatelessComponent<P> |
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 { AsyncActionCreators } from 'typescript-fsa' | |
// https://github.com/aikoven/typescript-fsa/issues/5#issuecomment-255347353 | |
function wrapAsyncWorker<TParameters, TSuccess, TError>( | |
asyncAction: AsyncActionCreators<TParameters, TSuccess, TError>, | |
worker: (params: TParameters) => Promise<TSuccess>, | |
) { | |
return function wrappedWorker(dispatch, params: TParameters): Promise<TSuccess> { | |
dispatch(asyncAction.started(params)); | |
return worker(params).then(result => { |
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
void Main() | |
{ | |
var sampleData = new List<Foo>(); | |
sampleData.Add(new Foo { DocumentId = 1, AccessGroupId = 1 }); | |
sampleData.Add(new Foo { DocumentId = 2, AccessGroupId = 1 }); | |
sampleData.Add(new Foo { DocumentId = 3, AccessGroupId = 1 }); | |
sampleData.Add(new Foo { DocumentId = 2, AccessGroupId = 1 }); | |
sampleData.Add(new Foo { DocumentId = 2, AccessGroupId = 1 }); | |
sampleData.Add(new Foo { DocumentId = 2, AccessGroupId = 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
C:\gh\my-project-x [master]> npm install | |
npm WARN prefer global [email protected] should be installed with -g | |
> [email protected] install C:\gh\my-project-x\node_modules\contextify | |
> node-gyp rebuild | |
C:\gh\my-project-x\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild ) | |
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. | |
contextify.cc |
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
@mixin border-radius-top($radius: 5px) { | |
-webkit-border-top-left-radius: $radius; | |
-webkit-border-top-right-radius: $radius; | |
-moz-border-radius-topleft: $radius; | |
-moz-border-radius-topright: $radius; | |
border-top-left-radius: $radius; | |
border-top-right-radius: $radius; | |
} | |
@mixin border-radius-bottom($radius: 5px) { |
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
@mixin vertical-divider( | |
$primaryColor: #eee, | |
$secondaryColor: #aaa, | |
$dividerWidth: 2px) | |
{ | |
width: 1px; | |
height: 1px; | |
&:after { | |
content: ""; |
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
@mixin paper-curls( | |
$skew: 5deg, | |
$rotate: 5deg, | |
$width: 40%, | |
$height: 10px) | |
{ | |
position: relative; | |
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 50px rgba(0, 0, 0, 0.1); | |
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 50px rgba(0, 0, 0, 0.1); | |
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2), inset 0 0 50px rgba(0, 0, 0, 0.1); |