Skip to content

Instantly share code, notes, and snippets.

View eisterman's full-sized avatar

Federico Pasqua eisterman

View GitHub Profile
@eisterman
eisterman / GoLEngine.hpp
Created November 4, 2017 14:46
NewGameOfLifeXL - Versione C++ - BUG Row0/Col0
//
// Created by fpasqua on 02/11/17.
//
#ifndef NEWGAMEOFLIFEXL_GAMEOFLIFE_H
#define NEWGAMEOFLIFEXL_GAMEOFLIFE_H
#include <cstddef>
#include <vector>
#include <algorithm>
@eisterman
eisterman / GoLEngine.hpp
Created November 2, 2017 20:13
Demotest NewGameOfLifeXL
//
// Created by fpasqua on 02/11/17.
//
#ifndef NEWGAMEOFLIFEXL_GAMEOFLIFE_H
#define NEWGAMEOFLIFEXL_GAMEOFLIFE_H
#include <cstddef>
#include <array>
@eisterman
eisterman / Table.hpp
Created October 30, 2017 18:07
GameOfLife_eisterman
#ifndef TABLE_H
#define TABLE_H
#include <vector>
template <class T>
class Table
{
public:
Table(); //Tavola 1x1
@eisterman
eisterman / moracinese.cpp
Created September 6, 2017 08:03
Sasso Carta Forbice
#include <string>
#include <vector>
#include <algorithm>
const std::vector<std::string> states = {"scissors","paper","rock"};
inline auto pick_up(const std::string& name)
{
return distance(states.begin(), find(states.begin(), states.end(), name));
}
@eisterman
eisterman / Noemi10.tex
Last active September 1, 2017 14:30
Disegni per relazione pendoli accoppiati Noemi
\usetikzlibrary{arrows}
\usetikzlibrary{arrows.meta}
\begin{tikzpicture}
%rotate around={30:(-1,0.5)}
\coordinate (v1) at (0,5);
\draw[ultra thick, rotate around={30:(v1)}] (-0.17,5) rectangle (0.17,-1);
\node[rotate around={30:(v1)}] at (0.7, 2) {\Huge L};
\draw[ultra thick, fill=white] (v1) circle (0.5);
\draw[ultra thick, fill=white, rotate around={30:(v1)}] (0,-2) circle (1.5);
\draw[fill=black] (v1) circle (0.1);