Skip to content

Instantly share code, notes, and snippets.

View AlenaNik's full-sized avatar
🍦
I want another ice-cream

alena AlenaNik

🍦
I want another ice-cream
View GitHub Profile
@AlenaNik
AlenaNik / Retrieving wizards
Created May 17, 2019 09:12
MySQL Exercise
1) SELECT * FROM wild.wizard WHERE birthday BETWEEN '1975-01-01' AND '1985-01-01';
Result:
[
{
"id" : 1,
"firstname" : "harry",
"lastname" : "potter",
"birthday" : "1980-07-31",
"birth_place" : "london",
"biography" : "",
// try this on console
var result = window.prompt("Hey my friend, do you like potatoes?")
if (result == "Yes") {
for (var i = 0; i < 7; i++) {
var hash = "#";
console.log(hash.repeat([i]));}
}
else if (result == "No") {
window.alert("No potatoes for you.")
process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log('What\'s your age ? ')
process.stdin.on('data', function (number) {
if (!Number(number)) {
console.log('eh?')
}
else if (number < 1) {
console.log('eh?')
@AlenaNik
AlenaNik / Murder solved
Last active March 29, 2019 22:51
Murder solved
1 cd clmystery-master
2 la
3 ls
4 cd documents
5 ls
6 cd clmystery-master
7 ls
8 cd instructions
9 head instructions
10 cat instructions
@AlenaNik
AlenaNik / Bootstrap grid system
Created March 28, 2019 11:30
challange Bootstrap grid system
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style>