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
| // leaked code for COVID-19 rapid test algorithm | |
| const RapidTest = function(name, age, swabbed, fliched) { | |
| this.name = name; | |
| this.age = age; | |
| this.wasSwabbed = swabbed; | |
| this.flinched = fliched; | |
| } | |
| RapidTest.prototype.isPositive = function() { | |
| const hasCorona = Math.random() <= 0.5; |
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 React, { useState } from 'react'; | |
| import ReactPaginate from 'react-paginate'; | |
| import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos'; | |
| import ArrowForwardIosIcon from '@material-ui/icons/ArrowForwardIos'; | |
| import './pagination.css'; | |
| function App() { | |
| const [pageCount, setPageCount] = useState(1); | |
| const itemsLoaded = ({ | |
| limit, |
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
| stickyHeader = () => ( | |
| <View><Text>My Sticky Header</Text></View> | |
| ) | |
| <ParallaxScrollView | |
| parallaxHeaderHeight={700} | |
| renderStickyHeader={this.stickyHeader} | |
| stickyHeaderHeight={50} | |
| renderForeground={() => ( | |
| <Fragment> |
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
| def cracklepop | |
| (1..100).each do |i| | |
| if i % 3 == 0 && i % 5 == 0 | |
| puts 'CracklePop' | |
| elsif i % 5 == 0 | |
| puts 'Pop' | |
| elsif i % 3 == 0 | |
| puts 'Crackle' | |
| else | |
| puts i |