Skip to content

Instantly share code, notes, and snippets.

View Hacking-NASSA-with-HTML's full-sized avatar
🚀
Dream big and work hard. You can get anything you wish for!

Vyacheslav Plekhanov Hacking-NASSA-with-HTML

🚀
Dream big and work hard. You can get anything you wish for!
View GitHub Profile
@Hacking-NASSA-with-HTML
Hacking-NASSA-with-HTML / cycle.js
Last active December 25, 2022 10:34
Self invoking function via setTimeout
// option 1
(function cycle(i){
console.log("tick, ID: " + i);
setTimeout(cycle, 2000, i+1);
})(0);
// option 2
(function cycle() {
document.querySelector(".css-1ewhobe").click()
@adrianhajdin
adrianhajdin / materials.js
Created August 4, 2020 09:52
Alan AI News Project Materials
// 1. NewsCard/styles.js:
import { makeStyles } from '@material-ui/core/styles';
export default makeStyles({
media: {
height: 250,
},
border: {
border: 'solid',
},
@mpj
mpj / 0-array.js
Last active May 25, 2023 15:48
Code to the video - "Map: Part 2 of Functional Programming in JavaScript"
var animals = [
{ name: 'Fluffykins', species: 'rabbit' },
{ name: 'Caro', species: 'dog' },
{ name: 'Hamilton', species: 'dog' },
{ name: 'Harold', species: 'fish' },
{ name: 'Ursula', species: 'cat' },
{ name: 'Jimmy', species: 'fish' }
]