Skip to content

Instantly share code, notes, and snippets.

View MohammedRashad's full-sized avatar
🎸
Developing New Tech

Mohamed Rashad MohammedRashad

🎸
Developing New Tech
View GitHub Profile
@MohammedRashad
MohammedRashad / FragmentChange.java
Last active April 13, 2017 23:55
Helper Class to move between fragments in android
package com.dummy.app;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
public class FragmentChange {
FragmentTransaction fragmentTransaction;
public void setCurrentFragment(Fragment newFragment, Context mContext) {
@MohammedRashad
MohammedRashad / SharedPreferences.java
Last active November 14, 2016 10:33
Helper Class for saving values in android using SharedPreferences
package com.dummyname.app;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
public class SharedPreferences{
SharedPreferences spf;
SharedPreferences.Editor edit;
@MohammedRashad
MohammedRashad / arduino_ROV.ino
Last active November 14, 2016 10:38
ROV Controlling Sketch, Receiving Commands via UART
#include <Servo.h>
Servo esc1;
Servo esc2;
Servo esc3;
Servo esc4;
int x = 220;
void setup() {