HYFClass
should have a method thatreturn
s all the name of themember
s.HYFClass
should have a method thatreturn
s onlyStudents
and one thatreturn
s onlyTeachers
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
<html> | |
<head> | |
<title>Tic Tac Toe!</title> | |
</head> | |
<body> | |
<div> | |
<span> | |
<input name="" type="text" value="-" size="1"/> | |
</span> |
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
class MovieEmployed { | |
constructor(name) { | |
this.name = name; | |
this.movies = []; | |
} | |
addMovie(movieInstance) { | |
this.movies.push(movieInstance); |
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
<html> | |
<head> | |
<script src="./index.js"></script> | |
</head> | |
<body> | |
<ul id="repos"> | |
</ul> | |
</body> | |
</html> |
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
function ABlockingFunction( stopAtTime ){ | |
var StartAt = new Date(); | |
var animation = ['Running...']; | |
while( StartAt <= stopAtTime ){ | |
StartAt = new Date(); | |
animation.push('.') | |
console.log(animation.join('')); | |
} | |
return this; | |
} |
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
#!/bin/bash | |
LATEST=$(curl https://api.github.com/repos/m3kh/momo/commits | underscore extract '0.sha' | sed s/[^a-zA-Z0-9\_]//g); | |
CURRENT=$(cat /home/pi/.momo_version | sed s/[^a-zA-Z0-9\_]//g); | |
echo "${LATEST}"; | |
echo "${CURRENT}"; | |
if [ "$LATEST" = "$CURRENT" ]; then | |
echo "Momo is uptodate"; |
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 inspector = function(obj){ | |
var config = config || {}, | |
html = ''; | |
config.iter = function(e){ | |
html = '<ul>'; | |
if( typeof e === "function" ){ | |
// setTimeout(function(){ | |
try{ |