Skip to content

Instantly share code, notes, and snippets.

View jacricelli's full-sized avatar

Jorge Alberto Cricelli jacricelli

  • VEMO S.A
  • Zárate, Buenos Aires, Argentina
View GitHub Profile
@jacricelli
jacricelli / AssemblyVersion.tt
Created June 27, 2018 17:14
Generación automática de propiedades del ensamblado por medio de una plantilla T4
<#@ template language="C#" #>
// <auto-generated/>
using System.Reflection;
[assembly: AssemblyFileVersion("1.0.0.<#= this.RevisionNumber #>")]
<#+
int RevisionNumber = (int)(DateTime.UtcNow - new DateTime(2018,1,1)).TotalDays;
#>
@jacricelli
jacricelli / .csscomb.json
Created June 6, 2018 02:26
Configuración de CSSComb
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
"quotes": "single",
@jacricelli
jacricelli / .eslintrc
Created June 6, 2018 02:25
Configuración de ESlint
{
"env": {
"browser": true,
"jquery": true
},
"extends": "./node_modules/eslint-config-jquery/.eslintrc.json",
"root": true
}
@jacricelli
jacricelli / .stylelintrc
Created June 6, 2018 02:25
Configuración de Stylelint
{
"extends": "stylelint-config-standard",
"rules": {
"color-hex-case": "lower",
"color-hex-length": "short",
"color-named": "never",
"comment-empty-line-before": "always",
"comment-whitespace-inside": "always",
"declaration-block-trailing-semicolon": "always",
"declaration-colon-space-after": "always",
@jacricelli
jacricelli / gist:637ab92408264d00a99168ad99a3bdb0
Created May 27, 2018 06:56 — forked from discordier/gist:ed4b9cba14652e7212f5
options for phpStorm @noinspection annotation
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@jacricelli
jacricelli / gist:b7b9aacf0214314c0d0855e61ebb82ca
Created January 31, 2018 13:21 — forked from bryhal/gist:4129042
MYSQL: Generate Calendar Table
DROP TABLE IF EXISTS time_dimension;
CREATE TABLE time_dimension (
id INTEGER PRIMARY KEY, -- year*10000+month*100+day
db_date DATE NOT NULL,
year INTEGER NOT NULL,
month INTEGER NOT NULL, -- 1 to 12
day INTEGER NOT NULL, -- 1 to 31
quarter INTEGER NOT NULL, -- 1 to 4
week INTEGER NOT NULL, -- 1 to 52/53
day_name VARCHAR(9) NOT NULL, -- 'Monday', 'Tuesday'...
<?php
// Título
echo $this->Plataforma->obtenerTitulo(); // Tutorías
// Título con un texto adicional
echo $this->Plataforma->obtenerTitulo('texto adicional'); // Tutorías - texto adicional
// Comprobar si la instalación corresponde a Tutorías o Graduados
if ($this->Plataforma->esGraduados()) {
echo 'Graduados';
@jacricelli
jacricelli / Int32TextBox.cs
Created June 28, 2017 18:18
Caja de texto que solo admite valores enteros.
using System;
using System.Windows.Forms;
namespace ICSharpCode.TextEditor.UserControls
{
class Int32TextBox : TextBox
{
public int Min { get; set; }
public int Max { get; set; }
@jacricelli
jacricelli / CueTextBox.cs
Created June 14, 2017 18:16 — forked from MatthewKing/CueTextBox.cs
A WinForms TextBox that has support for cue banners.
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
/// <summary>
/// A Windows text box control with a cue banner.
/// </summary>
public class CueTextBox : TextBox
{
/// <summary>
@jacricelli
jacricelli / IWin32Window.cs
Created June 13, 2017 14:33
Implementación de IWin32Window
namespace App.UI
{
using System;
using System.Windows.Forms;
/// <summary>
/// Implementación de <see cref="IWin32Window"/>.
/// </summary>
internal class Win32Window : IWin32Window
{