Skip to content

Instantly share code, notes, and snippets.

@heriniaina
heriniaina / chat.html
Created January 14, 2024 09:35
chat.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat App</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 20px;
@heriniaina
heriniaina / proxy.php
Last active January 14, 2024 08:44
proxy php to forward request
<?php
// Allow requests from any origin
header("Access-Control-Allow-Origin: *");
// Replace 'YOUR_API_ENDPOINT' with the actual API endpoint
$apiEndpoint = 'https://sandipapi.onrender.com/gpt';
// Get the prompt from the query parameters
$prompt = isset($_GET['prompt']) ? $_GET['prompt'] : '';
<script src="https://katolika.org/katolika/vakiteny/androany/js"></script>
<audio src="https://docs.google.com/uc?authuser=0&id=XXXXXXXX&type=.mp3" class="media" type="audio/mp3" controls="controls">
</audio>
#include <iostream>
#include <string>
#include <map>
using namespace std;
int main() {
string source[12][3] = {
{"Jaona", "Math", "3"},
{"Marka", "Math", "5"},
//naotin'ny mpianatra
rows =
[{"Jaona", "Math", "3"},
{"Marka", "Math", "5"},
{"Solofo", "Math", "8"},
{"Jaona", "fizika", "4"},
{"Marka", "fizika", "3"},
{"Solofo", "fizika", "10"},
{"Jaona", "siansa", "5"},
/*
A 1 A1
A 2 A2
A 3 A3 1 2 3
B 1 B1 A A1 A2 A3
B 2 B2 => B B1 B2 B3
B 3 B3 C C1 C2 C3
C 1 C1
C 2 C2
body { font-size: 100%;}
p {font-size: initial;}
/*
Pour les codes ou nom de couleurs:
http://htmlcolorcodes.com/color-names/
*/
/* font plus grand */
body { font-size: 100%;}
@heriniaina
heriniaina / Server Backup Shell Script
Last active April 30, 2016 05:35 — forked from AlexBezuska/Server Backup Shell Script
Server Backup script not mine, credit goes to Joshua R Jones
#!/bin/bash
# A Simple Shell Script to Backup Red Hat / CentOS / Fedora / Debian / Ubuntu Apache Webserver and SQL Database
# Path to backup directories
USER="hery"
HOME="/home"
# Store only day of month
DOM=$(date +"%d")
# Temporary backup name
#define AIA 5 //mandroso
#define AIB 6 //mihemotra
#define BIA 8 //havia
#define BIB 7 //havanana
#define MS 12 // mijanona ny moteur direction
#define JI 10 // jiro
#define KX 9 //klaxon
char vertical; //mandroso sa mihemotra