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 "variables.scss"; | |
/* Global Styles */ | |
* { | |
outline: none !important; | |
} | |
body { |
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
it("Menu scrolls if the hovered option is out of the viewport", () => { | |
const extraOptions = [ | |
{ label: "value D4", value: "D4" }, | |
{ label: "value E5", value: "E5" }, | |
{ label: "value F6", value: "F6" }, | |
]; | |
const updatedOptions = options.concat(extraOptions); | |
console.log('--- extra', updatedOptions); |
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
headers = new Headers(); | |
headers.set('Content-Type', 'application/json'); | |
headers.set('Authorization', `JWT ${localStorage.token}`); | |
options = { | |
method: 'GET', | |
headers: headers, | |
}; | |
res = await fetch(`/cors-proxy/api/v1/users/1/`, options); |
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
async componentDidMount(){ | |
this.setState({isLoading: true}); | |
const users = (await api.getAdminDashboardUsers()).data; | |
const rows = this.convertUsersToGridRows(users); | |
// Variable is out of component scope | |
allPlatformCompanies = (await api.getAllPlatformCompanies()).data; | |
await this.setState({ |
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
function makeRequestBody(rows, jobSlug){ | |
var paramArr = []; | |
for (var i = 0; i < rows.length; i++) { | |
var name = rows[i].name.replace(/\s+/g, '+'); | |
var email = encodeURIComponent(rows[i].email); | |
var nameS = `%22invitation_name${i + 1}%22%3A%22${name}%22`; | |
var emailS = `%22invitation_email${i + 1}%22%3A%22${email}%22`; | |
paramArr.push(`${nameS}%2C${emailS}`); | |
} |
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
majestic-geese.surge.sh |
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
const capitalizationMark = '000001'; | |
const space = '000000'; | |
function decodeString(word, binaryEncoded){ | |
var dict = {}; | |
word.split('').forEach(function(letter){ | |
if (/[A-Z]/.test(letter)) { | |
binaryEncoded = binaryEncoded.replace(/^000001/, ''); |
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
[ | |
{ | |
"category": "Web Development", | |
"keywords": [ | |
["Chief Technology Officer"], | |
["CTO"], | |
["R&D"], | |
["Architect"], | |
["Database", "Administrator"], | |
["Information", "Technology"], |
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
{ | |
"_total": 1, | |
"values": [ | |
{ | |
"_key": "~", | |
"connections": { | |
"_total": 26 | |
}, | |
"currentStatus": "is playing with the LinkedIn Ruby gem", | |
"emailAddress": "[email protected]", |
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
* { | |
font-family: -apple-system, BlinkMacSystemFont, sans-serif; | |
} | |
.content { | |
margin-top: 50px; | |
} | |
.user-photo { | |
padding-top: 20px; |