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
public loginNoLock(username: string, password: string): void { | |
const postData = { | |
username, | |
password, | |
client_id: environment.Auth0.clientID, | |
connection: 'Username-Password-Authentication', | |
scope: environment.Auth0.scope | |
}; | |
const req = this.http.post('https://' + environment.Auth0.domain + '/oauth/ro', postData, { |
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
<?php | |
function add_my_query_var( $link, $query ) { | |
$utm_source = $_GET['utm_source']; //get sort value | |
if ( isset($utm_source) ) { //if browsing posts by votes | |
$link = add_query_arg( 'utm_source', $utm_source, $link ); | |
} | |
$utm_medium = $_GET['utm_medium']; //get sort value | |
if ( isset($utm_medium) ) { //if browsing posts by votes | |
$link = add_query_arg( 'utm_medium', $utm_medium, $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
function fieldSorterOptimized(fields) { | |
var dir = [], i, l = fields.length; | |
fields = fields.map(function(o, i) { | |
if (o[0] === "-") { | |
dir[i] = -1; | |
o = o.substring(1); | |
} else { | |
dir[i] = 1; | |
} | |
return o; |
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
[ | |
{ | |
"id": "CoenraadS.bracket-pair-colorizer-2", | |
"name": "bracket-pair-colorizer-2", | |
"publisher": "CoenraadS", | |
"version": "0.2.0" | |
}, | |
{ | |
"id": "dbaeumer.vscode-eslint", | |
"name": "vscode-eslint", |
NewerOlder