Skip to content

Instantly share code, notes, and snippets.

View Y0lan's full-sized avatar
♥️
Giving love

Yolan Maldonado Y0lan

♥️
Giving love
View GitHub Profile
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
# See: /usr/share/doc/mpd/mpdconf.example
pid_file "/run/mpd/mpd.pid"
db_file "/var/lib/mpd/mpd.db"
state_file "/var/lib/mpd/mpdstate"
playlist_directory "/home/yolan/mpd_playlist"
music_directory "/home/yolan/Music"
audio_output {
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
#Startup Shit
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
# See: /usr/share/doc/mpd/mpdconf.example
#pid_file "/run/mpd/mpd.pid"
#db_file "/var/lib/mpd/mpd.db"
#state_file "/var/lib/mpd/mpdstate"
#playlist_directory "/home/yolan/mpd_playlist"
#music_directory "/home/yolan/Music"
# Required files
db_file "~/.config/mpd/database"
@Y0lan
Y0lan / cli.db
Last active March 13, 2018 14:08
MariaDB [TP_PHP]> SHOW COLUMNS FROM users;
+---------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| pseudo | varchar(128) | YES | | NULL | |
| password | varchar(128) | YES | | NULL | |
| email | varchar(128) | YES | | NULL | |
| country | varchar(128) | YES | | NULL | |
| gender | int(1) | YES | | NULL | |
@Y0lan
Y0lan / a.php
Last active March 13, 2018 17:26
<?php
include('../config.php');
$query = "
SELECT
id,
pseudo
FROM users
";
#include <stdio.h>
#include <stdlib.h>
void CreatePlayground(int sizeWithBorder, char (*PlayingTab)[sizeWithBorder])
{
for (int i=0;i<sizeWithBorder;i++){
for(int j=0;j<sizeWithBorder;j++){
if(i == 0 || i == sizeWithBorder - 1){
PlayingTab[i][j]='-';
}
function CreateDolmen(x, z){
dolmen = new THREE.Object3D();
var geometry = new THREE.BoxGeometry( 1, 3, 1 );
var textureUrl = 'images/rocks.jpg'
var texture = THREE.ImageUtils.loadTexture(textureUrl);
<!DOCTYPE html>
<script src="three.min.js"></script>
<script src='threex.grass.js'></script>
<script src='OrbitControls.js'></script>
<body style='margin: 0px; overflow: hidden;'><script>
var renderer = new THREE.WebGLRenderer({
antialias : true
});