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 app/console cache:clear |
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 requests = []; | |
for (var key in data) { /* Create the list of requests */ | |
if (data[key].value === 'file') { | |
requests.push(GetAjaxCall(data[key].uid)); | |
} | |
} | |
$.when.apply($, requests).then(function() { | |
/* All done... */ | |
}); |
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
const sparkki = require('sparkki'); | |
sparkki.setup({ | |
school: 'Your school secret', | |
token: 'Authentication Token' | |
}); | |
sparkki | |
.getCourses() | |
.then(courses =>{ |
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 ValidateElements; | |
$(document).ready(function () { | |
var occurrence = $('.BBListingHeading h1').text().replace(/\s/g, '').split('|'); | |
occurrence = (occurrence.length - 1); | |
if (occurrence == 3) { // Passes 3 bar test | |
/* Remove divMemberOnlyInfo h3 element if empty */ | |
var memberOnlyInfo = $('.divMemberOnlyInfo h3').text().replace(/\s/g, ''); | |
if (memberOnlyInfo.length == 0) { | |
$('.divMemberOnlyInfo h3').hide(); |
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
const authenticationData = { | |
Username: user.email, | |
Password: user.password, | |
}; | |
const authenticationDetails = new AuthenticationDetails(authenticationData); | |
const userData = { | |
Username: user.email, | |
Pool: this.userPool | |
}; | |
const cognitoUser = new CognitoUser(userData); |
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
const AccessToken = new CognitoAccessToken({ AccessToken: tokens.accessToken }); | |
const IdToken = new CognitoIdToken({ IdToken: tokens.idToken }); | |
const RefreshToken = new CognitoRefreshToken({ RefreshToken: tokens.refreshToken }); | |
const sessionData = { | |
IdToken: IdToken, | |
AccessToken: AccessToken, | |
RefreshToken: RefreshToken | |
}; | |
const userSession = new CognitoUserSession(sessionData); |
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
npm install mailpro --save |
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
const Encrypted = '36d435ec6268244a209c1d3b5b8d12c7838f604fc907519e8e75583f1c12902f62e5da4905bea381326b893fc750c9ca913bd6d8cd9cdb13ba541329399100989ac22dfa10ab2cf9784ee8183c55fa96' | |
const Decrypted = mailPro.decrypt(user); | |
// Results -> { username: 'brandy19', age: 23, sex: 'female', balance: 3339.03 } |
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
const user = { | |
username: 'brandy19', | |
age: 23, | |
sex: 'female', | |
balance: 3339.03 | |
} | |
const Encrypted = mailPro.encrypt(user); |
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
const email = 'example@example.com'; | |
mailPro.validateEmail(email).then(valid => {}); |