Skip to content

Instantly share code, notes, and snippets.

View cbueno's full-sized avatar

Cristóferson Bueno cbueno

  • Atlants Animes
  • Belo Horizonte, Brasil
  • X @cbueno
View GitHub Profile
@cbueno
cbueno / Criar novo Usuário e Schema.sql
Last active February 10, 2025 16:59 — forked from igorsgm/Criar novo Usuário e Schema.sql
#Criar novo Usuário e Schema no Banco de Dados Oracle
alter system set "_ORACLE_SCRIPT"=true SCOPE=SPFILE;
alter session set "_ORACLE_SCRIPT"=TRUE; -- para permitir a criação de usuários sem o prefixo C## ou c##
CREATE USER NOME_USUARIO_AQUI IDENTIFIED BY SENHA_USUARIO_AQUI DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;
GRANT CREATE SESSION TO NOME_USUARIO_AQUI;
GRANT CREATE TABLE TO NOME_USUARIO_AQUI;
ALTER USER NOME_USUARIO_AQUI QUOTA UNLIMITED ON USERS;
GRANT EXP_FULL_DATABASE TO NOME_USUARIO_AQUI;
GRANT CONNECT TO NOME_USUARIO_AQUI;
GRANT create session, alter session TO NOME_USUARIO_AQUI;
GRANT create procedure to NOME_USUARIO_AQUI;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cbueno
cbueno / myteste.json
Last active February 16, 2017 01:41
myteste
{
"blocosVersao" : 1,
"desfilesVersao" : 1,
"showsVersao" : 1,
}
@cbueno
cbueno / EPSG29193.js
Created October 16, 2014 19:37
Projection Definition which better fits to Belo Horizonte Area
Proj4js.defs["EPSG:29193"] = "+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs";
@cbueno
cbueno / MIT-LICENSE.txt
Created September 24, 2012 16:27
EN: Objective-C class for validate CPF number / PT-BR: Classe em Objective-C para validação de CPF
Copyright (C) 2012 Cristóferson Bueno
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE U
@cbueno
cbueno / UIImage+Resize.m
Created September 5, 2012 21:30 — forked from erans/UIImage+Resize.m
UIImage+Resize.m Fix for Rotation / Orientation on iOS 5
- (UIImage *)resizedImage:(CGSize)newSize interpolationQuality:(CGInterpolationQuality)quality {
BOOL drawTransposed;
CGAffineTransform transform = CGAffineTransformIdentity;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0) {
// Apprently in iOS 5 the image is already correctly rotated, so we don't need to rotate it manually
drawTransposed = NO;
} else {
switch (self.imageOrientation) {
case UIImageOrientationLeft: