Skip to content

Instantly share code, notes, and snippets.

View stenrdj's full-sized avatar
🎯
Focusing

Aziz Segaoui stenrdj

🎯
Focusing
View GitHub Profile
@stenrdj
stenrdj / .gitlab-ci.yml
Created January 29, 2021 10:37 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@stenrdj
stenrdj / SCSS.md
Created July 2, 2018 00:21 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

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
stenrdj / git-pushing-multiple.rst
Created April 18, 2018 11:45 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

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

### --- 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
stenrdj / theme_image.php
Created April 13, 2018 13:03 — forked from peteboere/theme_image.php
Drupal theme overrides for better accessibility
<?php
/*
theme_image() override.
*/
function THEME_image($vars)
{
// [Accessibility] Images must always have an alt attribute.
if (! isset($vars['alt'])) {
$vars['alt'] = '';
@stenrdj
stenrdj / DevStandards.MD
Created April 13, 2018 13:01 — forked from sherakama/DevStandards.MD
Stanford Web Services Drupal Development Standards

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
stenrdj / drush_admin_create
Created March 16, 2018 11:48 — forked from ecorson/drush_admin_create
Add admin user via Drush
drush user-create adminuser --mail="adminuser@uiowa.edu" --password="UserPw"; drush user-add-role "administrator" adminuser
@stenrdj
stenrdj / docker.txt
Created January 29, 2018 09:56
Docker commands (Stop,Remove container and images)
# 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
stenrdj / ResponsiveJS.js
Last active October 19, 2017 14:35
Responsive code for jquery
// On resizing window on desktop
$(window).bind('resize',function(){
if($(window).innerWidth() < 450) {
// your code here for responsive
}else{
//your code here for desktop
}
});
//end
// Checking if its on desktop and make