Skip to content

Instantly share code, notes, and snippets.

View TareqElMasriDev's full-sized avatar

Tareq El-Masri TareqElMasriDev

View GitHub Profile
@TareqElMasriDev
TareqElMasriDev / ReversedDigit.js
Created October 25, 2016 10:43
Checks the number equals its reverse order
'use strict';
const numbertest = (digit) => {
let reversedDigit = '';
for (let $i = `${digit}`.length; $i >= 0; $i--) {
reversedDigit += `${digit}`.charAt($i);
}
console.log(reversedDigit === digit);
};
@TareqElMasriDev
TareqElMasriDev / .zprofile
Last active December 19, 2016 14:54
My personal dotfile
#!/bin/bash
#export PATH=$PATH:/Users/macbook/mongodb/bin
export PATH=$PATH:/data/master/SDK/android-sdk/sdk/tools
export PATH=$PATH:/Applications/Genymotion\ Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS/
export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages:$PYTHONPATH
export JAVA_HOME=$(/usr/libexec/java_home)
export ANDROID_HOME=/usr/local/opt/android-sdk
alias redis=~/redis/src/redis-server
Remote-FTP@0.8.3
an-color-picker@1.0.2
angular-2-typeScript-snippets@0.4.6
angular2-snippets@0.3.0
ask-stack@2.2.0
atom-angular-material-snippets@1.2.0
atom-angular-snippets@1.0.0
atom-beautify@0.29.10
atom-csscomb@1.10.0
atom-htmltidy@5.1.0
@TareqElMasriDev
TareqElMasriDev / mongoexport.sh
Created December 9, 2016 11:53
Script for exporting mongo database dumb
LOADING=false
usage()
{
cat << EOF
usage: $0 [options] dbname
OPTIONS:
-h Show this help.
-l Load instead of export
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<true/>
<key>AlternateMouseScroll</key>
<true/>
@TareqElMasriDev
TareqElMasriDev / .zshrc
Last active December 19, 2016 14:55
ZSH Configurations
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/tareq/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bullet-train"
@TareqElMasriDev
TareqElMasriDev / webpack.js
Created February 2, 2017 09:51
Webpack Configurations
const path = require('path')
const webpack = require('webpack')
const autoprefixer = require('autoprefixer')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const BrowserSyncPlugin = require('browser-sync-webpack-plugin')
const ModernizrPlugin = require('modernizr-webpack-plugin')
const production = process.argv.indexOf("--production") > -1
@TareqElMasriDev
TareqElMasriDev / bundles.txt
Created March 9, 2017 14:48
ZSH Antibody bundles
# this block is in alphabetic order
caarlos0/git-add-remote kind:path
caarlos0/jvm
caarlos0/ports kind:path
caarlos0/zsh-git-fetch-merge kind:path
caarlos0/zsh-git-sync kind:path
caarlos0/zsh-mkc
caarlos0/zsh-open-pr kind:path
mafredri/zsh-async
Tarrasch/zsh-bd
@TareqElMasriDev
TareqElMasriDev / firefox.desktop
Created March 31, 2017 12:58
Firefox Developer Edition Linux Desktop Entry
[Desktop Entry]
Name=Firefox Developer
GenericName=Firefox Developer Edition
Exec=/opt/firefox/firefox %U
Terminal=false
Icon=/opt/firefox/browser/icons/mozicon128.png
Type=Application
Categories=Application;Network;Developer;
Comment=Firefox Developer Edition Web Browser.
JS: "desiredOdometerAccuracy": 100,
JS: "locationUpdateInterval": 1000,
JS: "fastestLocationUpdateInterval": 10000,
JS: "locationTimeout": 60,
JS: "deferTime": 0,
JS: "disableElasticity": false,
JS: "activityRecognitionInterval": 10,
JS: "minimumActivityRecognitionConfidence": 75,
JS: "triggerA
JS: ],