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 / 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'...
@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 / .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 / .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 / .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 / 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 / apcu.php
Created August 14, 2018 17:31
APCu - APC User Cache
<?php
/*
+----------------------------------------------------------------------+
| APC |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2011 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
@jacricelli
jacricelli / vista-fonts-installer.sh
Created April 8, 2019 03:34
Installing Vista Fonts in Ubuntu
#!/bin/sh
# Copyright (c) 2007-2018 Aristotle Pagaltzis
#
# 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:
#
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000001
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000001