Skip to content

Instantly share code, notes, and snippets.

View yacine's full-sized avatar
🎯
Focusing

Yacine Benzerroug yacine

🎯
Focusing
View GitHub Profile
@yacine
yacine / css_debug.sublime-snippet
Created April 9, 2019 11:28
SublimeText css debug snippet
<snippet>
<content><![CDATA[
background-color: ${1:teal} ${2:!important};$3
]]></content>
<tabTrigger>_debug</tabTrigger>
<scope>source.css, source.scss, source.sass</scope>
</snippet>
@yacine
yacine / vanilla-js-cheatsheet.md
Created February 13, 2019 15:48 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@yacine
yacine / gist:4bc0a2966326a816a913ab1ca9dc9454
Created July 10, 2018 19:18 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@yacine
yacine / bookmak
Last active June 24, 2018 20:06
Dev personal bookmark
#Pug
https://devhints.io/pug
https://codepen.io/mimoduo/post/pug-js-cheat-sheet
@yacine
yacine / csscomb.json
Created May 21, 2018 09:26
CSSComb config
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"leading-zero": false,
"sort-order-fallback": "abc",
"space-before-colon": "",
@media (min-width: @screen-xs-min) {}
@media (min-width: @screen-sm-min) {}
@media (min-width: @screen-md-min) {}
@media (min-width: @screen-lg-min) {}
@media (min-width: @screen-xs-max) {}
@media (min-width: @screen-sm-max) {}
@media (min-width: @screen-md-max) {}
@yacine
yacine / font-weight.less
Created May 24, 2016 14:29
Less - Font weight short cuts
// font weight
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
@yacine
yacine / screencapture.sh
Created February 9, 2016 18:15
Change OS X's Default Screenshot Format and Location
# Change format
defaults write com.apple.screencapture type jpg
# Change default location
mkdir ~/Pictures/Screenshots/
defaults write com.apple.screencapture location ~/Pictures/Screenshots/
killall SystemUIServer
@yacine
yacine / Preferences.sublime-settings
Created February 3, 2016 18:18
Sublime text preferences
{
"ignored_packages":
[
"jQuery",
"Markdown Preview",
"Vintage",
"WordPress"
],
"font_size": 14,
"tab_size": 4,
@yacine
yacine / .showhiddenfiles.sh
Created January 11, 2016 07:58
Simple shell script that allows to show or not the hidden files in osx via terminal
# Usage
# $ showhiddenfiles 'Args'
# YES 'Default you can leave YES'
# NO
function showhiddenfiles () {
defaults write com.apple.finder AppleShowAllFiles -bool ${1:-YES}
killall Finder
}