Skip to content

Instantly share code, notes, and snippets.

View heitoralthmann's full-sized avatar

Heitor Althmann heitoralthmann

  • Interactive Strategies
  • Paranavaí, PR, Brazil
View GitHub Profile
@heitoralthmann
heitoralthmann / ex1.md
Created November 20, 2018 11:30
Exercícios para Carlens
  1. O que é/faz window.onload?
  2. O que é um canvas?
  3. Estudar documentação de document.createElement
  4. Estudar documentação de document.body.appendChild
  5. Estudar HTMLCanvasElement.getContext()
  6. Estudar CanvasRenderingContext2D.clearRect()
  7. Estudar CanvasRenderingContext2D.fillStyle
  8. Estudar CanvasRenderingContext2D.fillRect()
  9. Estudar setTimeout();
@heitoralthmann
heitoralthmann / tasks.json
Created October 31, 2018 20:01
VSCode task to clean a PHP file using the Drupal and DrupalPractice phpcs standards
{
"version": "2.0.0",
"tasks": [
{
"label": "PHP Clean",
"type": "shell",
"command": "phpcbf",
"args": [
"--standard=Drupal,DrupalPractice",
"--ignore-annotations",
@heitoralthmann
heitoralthmann / vscode-settings.json
Last active October 31, 2018 20:09
My VSCode settings for Drupal development
{
"breadcrumbs.enabled": false,
"css.validate": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.tabSize": 2,
"editor.autoIndent": true,
"editor.insertSpaces": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.renderWhitespace": "boundary",
@heitoralthmann
heitoralthmann / drupal-core-update.sh
Last active October 25, 2018 12:10
How to quickly update Drupal core
# From: https://www.computerminds.co.uk/articles/quickly-update-drupal-core
# curl 'https://github.com/drupal/drupal/compare/<from_version>..<to_version>.patch' | patch -p1
# Ex:
curl 'https://github.com/drupal/drupal/compare/7.59..7.60.patch' | patch -p1