Skip to content

Instantly share code, notes, and snippets.

Nicholas Oliveira ryonagana

Block or report user

Report or block ryonagana

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import sys
import os
import blessings
import time
from blessings import Terminal
term = Terminal()
import os
import sys
import re
import random
import utils
from colorama import Back, Fore, Style, init
from utils import term
View Cart.php
esta classe abstrata devera estar inclusa na sua classe customizda para produtos
os atributos id e name sao usado para buscas por isso é obrigatorio te-los na assinatura da classe
abstract class Product {
ryonagana / gist:9917132
Created Apr 1, 2014
Classe do Carrinho
View gist:9917132
abstract class Product {
public $id = 0;
public $qty = 1;
public $name = ""; // it needs for using search!
public $price = 0.0;
View gist:dd888b0c043c8f84471a
import os
import sys
import time
from PyQt4 import QtGui as _qg
from PyQt4 import QtCore as _qc
esta class é a classe da thread que vai rodar paralelamente
a thread principal da aplicação
View test.c
if(invincible_on ){
invincible_count += 100;
if(*ingame_timer_count >= invincible_timer){
invincible_on = FALSE;
invincible_count = 0;
selected->flags.invincible |= 0;
printf("%d", invincible_count);
View request
from flask import Flask
import json
import urllib.request
app = Flask(__name__)
def hello_world():
r = urllib.request.urlopen('')
View gist:1aeadb9383f5b47077528cf9d5ee58a9
extends KinematicBody2D
const GRAVITY = Vector2(0,900)
const WALK_SPEED = 250.0
const JUMP_SPEED = 450
const DOWN_FORCE = Vector2(0,-1)
var linear_vel = Vector2()
const MAX_FALLING_SPEED = 1400
View readini.c
#include "include/engine/menu.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
CB_MENU *menu_init(const char *menufile)
CB_MENU *menu_ptr = NULL;
menu_ptr = malloc(sizeof(CB_MENU));
View stack.c
#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;
You can’t perform that action at this time.