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
class Queue{ | |
#array = [] | |
enqueue(val){ | |
return this.#array.push(val); | |
} | |
dequeue(){ | |
return this.#array.shift(); | |
} | |
isEmpty(){ | |
return this.#array.length == 0 |
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
class Stack{ | |
#array = [] | |
push(val){ | |
return this.#array.push(val); | |
} | |
pop(){ | |
return this.#array.pop(); | |
} | |
isEmpty(){ | |
return this.#array.length == 0 |
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 styled, {keyframes} from "styled-components" | |
const wiggle = keyframes` | |
0%,100%{ | |
transform: scale(1.1) rotateZ(0deg) ; | |
} | |
16%,48%{ | |
transform: scale(1.1) rotateZ(-3deg); | |
} | |
32%,64%{ |
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 randanimalSync(){ | |
return "stuff" | |
} | |
function isSettings(context) { | |
return context.isSettings; | |
} | |
function onlyUserExists(context) { | |
return context.user && !context.user.name; |
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 jobs = [ | |
{ | |
id: 1, | |
title: "Lead Svelte Engineer", | |
description: | |
"Amet quo non reprehenderit aspernatur non ex tenetur debitis impedit. Dolor sed est. Dolorem assumenda molestiae vitae accusantium facilis incidunt rem soluta sint. Velit tenetur quae quibusdam occaecati fuga itaque tenetur ut.", | |
isFeatured: true, | |
isRemote: false, | |
seniority: "Lead", | |
verticals: ["Frontend"] |
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
html,body{ | |
display: none; | |
} |
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 * as React from "react"; | |
import { useDidMount } from "shared/useDidMount"; | |
const initialState = { | |
intersectionObj: {}, | |
observerInState: null, | |
isVisible: false | |
}; | |
interface Iaction { |
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
class SimpleTextInput extend Component { | |
constructor(props){ | |
super(props) | |
this.state = { | |
value : props.value, | |
_value : props.value | |
} | |
} | |
static getDerivedStateFromProps(newProps,oldState){ | |
if(newProps.value !== oldState._value){ |
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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName probuilds.dev | |
DocumentRoot /var/www/html | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory /var/www> | |
Options Indexes FollowSymLinks |
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 download = require("image-downloader"); | |
const path = require("path"); | |
const pathExists = require("path-exists"); | |
Array.from({ length: 802 }).forEach((i, index) => { | |
const entry = index + 1; | |
const downloadPath = path.join(__dirname, `public/images/${entry}.png`); | |
pathExists(downloadPath).then(exists => { | |
if (exists) { | |
return; |
NewerOlder