Skip to content

Instantly share code, notes, and snippets.

View AuraLoredana's full-sized avatar

Aura-Loredana AuraLoredana

  • Bucharest
View GitHub Profile
@AuraLoredana
AuraLoredana / rfcomm-client.py
Created March 17, 2022 11:29
rfcomm-client
import bluetooth
hostMACAddress =88:1B:99:0C:23:0F
port = 22
backlog = 1
size = 1024
s = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
s.bind((hostMACAddress, port))
s.listen(backlog)
try:
client, clientInfo = s.accept()
@AuraLoredana
AuraLoredana / rfcomm-server.py
Created March 17, 2022 11:27
rfcomm-server
import bluetooth
serverMACAddress =88:1B:99:0C:23:0F
port = 22
s = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
s.connect((serverMACAddress, port))
while 1:
text = raw_input()
if text == "quit":
break
s.send(text)
@AuraLoredana
AuraLoredana / app_.gitignore
Created April 10, 2017 19:22
Gradient Background
/build
@AuraLoredana
AuraLoredana / app_.gitignore
Created April 10, 2017 19:21
Gradiant Background changing
/build
@AuraLoredana
AuraLoredana / values-w820dp_dimens.xml
Created April 5, 2017 19:47
Values for the Quizz App
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_horizontal_margin">64dp</dimen>
</resources>
@AuraLoredana
AuraLoredana / gist:75252a8c0c9e0b7db00dc45152ffb265
Created April 5, 2017 19:47
Menu xml Layou for the Quizz App
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
</menu>
@AuraLoredana
AuraLoredana / layout_activity_exit_dialog.xml
Created April 5, 2017 19:46
The xml Layout for the Quizz App
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_exit_dialog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
package com.example.popescu.quizapp;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;