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
  • GitHub
  • Spain, Valencia
  • 01:27 (UTC -12:00)
  • X @alenanik11
View GitHub Profile
@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>
@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
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?')
// 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.")
@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" : "",
Instert Query:
INSERT INTO wild.school (name, country, capacity)
VALUES ('Beauxbatons Academy of Magic', 'France', 550),
('Castelobruxo', 'Brazil', 380),
('Durmstrang Institute', 'Norway', 570),
('Hogwarts School of Witchcraft and Wizardry', 'United Kingdom', 450),
('Ilvermorny School of Witchcraft and Wizardry', 'USA', 450),
('Koldovstoretz', 'Russia', 125),
('Uagadou School of Magic', 'Uganda', 350);
const express = require('express');
const app = express();
const port = 300;
const cors = require('cors');
app.use(cors());
app.use(express.json());
const movies = [
@AlenaNik
AlenaNik / WebGL-frameworks-libraries.md
Created May 28, 2019 18:33 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL frameworks and libraries

A non-exhaustive list of WebGL frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
  • ClayGL: A WebGL graphic library helping you to
const express = require('express');
const app = express();
const port = 3000;
const connection = require('./conf');
app.get('/api/movie', (req, res) => {
connection.query('SELECT * FROM movie', (err, results) => {
if (err) {
console.log(err);
res.status(500).send('Error retrieving movies');
@AlenaNik
AlenaNik / JSRedux
Last active June 30, 2019 17:13
ReduxQuest
function counter(state=0, action) {
switch (action.type) {
case 'ADD':
return state + 1
break;
case 'REMOVE':
return state - 1
break;
case 'ADDTEN':
return state + 10