Skip to content

Instantly share code, notes, and snippets.


Aziz Segaoui stenrdj

Block or report user

Report or block stenrdj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stenrdj /
Created Jul 2, 2018 — forked from jareware/
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

stenrdj / git-pushing-multiple.rst
Created Apr 18, 2018 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.
View git-pushing-multiple.rst

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

View .bash_profile
### --- 04/18/18 | elementaryOS --- ###
alias gc='git commit -am'
alias lsd='ls -la'
alias gco='git co'
alias gs="git status"
# ls aliases
alias ll='ls -alF'
alias la='ls -A'
stenrdj / theme_image.php
Created Apr 13, 2018 — forked from peteboere/theme_image.php
Drupal theme overrides for better accessibility
View theme_image.php
theme_image() override.
function THEME_image($vars)
// [Accessibility] Images must always have an alt attribute.
if (! isset($vars['alt'])) {
$vars['alt'] = '';
stenrdj / DevStandards.MD
Created Apr 13, 2018 — forked from sherakama/DevStandards.MD
Stanford Web Services Drupal Development Standards
View DevStandards.MD

Drupal Development Standards

by Stanford Web Services
Version: 1.0.0
Date: October 30, 2015

This document is meant to be a comprehensive guide to web development standards for Stanford Web Services around Drupal web development. This document is our canonical source and guide.

Code Standards

stenrdj / drush_admin_create
Created Mar 16, 2018 — forked from ecorson/drush_admin_create
Add admin user via Drush
View drush_admin_create
drush user-create adminuser --mail="" --password="UserPw"; drush user-add-role "administrator" adminuser
stenrdj / docker.txt
Created Jan 29, 2018
Docker commands (Stop,Remove container and images)
View docker.txt
# Stop all containers
sudo docker stop $(sudo docker ps -a -q)
# Delete all containers
sudo docker rm $(sudo docker ps -a -q)
# Delete all images
sudo docker rmi $(sudo docker images -q)
stenrdj /
Created Sep 20, 2017 — forked from zenorocha/
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description


TODO: Describe the installation process


stenrdj / ResponsiveJS.js
Last active Oct 19, 2017
Responsive code for jquery
View ResponsiveJS.js
// On resizing window on desktop
if($(window).innerWidth() < 450) {
// your code here for responsive
//your code here for desktop
// Checking if its on desktop and make
You can’t perform that action at this time.