Skip to content

Instantly share code, notes, and snippets.

View rpayanm's full-sized avatar

Rolando rpayanm

View GitHub Profile
  1. Poner el código sin la carpeta node_modules y platforms.

  2. Actualizar ionic y cordova:

    $ sudo npm uninstall ionic cordova
    $ sudo npm install ionic cordova
    
  3. Ejecutar dentro del proyecto:

border-left: thick solid #ff0000;
.your-item {
position: relative;
}
.your-item:after {
content: '';
height: 100%; //You can change this if you want smaller/bigger borders
width: 1px;
{#
https://www.drupal.org/node/1906780
Beware of dump()
If you want to see all variables, but dump() results in exhausted memory because of recursion or the like, you can loop through _context to see the all the keys in it:
#}
<ol>
{% for key, value in _context %}
<li>{{ key }}</li>
{% endfor %}
</ol>

Por weight:

global-styling:
...
  css/styles.css { weight: -1 }
...
  js/scripts.js { scope: footer, weight: -6 }
...

Al header:

// dependencies:
// - core/jquery
// - core/drupal
// - core/once
// https://www.drupal.org/docs/drupal-apis/javascript-api/javascript-api-overview
(function ($, Drupal, once) {
'use strict';
Drupal.behaviors.myCustomBehavior = {

git merge --squash branch

global $user;
$file = new stdClass();
$file->fid = NULL;
$file->uri = 'private://' . $filename;
$file->filename = $filename;
$file->filemime = file_get_mimetype($file->uri);
$file->uid = $user->uid;
$file->status = 0;
file_save($file);
<?php
$s = preg_replace('/\}|\{/', '', $query->__toString());
$a = $query->arguments();
foreach ($a as $key => $val) {
$a[$key] = '\'' . $val . '\'';
}
$select = strtr($s, $a);