Skip to content

Instantly share code, notes, and snippets.

View gvso's full-sized avatar

Getulio Valentin Sánchez gvso

View GitHub Profile
@gvso
gvso / test.py
Created September 18, 2020 00:52
import unittest
def myPrefferedName() -> str:
answer = "Kimberly. My pronouns are she/her"
return answer
def myPronouns():
return "She/Her"
def multiply(z):
@gvso
gvso / tsconfig.json
Created August 30, 2016 15:05
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
<?php
namespace Drupal\social_auth_google\Settings;
/**
* Defines an interface for Social Auth Google settings.
*/
interface GoogleAuthSettingsInterface {
/**
@gvso
gvso / src\Form\GoogleAuthSettingsForm.php
Last active July 19, 2016 20:23
Social Auth Google - Settings Form
<?php
namespace Drupal\social_auth_google\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Settings form for Social Auth Google.
*/
@gvso
gvso / social_auth_google.routing.yml
Last active July 19, 2016 20:29
Social Auth Google - Routes
social_auth_google.settings_form: # Settings form route
path: '/admin/social-api/social-auth/google'
defaults:
_title: 'Google Account Settings'
_form: 'Drupal\social_auth_google\Form\GoogleAuthSettingsForm'
requirements:
_permission: 'administer social api authentication'
social_auth_google.redirect_to_google: # Route that redirects to Google Accounts for authentication
path: 'user/login/google'
@gvso
gvso / 1.social_auth_google.info.yml
Last active July 19, 2016 20:28
Social Auth Google - .info.yml and composer.json
name: Social Auth Google
description: Social Auth integration for Google
core: 8.x
type: module
package: Social
dependencies:
- social_auth
@gvso
gvso / FacebookWidgetsLocalTasks.php
Created May 31, 2016 18:25
Local Tasks Deriver for Facebook Widgets
<?php
/**
* @file
* Contains \Drupal\facebook_widgets\Plugin\Derivative\DynamicLocalTasks.
*/
namespace Drupal\facebook_widgets\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\Core\Menu\LocalTaskManager;
@gvso
gvso / DefaultController.php
Created February 19, 2016 14:33 — forked from jmolivas/DefaultController.php
Drupal 8 example: How to render a Twig template and load a CSS file from a Controller
<?php
namespace Drupal\acme\Controller;
use Drupal\Core\Controller\ControllerBase;
class DefaultController extends ControllerBase
{
/**
<article id="post-342" class="post-342 post type-post status-publish format-standard hentry category-gear-framework category-php">
<header class="entry-header">
<h1 class="entry-title"><a href="http://conocimientoplus.wordpress.com/2014/03/24/gear-framework-caracteristicas/" rel="bookmark">Gear Framework. Características</a></h1>
<div class="entry-meta">
Publicado el
<a href="http://conocimientoplus.wordpress.com/2014/03/24/gear-framework-caracteristicas/" title="8:15 pm" rel="bookmark">
<time class="entry-date" datetime="2014-03-24T20:15:14+00:00">marzo 24, 2014</time>
</a>
<span class="byline"> por <span class="author vcard"><a class="url fn n" href="http://conocimientoplus.wordpress.com/author/gvso/" title="Ver todas las entradas de Valentin Sánchez" rel="author">Valentin Sánchez</a></span></span>
</div><!-- .entry-meta -->