Skip to content

Instantly share code, notes, and snippets.

View djoudi's full-sized avatar
🏠
Working from home

Abdelouahab Djoudi djoudi

🏠
Working from home
View GitHub Profile
@djoudi
djoudi / countries.html
Created March 12, 2016 10:52 — forked from breda/countries.html
HTML Country List Dropdown - In Arabic
<select name="country">
<option value="" disabled selected>إختر</option>
<option value="أفغانستان">أفغانستان</option>
<option value="ألبانيا">ألبانيا</option>
<option value="الجزائر">الجزائر</option>
<option value="أندورا">أندورا</option>
<option value="أنغولا">أنغولا</option>
<option value="أنتيغوا وباربودا">أنتيغوا وباربودا</option>
<option value="الأرجنتين">الأرجنتين</option>
<option value="أرمينيا">أرمينيا</option>
@djoudi
djoudi / countries.html
Last active March 12, 2016 11:00 — forked from breda/countries.html
HTML Country List Dropdown - In Arabic
<select name="country">
<option value="" disabled selected>إختر</option>
<option value="أفغانستان">أفغانستان</option>
<option value="ألبانيا">ألبانيا</option>
<option value="الجزائر">الجزائر</option>
<option value="أندورا">أندورا</option>
<option value="أنغولا">أنغولا</option>
<option value="أنتيغوا وباربودا">أنتيغوا وباربودا</option>
<option value="الأرجنتين">الأرجنتين</option>
<option value="أرمينيا">أرمينيا</option>
@djoudi
djoudi / note.md
Created August 21, 2016 19:15 — forked from yang-wei/note.md
Vue.js tips and tricks

Notes: All the examples below are only tested on Vue.js 1.0 (above).

Notes: The examples below use ES6 so it's recommended to use browserify or webpack to easily integrate babel.

when or where can we use this.$el

When you need to access DOM attribute, be careful with the lifecycle. Vue.js has a few useful lifecycle hooks.

Let's say we want to scroll our component to the bottom (imagine it's a long list with overflow-y: auto) once it's instantiate.

@djoudi
djoudi / oracle_1Z0-061_notes.md
Created October 24, 2016 08:22 — forked from switchtrue/oracle_1Z0-061_notes.md
Notes for taking the 1Z0-061 Oracle Exam - Oracle Database 12c: SQL Fundamentals

Introduction

I have compiled these notes whilst revising for the Oracle 1Z0-061 Exam - Oracle Database 12c: SQL Fundamentals. They should also be relevant to the 1Z0-051 - Oracle Database 11g: SQL Fundamentals exam. Revision was most conducted using the excellent and highly recommended "OCA Oracle Database 12c SQL Fundamentals I Exam Guide" by Roopesh Ramklass.

I have aimed to include include in these notes common "gotchas" and easy to forget functionality rather than documenting everything required for the exam. This can then be used as a quick refresher before walking into the exam.

The content is broken up into sections with each heading mapping to the relevant [Oracle 1Z0-061 exam topics](https://edu

@djoudi
djoudi / App_Http_VideoStream.php
Created January 10, 2017 17:59 — forked from vluzrmos/App_Http_VideoStream.php
Laravel VideoStream.
<?php
namespace App\Http;
/**
* Description of VideoStream
*
* @author Rana
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069
*/
@djoudi
djoudi / gist:ffe1facd190657a5139ec4dfdc31ddb1
Created February 11, 2017 18:16 — forked from homaily/gist:8672499
Regex to validate saudi mobile numbers

السلام عليكم ، هذا كود ريجيكس بسيط للتحقق من صحة أرقام الجوالات السعودية ، يقوم الريجيكس بالتحقق من مفتاح الدولة ، مفتاح شركة الإتصالات لضمان صحة النص المدخل .

Hello, this is a simple regex to validate saudi mobile numbers, the code will validate country code, telecome company code and make sure the tested sting is correct .

/^(009665|9665|\+9665|05|5)(5|0|3|6|4|9|1|8|7)([0-9]{7})$/

Regex Breakdown - شرح الكود

#Odoo installation guide (on CentOS 7)
chungvh@resolve.com.vn
----------
##Operating system
@djoudi
djoudi / isMobile.js
Created March 9, 2017 08:03 — forked from vhchung/isMobile.js
javascript check mobile devices
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
@djoudi
djoudi / frontendDevlopmentBookmarks.md
Created May 7, 2017 08:52 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@djoudi
djoudi / build.gradle
Created May 30, 2017 07:21 — forked from donnfelker/build.gradle
gradle properties in Android Studio
// Other build stuff
task ndkBuild(type:Exec) {
if(androidNdkPath != null) {
def ndkBuild = new File(androidNdkPath, 'ndk-build')
commandLine ndkBuild
} else {
// do something else
}
}