Skip to content

Instantly share code, notes, and snippets.

@othmanoss
othmanoss / nationalities.json
Created October 2, 2017 18:22
list of nationalities english arabic json
{
"Afghan": "أفغاني",
"Albanian": "ألباني",
"Algerian": "جزائري",
"American": "أمريكي",
"Andorran": "أندوري",
"Angolan": "أنغولي",
"Antiguans": "انتيغوا",
"Argentinean": "أرجنتيني",
"Armenian": "أرميني",
@981746
981746 / example.html
Created March 16, 2016 06:12 — forked from schmuli/example.html
A simple AngularJS service for handling the 'onbeforeunload' event
<!DOCTYPE html>
<html data-ng-app="TestApp">
<head>
<script src="http://code.angularjs.org/1.2.9/angular.js"></script>
<script>
angular.module('TestApp', [])
.factory('beforeUnload', function ($rootScope, $window) {
// Events are broadcast outside the Scope Lifecycle
@breda
breda / countries.html
Last active September 28, 2022 05:19
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>
@jmarceli
jmarceli / README.md
Last active October 31, 2019 09:46
React errors explained

1

You will get one of these:

Uncaught (in promise) TypeError: Cannot read property 'toUpperCase' of undefined(…)

ReactCompositeComponent.js:870 Uncaught TypeError: Cannot read property 'displayName' of undefined

if you try to: