Skip to content

Instantly share code, notes, and snippets.

View mvlsqz's full-sized avatar

Marvin Velásquez mvlsqz

View GitHub Profile
add_newline = false
format = """
[](#C4A6F1)\
$os\
$username\
[](bg:#E48FA6 fg:#C4A6F1)\
$directory\
[](fg:#E48FA6 bg:#EFB48D)\
$git_branch\
$git_status\
@mvlsqz
mvlsqz / README.md
Last active January 19, 2023 21:50

Tic Tac Toe Game

This is my own version of the game Tic Tac Toe Game, it is part of my Python's learning process

Although the original Tic Tac Toe game has to be play on a 3x3 board by default, this python code can handle any board size, no real use case was in my mind for this just did it for learning and fun purposes.

TODO

  • Make board spots start counting from 1 instead of 0.
  • Better formatting
@mvlsqz
mvlsqz / config.py
Created November 25, 2022 00:49
qutebrowser maincfg
"""
qutebrowser config
"""
import os
c = c # noqa: F821 pylint: disable=E0602,C0103
config = config # noqa: F821 pylint: disable=E0602,C0103
config.load_autoconfig(False)
c.auto_save.session = True
@mvlsqz
mvlsqz / kitty.conf
Last active November 22, 2022 23:37
source ~/.antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle pip
antigen bundle command-not-found
if [ "${OSTYPE}"="darwin18.0" ]
then
antigen bundle osx
@mvlsqz
mvlsqz / README.md
Last active July 17, 2018 13:05
Laravel development environment on Docker

Setup your development environment

Run all the follow commands into your project directory

# creating application bootstrap
docker run --rm -v $(pwd):/app composer/composer create-project laravel/laravel app 5.4
# installing dependencies (if is needed)
docker run --rm -v $(pwd)/app:/app composer/composer install
@mvlsqz
mvlsqz / README.md
Last active August 2, 2018 03:01
swarm cluster on virtualbox
@mvlsqz
mvlsqz / web-servers.md
Created July 7, 2016 19:23 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@mvlsqz
mvlsqz / HTML5 Enabler
Last active August 29, 2015 14:08 — forked from benplum/HTML5 Enabler
/* Pre-Define HTML5 Elements in IE */
(function(){ var els = "source|address|article|aside|audio|canvas|command|datalist|details|dialog|figure|figcaption|footer|header|hgroup|keygen|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )();