This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Linux: | |
| virtualenv env | |
| . env/bin/activate | |
| pip install django | |
| django-admin startproject testsite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> | |
| <context-param> | |
| <param-name>javax.faces.PROJECT_STAGE</param-name> | |
| <param-value>Development</param-value> | |
| </context-param> | |
| <servlet> | |
| <servlet-name>Faces Servlet</servlet-name> | |
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | |
| <load-on-startup>1</load-on-startup> | |
| </servlet> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependencies> | |
| <dependency> | |
| <groupId>org.glassfish</groupId> | |
| <artifactId>javax.faces</artifactId> | |
| <version>2.2.7</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.primefaces</groupId> | |
| <artifactId>primefaces</artifactId> | |
| <version>5.0</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| İnternet izinleri: | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| <uses-permission android:name=”android.permission.ACCESS_WIFI_STATE” /> | |
| Harici Depolama İzinleri: | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| Harici Yazma İzinleri: | |
| <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| implementation 'de.hdodenhof:circleimageview:3.0.0' -> CircleImageView | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Login (e mail, password): | |
| Java | |
| auth.signInWithEmailAndPassword(email, password) | |
| .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { | |
| @Override | |
| public void onComplete(@NonNull Task<AuthResult> task) { | |
| if (!task.isSuccessful()) { | |
| // there was an error | |
| if (password.length() < 6) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sign up | |
| myAut.createUserWithEmailAndPassword(mail,password).addOnCompleteListener(new OnCompleteListener<AuthResult>() { | |
| @Override | |
| public void onComplete(@NonNull Task<AuthResult> task) { | |
| if(task.isSuccessful()) { | |
| Toast.makeText(getBaseContext(), "Successful!", Toast.LENGTH_SHORT).show(); | |
| startActivity(new Intent(SignupActivity.this, MainActivity.class)); | |
| } | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| İnsert Data: | |
| String id=mdatabase.push().getKey(); | |
| data=new Model(id,date,name,surname,radiocheck(r1,r2)); | |
| mdatabase.child(id).setValue(data); | |
| Delete Data: | |
| mdatabase.child(key).removeValue(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Android Camera back (0) | |
| mCamera= android.hardware.Camera.open(0); | |
| Android Camera front (1) | |
| mCamera= android.hardware.Camera.open(1); | |
| https://developer.android.com/reference/android/hardware/Camera.CameraInfo.html#CAMERA_FACING_BACK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Drawable: | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <item android:drawable="@color/colorPrimary"/> | |
| <item android:gravity="center"> | |
| <bitmap android:src="@drawable/my_logo" | |
| android:gravity="center"> | |
| </bitmap> |
OlderNewer