Skip to content

Instantly share code, notes, and snippets.

View dmitryweiner's full-sized avatar
🦝

Dmitry Weiner dmitryweiner

🦝
View GitHub Profile
View src\main\java\com\example\myapplication\MainActivity.java
package com.example.myapplication;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
@dmitryweiner
dmitryweiner / Activity.java
Created May 27, 2022 05:04
Web API call from Android Java
View Activity.java
package com.dmitryweiner.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
@dmitryweiner
dmitryweiner / hebrew.js
Created August 31, 2023 13:07
Hebrew in programming
View hebrew.js
const obj = { // אוביקט
a: 1, // שדה
};
function sum(arr /* פרמטר */) { // פונקציה
let acc// משתנה
= 0; // ערך המשתנה
for(let i = 0; i < arr.length; i++) { // לולאה
acc += arr[i];
}