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 e = document.getElementById('test') | |
var observer = new MutationObserver(function (event) { | |
console.log(event) | |
}) | |
observer.observe(e, { | |
attributeFilter: ['class'], | |
characterData: false, | |
attributes: true, |
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
while curl -s "https://api.github.com/users/willnaoosmith/starred?per_page=100&page=${page:-1}" \ | |
|jq -r -e '.[].html_url' && [[ ${PIPESTATUS[1]} != 4 ]]; do | |
let page++ | |
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
CEILING(DATEDIFF(d, DATEADD(DAY, 1 - DAY(ITM7.DprStart), ITM7.DprStart), EOMONTH(ITM7.DprEnd)) / (365.25 / 12)) |
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 stopAtFrame = (animation, stopFrame, frame) => { | |
if (frame.currentTime >= stopFrame){ | |
animation.pause() | |
} | |
} | |
<Lottie | |
ref={errorlottie} | |
height={"33%"} | |
width={"33%"} |
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
white-space: pre-wrap; | |
overflow-wrap: break-word ; | |
word-wrap: break-word; | |
word-break: break-word; |
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
<div | |
style={ | |
currentQuestion == 0 ? | |
{animation: "outAnimation 270ms ease-out", animationFillMode: "forwards", visibility: "hidden"} : | |
{animation: "inAnimation 250ms ease-in"} | |
} | |
> | |
</div> | |
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
$( sleep 10 )& pid=$!; sleep 0.1s; kill -9 $pid |
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
while true; do bash -c "command here"; done | |
OR | |
watch -n 1 bash -c "command here" |
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
from datetime import datetime, timedelta, date | |
import holidays | |
def nextBusinessDay(date, country, *state): | |
currentYearHolidays = holidays.country_holidays(country, subdiv=state[0] if state else "")[f"{date.year}-01-01":f"{date.year}-12-31"] | |
nextDay = date + timedelta(days=1) | |
while nextDay.weekday() in holidays.WEEKEND or nextDay in currentYearHolidays: | |
nextDay += timedelta(days=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
Import-Module active* | |
$ignoreList = @( | |
"PC-XXXX", | |
"PC-YYYY" | |
) | |
$rtn = $null | |
Get-ADComputer -Filter * -SearchBase "OU=COMPUTERS,OU=XXX,DC=DOMAINHERE,DC=local" | | |
ForEach-Object { |
NewerOlder