Skip to content

Instantly share code, notes, and snippets.

View mstekl's full-sized avatar

Mauricio Stekl mstekl

View GitHub Profile
@mstekl
mstekl / gist:2a32effc368d69f3901b3ceb524ecfbc
Created October 21, 2020 21:38
Drupal 8 query users with boolean field != true and a specific role
$query = \Drupal::entityQuery('user')
->condition('roles', 'myRole', 'CONTAINS');
$group = $query->orConditionGroup()
->notExists('field_processed')
->condition('field_processed', 1, '<>');
$ids = $query->condition($group)->execute();
@mstekl
mstekl / gulpfile.js
Created May 6, 2020 18:02
Simple SASS compile/watch Gulp tasks
const gulp = require('gulp');
/**
* build css
*/
const sass = require('gulp-sass');
const browserSync = require('browser-sync').create();
function compileCss(cb){