Skip to content

Instantly share code, notes, and snippets.

View RamiJ3mli's full-sized avatar

Rami Jemli RamiJ3mli

View GitHub Profile
@RamiJ3mli
RamiJ3mli / content_length
Created October 20, 2023 09:56
Http content length
.
{
"success": true,
"data": {
"tasks": [
{
"id": "271",
"name": "ma tache",
"description": "",
"project": "Winter is coming",
"priority": 2,
{
"success": true,
"data": {
"tasks": [
{
"id": "296",
"date": {
"date": "2018-11-06 14:30:32.000000",
"timezone_type": 3,
"timezone": "Europe/Berlin"
@RamiJ3mli
RamiJ3mli / ActivityPlaceholder.java
Last active December 19, 2018 16:09
ConstraintLayout placeholder example
@BindView(R.id.constraint_layout)
ConstraintLayout constraintLayout;
@BindView(R.id.placeholder)
Placeholder placeholder;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
@RamiJ3mli
RamiJ3mli / activity_placeholder.xml
Last active December 19, 2018 07:25
ConstraintLayout placeholder example
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/constraint_layout"
android:background="#263238">
<TextView
android:id="@+id/question"
android:layout_width="wrap_content"
@RamiJ3mli
RamiJ3mli / ar_android.json
Last active August 30, 2018 14:26
leuhsin
[
{
"id": 1,
"title": "Stamp 1",
"marker_type": "1",
"marker_content": "http://www.bigfoto.com/sun-plants-picture.jpg",
"content_type": "1",
"content": "http://www.bigfoto.com/sun-plants-picture.jpg",
"created_at": "2018-08-30 09:19:04",
"updated_at": "2018-08-30 09:19:04",
@RamiJ3mli
RamiJ3mli / ar.json
Last active September 26, 2018 13:45
Lamif
[
{
"id": 1,
"title": "test hassen",
"content_type": "1",
"content": "http://ec2-52-69-161-136.ap-northeast-1.compute.amazonaws.com/arp-dev/public/marker_img/15baa5dc58410e.jpg",
"file_3d_android": null,
"file_3d_ios": null,
"content_display": "2",
"new_width": null,
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
@RamiJ3mli
RamiJ3mli / constraintlayout_relative_percentage.xml
Created August 25, 2018 23:28
Relative percentage based dimensions
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/button"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:background="@drawable/bg"