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
nvm ls-remote |
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
nvm install node |
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
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm |
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
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash |
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
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash |
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 bsplit = (birthday) => { | |
if ( typeof birthday === 'string' ) { | |
const data = birthday.split('/') | |
let birthdayObj = { day: null, month: null, year: null } | |
switch (data.length) { | |
case 1: | |
birthdayObj.year = Number( data[0] ) | |
break | |
case 2: |
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 lc = (str) => { | |
if ( typeof str === 'string' ) | |
return str.toLowerCase() | |
return str | |
} | |
export default lc |
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
var members=document.getElementsByClassName("sf-display-name-tooltip");console.log(members);for(var TOOLTIP_NAME_CLASS="sf-tooltip-name",MISSING_NAME="(missing name)",FACEBOOK_USER="Facebook user",data_collection=[],i=0;i<members.length;i++){for(var has_tooltip_name=!1,name_elem=members[i].children[0].children[0],name_elem_classes=name_elem.classList,name_elem_classes_count=name_elem_classes.length,j=0;name_elem_classes_count>j;j++)name_elem_classes[j]===TOOLTIP_NAME_CLASS&&(has_tooltip_name=!0,j=name_elem_classes_count);var name=has_tooltip_name?name_elem.innerText:MISSING_NAME,email=has_tooltip_name?members[i].children[0].children[1].children[0].href:name_elem.children[0].href;email=email.substring(7);var data={name:name,email:email};email!=FACEBOOK_USER&&data_collection.push(data)}var data_json=JSON.stringify(data_collection);console.log(data_json); |
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
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| PDO Fetch Style | |
|-------------------------------------------------------------------------- | |
| | |
| By default, database results will be returned as instances of the PHP |
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
if ( c == 0 ) { | |
try { | |
if ( ! circlePoint.isDocked() | |
&& depthValues[i] >= minDist | |
&& depthValues[i] < cpDepth | |
) { | |
circlePoint.setDocked(true); | |
circlePoint.setDepth(depthValues[i]); | |
} | |
else if ( circlePoint.isDocked()) { |