Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Anass AIT BEN EL ARBI Anass-ABEA

🎯
Focusing
View GitHub Profile
View Client.java
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
public class Client {
private Socket socket;
public void init() throws Exception{
View DEC.java
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
/**
* DES/CBC/NoPadding (56)
* DES/CBC/PKCS5Padding (56) *
* DES/ECB/NoPadding (56)
* DES/ECB/PKCS5Padding (56) *
View DEC.java
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
/**
* DES/CBC/NoPadding (56)
* DES/CBC/PKCS5Padding (56) *
* DES/ECB/NoPadding (56)
* DES/ECB/PKCS5Padding (56) *
View MainActivity.java
public class MainActivity extends AppCompatActivity{
protected ServiceMusique service;
private boolean connected;
private final ServiceConnection conn = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
Toast.makeText(getApplicationContext(), "connected To service", Toast.LENGTH_SHORT).show();
ServiceMusique.MyBinder binder = (ServiceMusique.MyBinder) iBinder;
service = binder.service;
@Anass-ABEA
Anass-ABEA / POM.xml
Last active Dec 11, 2021
Fichiers modifiés pendants les tests fonctionnels Selenium
View POM.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic</artifactId>
<version>2.5.0-SNAPSHOT</version>
<parent>
View updated.py
from graphviz import Digraph
import os
UP = "up"
LEFT = "left"
DOWN = "down"
RIGHT = "right"
class Node:
View bfs_dfs.py
from graphviz import Digraph
import os
class Node:
def __init__(self, state, parent, action, depth):
self.state = state
self.parent = parent
self.action = action
self.depth = depth
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mytodo">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
View dbGenerator.py
import sqlite3
conn = sqlite3.connect("database.db")
curs = conn.cursor()
curs.execute("CREATE TABLE users(id INTEGER PRIMARY KEY, login TEXT, password TEXT, nom TEXT,prenom TEXT, type INTEGER, spes INTEGER, prix INTEGER, max Integer)")
curs.execute("CREATE TABLE appoitnments(id INTEGER PRIMARY KEY, id_med INTEGER, id_pat INTEGER, date_app DATE, state INTEGER, motif TEXT)")
res = curs.execute("INSERT INTO users values (1,'m','password', 'Amine', 'Alami',0,0,300, 10)")
res = curs.execute("INSERT INTO users values (2,'m1','password', 'Yousef', 'Alami',0,1,310, 10)")
res = curs.execute("INSERT INTO users values (3,'m2','password', 'Ibrahim', 'Alami',0,2,330, 10)")
View AES.java
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.GCMParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.util.Base64;
/**
* Possible KEY_SIZE values are 128, 192 and 256
* Possible T_LEN values are 128, 120, 112, 104 and 96