Skip to content

Instantly share code, notes, and snippets.

View TarekkMA's full-sized avatar
🤔
Hmmmmmm

Tarek Mohamed Abdalla TarekkMA

🤔
Hmmmmmm
View GitHub Profile
#include <iostream>
using namespace std;
void accept();
void reject();
void S();
void A();
void B();
void D();

Keybase proof

I hereby claim:

  • I am tarekkma on github.
  • I am tarekkma (https://keybase.io/tarekkma) on keybase.
  • I have a public key ASDNPQBVF0qXGZScN63H7JdXwni6hSTY7S90AGV_3fM24wo

To claim this, I am signing this object:

@TarekkMA
TarekkMA / BOOL.md
Last active January 5, 2018 10:12
[Objective C Tips] #objc
/* don't use this code */

if(check() == YES){
	//CODE
}

/* because BOOL values can have any value becase it is implemnted as ``unsigned char`` in 32 bit arch systems */

/* use this insted */
@TarekkMA
TarekkMA / Description.md
Last active August 2, 2016 18:35
Retrofit 2 Custom/Modified Converter for editing the response before converting

This Code is Modifed from the retrofit2:converter-gson:2.1.0 ###How to use this class ?

  • Go to public T convert(ResponseBody value) method and clean your response as you wish
import com.google.gson.Gson;
import java.util.Arrays;
import java.util.List;
/**
* Created by TarekkMA on 5/10/16.
* www.FaceBook.com/tarekkma1
*/
public class JsonHelper {
private static final String TAG = "JsonHelper";
@TarekkMA
TarekkMA / main.js
Created February 15, 2016 12:23
7ASPAT-comp003
//-------------Dynamic Varibles----------------//
var sratWithUp = true //
var endWithDown = true //
var numOfPeeks = 4 //
var curveLength = 4 //
var cycleChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" //
//---------------------------------------------//
var curves = numOfPeeks * 2
if (!endWithDown) {curves--}
if (!sratWithUp) {curves--}