Skip to content

Instantly share code, notes, and snippets.

View maccevedor's full-sized avatar

Mauricio Acevedo Rueda maccevedor

View GitHub Profile
@maccevedor
maccevedor / origin
Created July 5, 2014 15:23
Saber cual origin esta utilizando mi repositorio en git
git remote show origin
@maccevedor
maccevedor / settings.json
Last active March 27, 2020 16:13
Drupal phpcs Visual code
{
"workbench.startupEditor": "newUntitledFile",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
// "php.validate.executablePath": "D:\\WinNMP\\bin\\PHP\\64bit-php-7.3\\php.exe",
// "php.validate.run": "onType",
"window.zoomLevel": 1,
"debug.toolBarLocation": "docked",
"docker.attachShellCommand.linuxContainer": "bash",
"workbench.colorTheme": "Shape",
"workbench.iconTheme": "material-icon-theme",
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+tab",
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditor",
"when": "!inEditorsPicker"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.quickOpenLeastRecentlyUsedEditor",
"phpcs.enable": true,
"phpcs.showSources": true, //See line
"phpcs.standard": "Drupal,DrupalPractice",
"breadcrumbs.enabled": true,
"css.validate": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.tabSize": 2,
"editor.autoIndent": true,
"editor.insertSpaces": true,
@maccevedor
maccevedor / tasks.json
Created October 30, 2019 20:37
Task for visual code
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Remove Image Docker",
"type": "shell",
"command": "docker rmi -f $(docker images -a -q)"
},
@maccevedor
maccevedor / select.php
Last active September 13, 2018 16:16
drupal Devel
$connection = \Drupal::database();
$query = $connection->query("select * from {key_value} where name='tabla'");
$result = $query->fetchAll();
ksm($result);
@maccevedor
maccevedor / handwriting-animation-svg-css.markdown
Created July 16, 2018 18:21
Handwriting Animation (SVG + CSS)

Handwriting Animation (SVG + CSS)

My name animated for personal branding.

This piece started out as a sketch on the iPad Pro using an Apple Pencil and Procreate. From there, it was converted into a single vector graphic using Adobe Illustrator.

In order to optimize the SVG for animation, the graphic was chopped up into smaller pieces. This was done primarily to prevent path elements from overlapping with unrelated clipPath elements, but also allowed finer control over the animation. All of the animated path elements were exported from Adobe Illustrator and fine-tuned with code.

A Pen by Marina on CodePen.

@maccevedor
maccevedor / BitBucket
Created October 30, 2014 14:58
Download Commit Bitbucket
Example especific download commit with bitbucket , writing sha commit.
https://bitbucket.org/maccevedor/educampbackup/get/0512644.zip
header('Access-Control-Allow-Origin: *');
# 'dev' environment and debug enabled
$ php bin/console command_name
# 'prod' environment (debug is always disabled for 'prod')
$ php bin/console command_name --env=prod
# 'test' environment and debug disabled
$ php bin/console command_name --env=test --no-debug