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
#Install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
#Install Xcode command line tools | |
read -rep "Installing Developer Tools, Press any key to continue..." -n1 -s | |
xcode-select --install | |
#Install homebrew | |
read -rep "Installing Homebrew, Press any key to continue..." -n1 -s |
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
// Coding Questions, and Instructions | |
// * Please author your code as if it is intended to be shipped to production. | |
// The details matter. Code will be evaluated on its correctness, simplicity, | |
// idiomaticity, completeness, and test coverage. | |
// * Code should be written in JavaScript/NodeJS. You can use a testing |
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 getRandomIntInRange = (min, max) => Math.floor(Math.random() * (max-min +1)) + min; | |
// 3 examples added to show how to use it: | |
/* | |
getRandomIntInRange(1, 5); | |
Output: 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
export function passwordStrength(value) { | |
let text; | |
let strengthClass; | |
if ( | |
value.length >= 8 && | |
/[A-Z]/.test(value) && | |
/[a-z]/.test(value) && | |
/[0-9]/.test(value) && | |
/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(value) | |
) { |
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 paper = Raphael(0, 0, 3200, 3200); | |
const topSeatSet = paper.set(); | |
Raphael.fn.seatingTable = { | |
generateHorizontally: function (x, y, count, space) { | |
const circleSet = paper.set(); | |
let s = space; |
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
/** | |
* | |
* Author : Kaleem Elahi Shaikh | |
* Email: [email protected] | |
* | |
* / | |
/** |
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
{ | |
"chart": { | |
"id": 1, | |
"name": "Yapsody Theatre", | |
"row_chair_spacing": 4, | |
"row_spacing": 8, | |
"section_floors": [{ | |
"focal_points": { | |
"x": 1067.5, | |
"y": 1915 |
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
/** | |
* Author: kailash kumar | |
* define seating chart | |
*/ | |
import { | |
Raphael, | |
Paper, | |
Set, | |
Circle, | |
Ellipse, |
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 React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import PropTypes from 'prop-types'; | |
import './DraggableWrapperHOC.css'; | |
const DraggableWrapperHOC = (WrappedComponent) => { | |
return class DraggableWrapperHOC extends Component { | |
constructor(props) { | |
super(props); |
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
export const isElementInViewport = (el) => { | |
var rect = el.getBoundingClientRect(); | |
return rect.bottom > 0 && | |
rect.right > 0 && | |
rect.left < (window.innerWidth || document.documentElement.clientWidth) /* or $(window).width() */ && | |
rect.top < (window.innerHeight || document.documentElement.clientHeight) /* or $(window).height() */; | |
} | |
NewerOlder