Skip to content

Instantly share code, notes, and snippets.

View ryonagana's full-sized avatar

Nicholas Oliveira ryonagana

View GitHub Profile
@ryonagana
ryonagana / spaceinvaders.c
Last active November 25, 2021 20:21
Space Invaders
#include <allegro5/allegro.h>
#include <allegro5/allegro_acodec.h>
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_native_dialog.h>
#include <stdio.h>
regex usado: ^([?|!])[\s](.+[aA-zZ0-9])[\s](.+[aA-zZ0-9])$
//feito for @admin do foroff
// corrigido por @MACRON DE ULTIMA ONLINE
//forumoff.com
//enquanto o forum nao for atualizado vai funcionar esse script
var posts = document.getElementsByClassName('cPost');
// adicione o nick dos octarios pra ser negativado
var octarios = ["rolha"];
@ryonagana
ryonagana / config.ini
Last active October 28, 2019 14:25
config.ini
[xdebug]
zend_extension=xdebug
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_host=localhost
xdebug.remote_log="/tmp/xdebug.log"
xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.idekey="VSCODE"
#!/usr/bin/python3.7
import os
import sys
import json
import csv
def usage():
print("=======================")
print("gen_tiles.py <file.csv>")
print("=======================")
@ryonagana
ryonagana / level.cpp
Created September 17, 2019 20:45
Level
#include "include/engine/level/CB_Level.h"
#include "include/engine/CB_Debug.h"
#include <fstream>
CB_Level::CB_Level()
{
map_tiles = new CB_Tile[ MAX_GRID_SIZE_W * MAX_GRID_SIZE_H ];
InitFreshMap();
}
public function adicionar_curso($processo_id){
$instituicao_id = $_SESSION['access_adm']['instituicao'];
//$processo_id = $_SESSION['access_adm']['processo'];
$cursos = $this->processoModel->listarCursosCadastradosEmProcesso($processo_id);
$processos = $this->processoModel->listarProcessos();
$this->form_validation->set_rules('processos', 'Processos', 'required|trim|is_numeric');
if($this->form_validation->run() == FALSE){
#!/usr/bin/env python
"""
To Run This Script you 2 things
- use virtualenv
- install pillow (PIL fork for python 3.x) - pip install pillow
"""
import sys
import os
char *path_data_folder(const char *folder, const char *file)
{
ALLEGRO_PATH *exe_path = NULL;
ALLEGRO_PATH *path = NULL;
ALLEGRO_PATH *data_dir = NULL;
char copy_path[2048];
exe_path = al_get_standard_path(ALLEGRO_RESOURCES_PATH);
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "include/engine/stack.h"
#include "include/engine/mem.h"
void stack_init(CB_STACK **elem, void *data)
{
CB_STACK *n_element = NULL;