Skip to content

Instantly share code, notes, and snippets.

View albertbaldi's full-sized avatar

Albert Lima albertbaldi

View GitHub Profile
using Interface;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Repository
{
public class DisciplinaRepository : IRepository<Disciplina>
@albertbaldi
albertbaldi / Program.cs
Last active January 15, 2021 01:31
C# PrintDocument sample
class Program
{
static void Main(string[] args)
{
PrintDocument pd = new PrintDocument();
pd.DefaultPageSettings.PrinterSettings.PrinterName = "doPDF v7";
pd.DefaultPageSettings.Landscape = false;
pd.DefaultPageSettings.PaperSize = new PaperSize("PaperA4", 826, 1169);
pd.DefaultPageSettings.Margins = new Margins(15, 15, 15, 15);
pd.OriginAtMargins = true;
@albertbaldi
albertbaldi / formopen.sublime-snippet
Created October 5, 2015 13:41
SublimeText 2 snippet: Blade form open
<snippet>
<content>
<![CDATA[
{!! Form::open(['route' => '${1}']) !!}
${3}
{!! Form::submit('${2:Gravar}', ['class' => 'btn btn-block btn-primary']) !!}
{!! Form::close() !!}
]]>
</content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
@albertbaldi
albertbaldi / aa.sublime-snippet
Last active October 5, 2015 13:38
SublimeText 2 snippet: Blade show var
<snippet>
<content>
<![CDATA[{!! ${1} !!}]]>
</content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>aa</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@albertbaldi
albertbaldi / ai.sublime-snippet
Last active October 5, 2015 13:38
SublimeText 2 snippet: Blade named properties
<snippet>
<content>
<![CDATA['${1}' => '${2}', ]]>
</content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ai</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@albertbaldi
albertbaldi / formi.sublime-snippet
Created October 5, 2015 13:33
SublimeText 2 snippet: Blade form-group
<snippet>
<content>
<![CDATA[
<div class="form-group">
{!! Form::label('${1}', '${2}', ['class' => 'form-label']) !!}
{!! Form::text('${1}', null, ['class' => 'form-control', 'id' => '${1}']) !!}
</div>
]]>
</content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
@albertbaldi
albertbaldi / extend.sublime-snippet
Created October 5, 2015 13:32
SublimeText 2 snippet: Blade extend
<snippet>
<content>
<![CDATA[
@extends('${1:app}')
@section('${2:content}')
${3}
@endsection
]]>
</content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
@albertbaldi
albertbaldi / app.css
Last active October 5, 2015 13:30
Gist para criar um arquivo app.css utilizando a fonte Roboto
body {
font-family: "Roboto", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333333;
background-color: #ffffff;
}