Skip to content

Instantly share code, notes, and snippets.

View fmquaglia's full-sized avatar
🎯
Focusing

Fabricio Quagliariello fmquaglia

🎯
Focusing
  • Ciudad Autónoma de Buenos Aires, Argentina
View GitHub Profile
@fmquaglia
fmquaglia / release_notes.md
Last active May 19, 2020 10:06
Release Notes

Release Notes Guide and Template

This guide provides an outline, writing style guidelines, and a document template to help you structure and write your release notes.

It is not a set of rules.

After you fork this document or copy the example template found below, feel free to remove or modify sections and syntax that aren't applicable to the release.

@fmquaglia
fmquaglia / 01_requirements.md
Last active January 3, 2019 04:13
Andrew Exercise

REQUIREMENTS

You need to design a programming module PERMISSIONS that would allow Caller to Grant a permission to a User.
Check if a User has a particular Permission.

Caller is an external system that uses our module (particularly it calls our API).

Permission is a user right to take an action or access a resource.
Permissions for resource access can be READ or WRITE.
For example, Caller can grant a permission ”reboot the server” (an example of action) OR write to a file “C:/readme.txt” (an example of resource) to a user Andrew.

@fmquaglia
fmquaglia / example.js
Created June 29, 2017 17:43
CleverTap integration with a Chrome extension
console.log("Extension is active");
var elt = document.createElement("script");
elt.innerHTML = "window.clevertap = {event:[], profile:[], account:[], notifications:[], onUserLogin:[]};window.clevertap.account.push({'id': '846-Z7Z-6K4Z'})";
document.head.appendChild(elt);
(function () {
var wzrk = document.createElement('script');
wzrk.type = 'text/javascript';
wzrk.async = true;
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
'use strict';
angular.module('circleBackApp').controller(
'UICtrl',
function($scope,
$analytics,
$filter,
$location,
$log,
$q,
'use strict';
angular.module('circleBackApp')
.controller('ContactsCtrl',
function($scope,
$routeParams,
$route,
$rootScope,
$location,
$timeout,
'use strict';
angular.module('circleBackApp')
.service('Contacts', function($rootScope, $http, $localStorage, $log, $q, $filter, $timeout, CBCore, AuthService, Sorting, Groups) {
var Contacts = {};
Contacts.byId = {}; // contactId: Contact
Contacts.byGroupId = {}; // groupId: {contactId: Contact} LIVE contacts only
Contacts.groupsByContactId = {}; // contactId: {id: group}
Contacts.trashById = {}; // contactId: Contact
@fmquaglia
fmquaglia / code.cs
Last active December 21, 2015 12:59
List<string> someStrings = new List<string>() { “hello”, “goodbye”, “thanks”};
int count = someStrings.Count();
int count2 = someString.Count;
@fmquaglia
fmquaglia / NativeSessionStorage.php
Created July 3, 2013 17:34
fix para session started
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@fmquaglia
fmquaglia / .bashrc
Created April 16, 2013 16:23
This is a list of steps to get postgres installed and plugged with rails
### Aliases for postgres
pg_function() {
pg_ctl -D /usr/local/var/postgres -l logfile "$@" ;
}
alias pg="pg_function" # so now you may start and stop postgres using pg start or pg stop