Skip to content

Instantly share code, notes, and snippets.

@NizarETH
NizarETH / genymotionwithplay.txt
Created December 14, 2015 10:30 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
@NizarETH
NizarETH / README.md
Created May 12, 2016 15:04 — forked from tjamps/README.md
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

The API we are creating in this gist will follow these rules :

  • The API only returns JSON responses
  • All API routes require authentication
  • Authentication is handled via OAuth2 with password Grant Type only (no need for Authorization pages and such).
  • API versioning is managed via a subdomain (e.g. v1.api.example.com)

The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :

@NizarETH
NizarETH / RealmAutoIncrement.java
Created August 15, 2016 09:29 — forked from carloseduardosx/RealmAutoIncrement.java
RealmAutoIncrement is a singleton which maintain the last id saved from each database model
package com.carlosedurdo.database;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import io.realm.Realm;
import io.realm.RealmObject;
/**
{
"id": 1,
"girls": [
{
"id": 1,
"name": "maryam",
"ville": "mohammedia",
"tel": "0680223815",
"photo": ""
},
[
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Abidjan (ABJ)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Accra (ACC)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Adana (ADA)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Addis Abeba (ADD)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Agadir (AGA)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Al Hoceima (AHU)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Alger (ALG)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Amman (AMM)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Amsterdam (AMS)"},
{
"id": 1,
"departs":
[
{"html":"Abu Dhabi (AUH)"},
{"html":"Abuja (ABV)"},
{ "html":"Accra (ACC)"},
{ "html":"Adana (ADA)"},
{ "html":"Adana (ADA)"},
{ "html":"Adana (ADA)"},
[
{"id" : 1,
"title": "1D2C ملحمة العدميين Partie 3/3",
"url" : "HrIGzFm9cHg"
},
{"id" : 2,
"title": "1D2C ملحمة العدميين Partie 2/3",
"url" : "M0mcpLV_ybk"
},
{"id" : 3,
@NizarETH
NizarETH / jsonEats
Last active February 1, 2020 22:49
[{
"id": "1",
"name": "KFC",
"address": "address 1",
"review": "84%",
"delivery_time": "20-30 min",
"image": "https://www.financialafrik.com/wp-content/uploads/2018/02/this-is-what-kfc-is-famous.jpg",
"location": {
"lat": "48.873187",
"lng": "2.381376"
[
{
"id": 1,
"email_address": "user@user.com",
"token": "jhbfjksdfnkezjfcguyg",
"photo": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/AAEAAQAAAAAAAArFAAAAJDE2ZjgzMTE5LWExYzktNGUxNi1iMzMwLTMwY2I3NjQ5ODY2OA.jpg",
"role": "Responsable de sûreté",
"mobile_phone_number": "+212 6-11082010",
[ {
"id": "1",
"title_procedure": "Intrusion terrestre",
"details_procedure": "Individu isole",
"sector": "secteur 1",
"cases":
[
{"id": "1",
"treated": true,
"title" : "Cas 1",