Skip to content

Instantly share code, notes, and snippets.

View palmenros's full-sized avatar

Pedro Palacios Almendros palmenros

View GitHub Profile
@palmenros
palmenros / AmigoInvisible.cpp
Created December 12, 2018 22:10
Amigo Invisible
/**
* Usage: Input a name per line (press enter after input name). When finished inputed names, enter an empty line.
*
*/
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
#include <random>
@palmenros
palmenros / Seguidor de linea.ino
Created May 14, 2018 12:11
Seguidor de linea arduino
int motorLeft = 5;
int motorRight = 6;
int sensorLeft = 8;
int sensorRight = 9;
void setup() {
//Salidas
pinMode(motorLeft, OUTPUT);
pinMode(motorRight, OUTPUT);
# Maintainer: Dylan Ferris <dylan@psilly.com>
# You must register at unrealengine.com and link your github account to access this private repo.
# @see https://wiki.archlinux.org/index.php/Unreal_Engine_4
# The source is over 8 GiB, with an extra 3 GiB of dependencies downloaded in build(), and may take several hours to compile.
pkgname='unreal-engine'
pkgver=4.18.3
# shellcheck disable=SC2034
@palmenros
palmenros / install
Created February 19, 2018 19:16
install.py
$python3 install.py --system-libclang --all
Searching Python 3.6 libraries...
Found Python library: /usr/lib64/libpython3.6m.so
Found Python headers folder: /usr/include/python3.6m
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
@palmenros
palmenros / hosts
Created February 14, 2018 20:12
Spotify DNS
0.0.0.0 adclick.g.doublecklick.net
0.0.0.0 adeventtracker.spotify.com
0.0.0.0 ads-fa.spotify.com
0.0.0.0 analytics.spotify.com
0.0.0.0 audio2.spotify.com
0.0.0.0 b.scorecardresearch.com
0.0.0.0 bounceexchange.com
0.0.0.0 bs.serving-sys.com
0.0.0.0 content.bitsontherun.com
0.0.0.0 core.insightexpressai.com
@palmenros
palmenros / leva
Last active March 20, 2017 18:28
Leva
void drawPoint(float centerX, float centerY, float angle, float radius){
float x = radius * cos(angle);
float y = radius * sin(angle);
point(x + centerX, 700 - y - centerY);
}
float offset = 200;
float max = 100;
float getRadius(float angle){