Skip to content

Instantly share code, notes, and snippets.

View CharlyJazz's full-sized avatar
🧭
I may be slow to respond.

CharlyJazz

🧭
I may be slow to respond.
View GitHub Profile
const config = {
// Use the innerWidth and innerHeight for full screen game
width: window.innerWidth, // Changed from a fixed value to adapt to screen width
height: window.innerHeight, // Changed from window.height (which is undefined) to innerHeight
parent: "container",
type: Phaser.AUTO, // Let Phaser decide whether to use WebGL or Canvas
physics: {
default: "arcade",
arcade: {
gravity: { y: 300 }, // Adjust if necessary to fit game design
from flask import Flask, request, jsonify
import redis
import json
import logging
app = Flask(__name__)
redis_client = redis.StrictRedis(host='localhost', port=6379, db=0)
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
@CharlyJazz
CharlyJazz / rails.rb
Created July 20, 2023 01:18
prueba.rb
class Api::CarSearch
include SearchObject.module(:paging)
include SearchObject.module(:sorting)
per_page 1
min_per_page 1
max_per_page 50
sort_by :price
- Don Sebesky
@CharlyJazz
CharlyJazz / template.sh
Created October 27, 2022 17:12
shell script template created by Shrikant https://sharats.me/posts/shell-script-best-practices/
Shell Script Best Practices
27 Oct 2022
This article is about a few quick thumb rules I use when writing shell scripts that I’ve come to appreciate over the years. Very opinionated.
Things
Use bash. Using zsh or fish or any other, will make it hard for others to understand / collaborate. Among all shells, bash strikes a good balance between portability and DX.
Just make the first line be #!/usr/bin/env bash, even if you don’t give executable permission to the script file.
Use the .sh (or .bash) extension for your file. It may be fancy to not have an extension for your script, but unless your case explicitly depends on it, you’re probably just trying to do clever stuff. Clever stuff are hard to understand.
[11:56 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/ruby-on-rails-6-learn-20-gems-build-an-e-learning-platform/
[11:57 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/the-complete-ruby-on-rails-developer-course/
[11:58 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/testing-ruby-with-rspec/
[11:58 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/beat-the-codility-coding-interview-in-ruby/
[11:58 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/how-to-build-instagram-using-ruby-on-rails/
[11:58 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/basics-of-graphql-with-ruby-on-rails/
[11:58 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/complete-guide-to-payments-with-ruby-on-rails-stripe-api/
[11:58 a. m., 7/9/2022] Carlos Azuaje: https://www.udemy.com/course/ruby-on-rails-api-the-complete-guide/
@CharlyJazz
CharlyJazz / libcontent_resolver.rb
Last active June 26, 2022 21:47
upload files to gist using ruby
# Struct to save file data
FileStruct = Struct.new(:filename, :content)
# Resolver content from a file of a folder of files
class ContentResolver
# Returns whether or not +file+ is a binary file. Note that this is
# not guaranteed to be 100% accurate. It performs a "best guess" based
# on a simple test of the first +File.blksize+ characters.
#
# Example:
@CharlyJazz
CharlyJazz / Respuestas.md
Last active May 5, 2023 23:13
Respuesta a "Muestrame proyectos que has hecho"

http://benekiva.com/

Este es un proyecto creado en Gatsby (React JS) desde 0, lo desplege en EC2 AWS y configura su SSL para HTTP y el dominio Su Backend lo hice en Strapi, un CMS hecho en Node JS, use NGINX, MongoDB y EC2 en AWS para su desplege

https://bconnectedmallorca.com/

Hice el front end desde 0 y planifique su arquitectura, consiste en una estructura de theme de October CMS, una alternativa a Wordpress. Usa React JS para componente independientes. No toda la pagina esta hecha en React porque no hace falta.

git branch -f master develop
git push -f origin master
re ilegal