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 matplotlib.pyplot as plt | |
from decimal import Decimal, getcontext | |
smarties = 5 | |
colors = 5 | |
start_index = 2 | |
end_index = 10 | |
#Fixed numbr of smarties, variable number of colors |
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 isPandemiaTrue = ({ pandemia }) => pandemia.value == Value.TRUE; | |
const isPandemiaFalse = ({ pandemia }) => pandemia.value == Value.FALSE; | |
const isZoneDisable = ({ pandemia, vaccino }) => pandemia.value == Value.FALSE || vaccino.value == Value.TRUE; | |
const isZoneEnable = ({ pandemia, vaccino }) => pandemia.value == Value.TRUE && vaccino.value != Value.TRUE; | |
const isUniversitaEnable = ({ pandemia, vaccino }) => pandemia.value == Value.FALSE || (pandemia.value == Value.TRUE && vaccino.value == Value.TRUE); |
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
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Observer</title> | |
<script src="<c:url value="/resources/js/init.js" />"></script> | |
</head> |
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
#!/bin/bash | |
while [ 1 ] | |
do | |
eject -T /dev/sr0 | |
done & | |
chmod +x cd.sh | |
./cd.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
var array = []; | |
var array2 = []; | |
for(var i=1;i<100;i++) { | |
array[i] = Math.random() < 0.50 ? 0 : 1; | |
} | |
array[0] = 0; | |
array[99] = 1; |
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 | |
// Demo: http://itsvr.altervista.org/ | |
/* Square area edges in degrees of your custom area map (Verona, Italy) */ | |
$mapLatTop = 45.47; | |
$mapLatBottom = 45.37; | |
$mapLonLeft = 10.92; | |
$mapLonRight = 11.06; |
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
setInterval(function () { | |
window.scrollTo(0, document.body.scrollHeight); | |
$('.ProfileTweet-actionButton.js-actionButton.js-actionFavorite:visible').click(); | |
}, 1000); |