Skip to content

Instantly share code, notes, and snippets.

View paulovitorbal's full-sized avatar

Paulo Vitor Bettini de Paiva Lima paulovitorbal

  • Brasilia, Brazil
View GitHub Profile
{
"alarmes": [
{
"h": 5,
"m": 45,
"dow": [
0,
1,
2,
3,
@paulovitorbal
paulovitorbal / agenda_gestacional.php
Created February 17, 2020 15:43
Creates a CSV file to be imported on google calendar with the pregnancy weeks from a base date
<?php
class Evento {
public $subject;
public $startDate;
public $startTime = '';
public $endDate = '';
public $endTime = '';
public $allDay = 'True';
public $description = '';
public $location = '';
@paulovitorbal
paulovitorbal / create-list-to-export-from-funretro.io.js
Last active November 27, 2019 12:16
Create simple list of cards to export from Fun Retro
#this is supossed to be run on the console (tested only in google chrome)
function createListToExport(){
var elements = angular.element("main").scope().messages.filter(function(element){
return (element.type.id == 3)
});
console.log(elements);
var my_div = document.createElement('textarea');
my_div.id = 'export';
document.getElementsByTagName('body')[0].append(my_div);
@paulovitorbal
paulovitorbal / code-review-checklist.md
Last active October 30, 2018 16:22 — forked from nerandell/code-review-checklist.md
PHP Code Review Guidelines

Make sure these boxes are checked before submitting/approving the PR

General

  • The code works
  • The code is easy to understand
  • Names are simple and if possible short
  • Names are spelt correctly
  • Names contain units where applicable
  • There are no usages of magic numbers
  • No hard coded constants that could possibly change in the future