Skip to content

Instantly share code, notes, and snippets.


Ahmed El Gabri ahmedelgabri

Block or report user

Report or block ahmedelgabri

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

Keybase proof

I hereby claim:

  • I am ahmedelgabri on github.
  • I am ahmedelgabri ( on keybase.
  • I have a public key ASBn5CQMC-lRe3exGPiMon9fXrgYYbBm3ycEoHccpL1alQo

To claim this, I am signing this object:

ahmedelgabri /
Last active Feb 17, 2017
Node script to export all your delicious bookmarks
  1. Download or clone the gist.
  2. cd into the directory & do $ npm install
  3. I have used nodedelicious and it needs you to store delcious username & password as enviromnet varaibles so you will need to do the following.
$ export DELICIOUS_USER="<your username>" && export DELICIOUS_PASSWORD="<your password>"
  1. Run $ node index.js
  2. PROFIT! you have your delicious export in a file called bookmarks.html that you can save or import in Pocket.
View .scss-lint.yaml
# From
# For SCSS-Lint v0.31.0
enabled: true
space_before_bang: true
space_after_bang: false
ahmedelgabri / SassMeister-input-HTML.html
Created Mar 10, 2015
Generated by
View SassMeister-input-HTML.html
<p>Lorem <a href="#">ipsum dolor</a> sit amet</p>
View bbd
# Usage: bbd "Sep 14"
# bbd "Sep"
git reflog --date=local | grep "$1 .* checkout: moving from .* to" | grep -o "[a-zA-Z0-9\-]*$" | sort | uniq
View foo.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>React for Beginners</title>
<div id="App"></div>
<script src=""></script>
ahmedelgabri / helpers.js
Last active Dec 28, 2015
JS helper functions
View helpers.js
// $('div') or $('.class', $('div'))
const $ = (selector, parent) => (parent || document).querySelector(selector)
// $$('div') or $$('.class', $('div')) => returns a real Array not a NodeList
const $$ = (selector, parent) => [...(parent || document).querySelectorAll(selector)]
ahmedelgabri / getType.js
Created Jan 8, 2016
Simple check for the type of an object
View getType.js
function getType(target){
return, -1).toLowerCase();
View flow-vim-quickfix.vim
if findfile('.flowconfig', '.;') !=# ''
if executable($PWD .'/node_modules/.bin/flow')
let g:flow_path = $PWD .'/node_modules/.bin/flow'
let g:flow_path = 'flow'
let g:neomake_javascript_flow_maker = {
\ 'exe': 'sh',
\ 'args': ['-c', g:flow_path.' --json --strip-root | flow-vim-quickfix'],
View .tern-config
"ecmaVersion": 6,
"libs": [
"loadEagerly": [],
"async": true,
"plugins": {
You can’t perform that action at this time.