Skip to content

Instantly share code, notes, and snippets.

Rogério Adriano rogerioadris

Block or report user

Report or block rogerioadris

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
View Python Exceptions
+-- SystemExit
+-- KeyboardInterrupt
+-- GeneratorExit
+-- Exception
+-- StopIteration
+-- ArithmeticError
| +-- FloatingPointError
| +-- OverflowError
| +-- ZeroDivisionError
rogerioadris / .gitlab-ci.yml
Created Feb 7, 2018 — forked from yetanotherchris/ .gitlab-ci.yml
.NET Core continous integration with Docker, Kubernetes, Gitlab and Google Cloud
View .gitlab-ci.yml
# The docker tag is the first 6 letters of the Git commit id
stage: build
image: microsoft/dotnet:latest
- dotnet restore
- dotnet publish src/MyProject.Web -c Release
View gist:ae5243813bfb65ab80f3a06544408dc9
// tenho a query
Update:= TSQLQuery.Create(nil);
Update.SQLConnection := GetSQLConnection;
// Aqui adiciono a query com as variavel de parametro
Update.SQL.Add('UPDATE Contas SET Cta_Valor_Pago = (Cta_Valor_Pago + :ValorBaixa) WHERE Cta_Codigo = :CTA_CODIGO;');
View pagina2.ts
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { AutenticacaoServiceProvider } from '../../providers/autenticacao-service/autenticacao-service';
selector: 'page-pagina2',
templateUrl: 'pagina2.html',
export class Pagina2Page {
View home.ts
import { Component } from '@angular/core';
import { NavController, AlertController } from 'ionic-angular';
import { AutenticacaoServiceProvider } from '../../providers/autenticacao-service/autenticacao-service';
selector: 'page-home',
templateUrl: 'home.html'
export class HomePage {
View home.html
Auth App
<ion-content padding>
<h2 *ngIf="isAuthenticated()" text-center>O usuário está logado!</h2>
View autenticacao-service.ts
import { Injectable } from '@angular/core';
export class AutenticacaoServiceProvider {
private isLoggedIn = false;
constructor() { }
login(): void {
rogerioadris / app.module.ts
Last active Nov 9, 2017
Protegendo seu aplicativo Ionic com Guards
View app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { AutenticacaoServiceProvider } from '../providers/autenticacao-service/autenticacao-service';


  • Install-Package Microsoft.Owin.Host.SystemWeb -Version 3.1.0
  • Install-Package Microsoft.Owin.Security.OAuth -Version 3.1.0
  • Install-Package JWT -Version 2.4.1


Microsoft.Owin.Host.SystemWeb: Para poder usar a class Startup.cs

rogerioadris / Youtube
Last active Dec 8, 2017
Download playlist youtube radio pionner
View Youtube
youtube-dl -f 'bestvideo[width<=720]+bestaudio' --recode-video avi
## Converter video carro
for i in *.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -i "$i" -aspect 16:9 -s 720x480 -vcodec mpeg4 -vtag XVID -b:a 1200k -b:v 1200k -acodec libmp3lame -ab 128k "./../Convertido/${name}.avi";
#ffmpeg -i ../Arquivos/Videos\ Carro/Video/Bruno\ \&\ Marrone\ -\ Agora\ \(Ahora\)-8xKlfkZhXds.mkv
You can’t perform that action at this time.