Skip to content

Instantly share code, notes, and snippets.

View MyElectricSheep's full-sized avatar

Electric_Sheep MyElectricSheep

  • Electric Sheep Inc.
View GitHub Profile

Vanilla NodeJS

Create a folder exercises_vanilla then go to this folder in your terminal and execute:

npm init -y

Exercise 0 (Help - NPM)

SQL Bolt

Exercises from http://sqlbolt.com/

Lesson 1: SELECT queries 101

SELECT title 
FROM movies;
@MyElectricSheep
MyElectricSheep / berlinMuseums.json
Created April 14, 2022 19:59
Scrapped from Wikipedia
[{
"name": "Abguss-Sammlung Antiker Plastik",
"neighborhood": "Charlottenburg",
"borough": "Charlottenburg-Wilmersdorf",
"type": "Art",
"summary": "Part of the Free University of Berlin, plaster casts of sculptures from Ancient Greece, Rome, and the Byzantine Empire"
},
{
"name": "Academy of Arts, Berlin",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Akademie_der_K%C3%BCnste_Berlin.jpg/800px-Akademie_der_K%C3%BCnste_Berlin.jpg",
@MyElectricSheep
MyElectricSheep / flexbox-froggy.txt
Created January 28, 2022 11:30
Solutions for the flexbox froggy game
1) justify-content: flex-end;
2) justify-content: center;
3) justify-content: space-around;
4) justify-content: space-between;
5) align-items: flex-end;
@MyElectricSheep
MyElectricSheep / flexbox-defense.txt
Created January 28, 2022 11:19
Solutions for the flexbox defense game
1.
justify-content: center;
2.
justify-content: flex-end;
justify-content: center;
justify-content: flex-end;
@MyElectricSheep
MyElectricSheep / css-diner.txt
Created January 26, 2022 10:45
Solutions for the CSS diner exercices
# https://flukeout.github.io/ #
~30-45 mins
01. plate
02. bento
03. #fancy
04. plate apple
05. #fancy pickle
06. .small
07. orange.small
@MyElectricSheep
MyElectricSheep / credit.c
Created January 11, 2022 13:08
A solution for CS50's credit card validation problem set
#include <stdio.h>
#include <cs50.h>
#include <math.h>
#include <stdlib.h>
bool check_cc_length(long cc_number);
bool get_condition(int i);
long get_length(long number);
long cc_number_length = 0;
@MyElectricSheep
MyElectricSheep / sql-constraints.sql
Created October 18, 2021 16:33
sql-constraints
-- SELECT * FROM parts
-- LIMIT 10;
-- ALTER TABLE parts
-- ALTER COLUMN code
-- SET NOT NULL;
-- ALTER TABLE parts
-- ADD UNIQUE (code);
-- QUERIES
-- Find all employees
-- Find all clients
-- Find all employees, ordered by lower salary first
-- https://www.w3schools.com/sql/sql_orderby.asp
-- Find all employees ordered by sex, then name