Skip to content

Instantly share code, notes, and snippets.

View zoiosilva's full-sized avatar

Rafael Tomita zoiosilva

View GitHub Profile
@zoiosilva
zoiosilva / Combinatorics.js
Last active December 23, 2021 03:03
Recursive array items complete permutation.
"use strict";
/**
* Permutate all terms of the provided array.
*
* @param {any[]} terms
* The array terms to be combined.
* @param {any[]} precedence
* Some more terms to be added before the terms combination result.
*
@zoiosilva
zoiosilva / Behemoth-O Father O Satan O Sun.txt
Last active October 22, 2019 15:33
Tradução livre para o Português (pt-BR) da música do Behemoth "O Father O Satan O Sun"
Ó Pai, Ó Satã, Ó Sol
Akephalos
Akephalos (Um demônio sem cabeça, associado ao sol)
Shine through me
Brilhe através de mim
Come forth in war
Venha adiante em tempos de guerra
Come forth in peace
Venha adiante em tempos de paz
@zoiosilva
zoiosilva / error.md
Last active November 30, 2018 04:17
Drupal 8: Functional tests not working: chmod(): Operation not permitted
  • vendor/bin/phpunit -c ./web/core/ ./web/modules/custom/sandbox/tests/src/Functional/LoadTest.php
    Output:
zoio@ZOIO-STRIX:/mnt/c/www/temp/d8_temp$ vendor/bin/phpunit -c ./web/core/ ./web/modules/custom/sandbox/tests/src/Functional/LoadTest.php
PHPUnit 6.5.13 by Sebastian Bergmann and contributors.

Testing Drupal\Tests\sandbox\Functional\LoadTest
E                                                                   1 / 1 (100%)

Time: 34.35 seconds, Memory: 6.00MB
@zoiosilva
zoiosilva / sym3_notes.md
Last active October 11, 2018 05:25
Anotações dos cursos de Symfony e Drupal 8.
  • A versão do symfony do curso é a 3.0, quanto a minha é 3.4.
@zoiosilva
zoiosilva / Locadora.txt
Created September 14, 2018 20:12
Esqueminha rápido de entidades para uma locadora
class Video: implements {EntidadeBase}
string Título;
string Subtitulo;
{Idioma}[] IdiomasDeAudio: //pt-BR; en-US;, etc.
{Idioma}[] IdiomasDeLegenda: //pt-BR; en-US;, etc.
string[] Conteúdo:
Drama;
Comédia;
Adulto;
Pornochanchada;
@zoiosilva
zoiosilva / useDefineLang.xml
Created May 31, 2018 23:08
Notepad++ Dockerfile color scheme for gray (#3F3F3F) background.
<NotepadPlus>
<UserLang name="Dockerfile" ext="Dockerfile" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03 04 00# 01 02</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>