ContactListActivity.java
public void getContactsFromAPI()
{
RestClient.execGetRequest(CONTACTSAPI,
this,
new VolleyCallback() {
@Override
public <T> void onSuccess(ArrayList<T> result) {
Log.d(TAG, "onSuccess: Contacts : " + result.size());
contacts = (ArrayList<Contact>) result;
if (!contacts.isEmpty()) {
Recyclpackage edu.lakeland.mycontactlist;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.ByteArrayOutputStream;
import java.io.Serializable;
import java.util.Calendar;
public class Contact implements Serializable {
private static final String TAG = "ContactEntity";
private static final String DELIM = "|";
// Private private static <T> void executeRequest(T entity,
String url,
Context context,
VolleyCallback volleyCallback,
int method,
Class<T> entityType)
{
Log.d(TAG, "executeRequest: Start : " + method + " : " + url);
ArrayList<T> entities = new ArrayList<T>();
public static <T> void execPostRequest(T entity,
String url,
Context context,
VolleyCallback volleyCallback,
Class<T> entityType)
{
try
{
executeRequest(entity, url, context, volleyCallback, Request.Method.POST, entityType);
}
catch(Exception e)
{
public static <T> void execGetOneRequest(String url,
Context context,
VolleyCallback volleyCallback,
Class<T> entityType)
{
Log.d(TAG, "execGeOneRequest: Start");
RequestQueue requestQueue = Volley.newRequestQueue(context);
ArrayList<T> entities = new ArrayList<T>();
Log.d(TAG, "execGeOneRequest: " + url);
trpublic static <T> void execGetRequest(String url,
Context context,
VolleyCallback volleyCallback,
Class<T> entityType)
{
Log.d(TAG, "execGetRequest: Start");
RequestQueue requestQueue = Volley.newRequestQueue(context);
ArrayList<T> entities = new ArrayList<T>();
Log.d(TAG, "execGetRequest: " + url);
try
{
public static <T> void execGetRequest(String url,
Context context,
VolleyCallback volleyCallback,
Class<T> entityType)
{
Log.d(TAG, "execGetRequest: Start");
RequestQueue requestQueue = Volley.newRequestQueue(context);
ArrayList<T> entities = new ArrayList<T>();
Log.d(TAG, "execGetRequest: " + url);
try
{
public static <T> void execGetRequest(String url,
Context context,
VolleyCallback volleyCallback,
Class<T> entityType)
{
Log.d(TAG, "execGetRequest: Start");
RequestQueue requestQueue = Volley.newRequestQueue(context);
ArrayList<T> entities = new ArrayList<T>();
Log.d(TAG, "execGetRequest: " + url);
try
{
## Prompt Systemowy - Master Generator
```xml
<generator_asystentow>
<misja_glowna>
Jesteś Uniwersalnym Generatorem Asystentów AI - ekspertem systemem zaprojektowanym do tworzenia wysoce wyspecjalizowanych, gotowych do wdrożenia asystentów AI dla każdej domeny profesjonalnej. Twoim zadaniem jest generowanie kompletnych, gotowych do użycia promptów systemowych, które definiują kompetentnych, niezawodnych asystentów AI zdolnych zarówno do ekspertyzy domenowej, jak i współpracy technicznej.
</mis# Sharing
Every snippet in Cacher has a corresponding page on [Snippets](https://snippets.cacher.io/), our community hub for sharing code. The page's visibility is dependent on whether the snippet is **public or private** and the **Privacy Setting** for the page.
Here are a few examples of snippet pages:
- [Markdown Task Lists in Cacher](https://snippets.cacher.io/snippet/108f62b6b8d8dd18610c)
- [Svelte is really fast](https://snippets.cacher.io/snippet/37dc3da63ce006296521)
- [DigitalOcean RaTu es un assistant de développement rigoureux.
Ta mission est d’exécuter et corriger le projet jusqu’à ce qu’il soit entièrement propre et fonctionnel.
Objectif :
Exécuter successivement :
1️⃣ `npm run lint`
2️⃣ `npm run typecheck`
3️⃣ `npm run build`
4️⃣ `npm run test`
Règles :
- Corriger **toutes** les erreurs ou warnings jusqu’à obtenir **0 erreur** sur les 4 étapes.
- **Ne jamais** désactiver une règle ESLint (`// eslint-disable` ou équivalent).
- Corriger les causes racines (imports, ty```
https://admin.shopify.com/store/{your-store-link}/products/9954787197241/events.json
```#!/usr/bin/env nu
def main [title_query: string, wf: string = actions.yml, limit: int = 1000] {
gh run list --workflow=$"($wf)" --limit $limit --json displayTitle,url,headBranch,status | from json | where displayTitle =~ $title_query
}<!DOCTYPE html> <!-- This file was downloaded from https://eaglercraft.ir/ --> <!-- Visit our website for more updates, tools, and support: https://eaglercraft.ir/ --> <html style="width:100%;height:100%;background-color:black;"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" /> <meta name="description" content="Eaglercraft 1.12 WASM-GC Offline" /> <meta name="keywords" content="eaglercraft, eaglercraftxCREATE DEFINER=`onlinevacations`@`%` PROCEDURE `CalendarInfo`(IN startDateParam DATE,
IN endDateParam DATE,
IN propertyIdParam INT,
OUT resultJSON JSON
)
BEGIN
WITH RECURSIVE DateRange AS (
SELECT startDateParam AS date
UNION ALL
SELECT date + INTERVAL 1 DAY
FROM DateRange
WHERE date < endDateParam
)
SELECT
JSON_ARRAYAGG(
JSON_OBJECT(
'date', dr.date,
'room_id', av.room_id,
Backend:
- Nhập dữ liệu: dùng google form write data to sheet.
- dùng php vercel web để send POST to google form url
- Truy vấn data:
- dùng google script tạo http: truy cập vào sheet để lấy & show dữ liệu json
Frontend:
- cloudflare page: fetch vào `https://script.google.com/macros/s/AK…/exec` đc cấu hình cors
- Khi nhập phone và submit thì load lại page `?phone=` sau đó js fetch để show result.