Skip to content

Instantly share code, notes, and snippets.

View RafaelLeonhardt's full-sized avatar

Rafael Leonhardt RafaelLeonhardt

View GitHub Profile
@RafaelLeonhardt
RafaelLeonhardt / jenkins-material-theme.css
Created July 25, 2018 12:47
Benner Jurídico Jenkins Theme
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png
@RafaelLeonhardt
RafaelLeonhardt / config.json
Last active December 15, 2017 17:08
Módulo Favoritos
{
"menu": {
"children": [
{
"id": "res://senior.com.br/menu/custom/menu/site-senior",
"label": "Site da Senior",
"labelI18n": "platform.backend.modulo_favoritos_site_senior",
"itemIcon" : "fa-globe",
"path": {
"category": "NewTab",
<%@ ServiceHost Service="RafaelLeonhardt.Artigos.SOAContractFirstComWCF45.MegasenaImplementation"
CodeBehind="Megasena.svc.cs" Language="C#" Debug="true" %>
using System;
using data.rafaelleonhardt.com.br.soacontractfirstcomwcf45.megasena.v1;
namespace RafaelLeonhardt.Artigos.SOAContractFirstComWCF45
{
public class MegasenaImplementation : MegasenaService
{
public ConcursoResponse ObterConcurso(ConcursoRequest request)
{
return new ConcursoResponse
<?xml version="1.0"?>
<configuration>
...
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata externalMetadataLocation="../megasena.wsdl" httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
<?xml version="1.0" encoding="UTF-8"?>
<schema
targetNamespace="http://data.rafaelleonhardt.com.br/soacontractfirstcomwcf45/megasena/v1"
elementFormDefault="qualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://data.rafaelleonhardt.com.br/soacontractfirstcomwcf45/megasena/v1">
<complexType name="Concurso">
<sequence>
<element name="Numero" type="int"></element>
<element name="Data" type="dateTime"></element>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions name="Megasena"
targetNamespace="http://service.rafaelleonhardt.com.br/soacontractfirstcomwcf45/megasena/v1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://service.rafaelleonhardt.com.br/soacontractfirstcomwcf45/megasena/v1" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://data.rafaelleonhardt.com.br/soacontractfirstcomwcf45/megasena/v1">
<wsdl:import
namespace="http://data.rafaelleonhardt.com.br/soacontractfirstcomwcf45/megasena/v1"
location="megasena.xsd"></wsdl:import>
<wsdl:types>
<xsd:schema targetNamespace="http://service.rafaelleonhardt.com.br/soacontractfirstcomwcf45/megasena/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" >
@RafaelLeonhardt
RafaelLeonhardt / tiposComNomeDePalavrasReservadas.cs
Last active December 11, 2015 02:58
Declarando tipos com nome de palavras reservadas
class @class
{
public enum @enum
{
Um,
Dois
}
public void Exemplo()
{
@RafaelLeonhardt
RafaelLeonhardt / usandoVariaveisComNomeDePalavrasReservadas.cs
Last active December 11, 2015 02:49
Utilizando variáveis com nome de palavras reservadas
@class++; // Incrementa o valor
@int = 'b';
@event += " com arroba";
// ....
@RafaelLeonhardt
RafaelLeonhardt / variaveisComNomeDePalavrasReservadas.cs
Last active December 11, 2015 02:49
Declarando variáveis com nome de palavras reservadas
int @class = 0; // Ok
char @int = 'a'; // Ok
string @event = "meu evento"; // Ok
// ....