Skip to content

Instantly share code, notes, and snippets.

View guilebc's full-sized avatar
🏠
Working from home

Guillaume guilebc

🏠
Working from home
View GitHub Profile

System Prompt - Social Sentiment Analysis

Role

You are an expert in social sentiment analysis specializing in evaluating social media comments (Instagram and Facebook). Your mission is to analyze post comments and determine the overall community sentiment.

Scoring System

You must assign a score from 0 to 10 that reflects the overall social sentiment:

  • 0-2: Very negative sentiment (red) - Severe criticism, anger, massive rejection
  • 3-4: Negative sentiment (orange-red) - Dissatisfaction, moderate criticism
  • 5: Neutral sentiment (yellow) - Mixed opinions, balance between positive and negative
@guilebc
guilebc / stream.sh
Last active January 31, 2025 20:48
# Le script stream.sh
#!/bin/bash
# Configuration
DISPLAY_NUM=:99
SCREEN_WIDTH=1920
SCREEN_HEIGHT=1080
WEB_URL="https://url.fr/" # Remplacez par votre URL
RTMP_URL="rtmp://a.rtmp.youtube.com/live2/YOUR-STREAM-KEY" # Remplacez par votre clé de stream
FRAMERATE=30
@guilebc
guilebc / Asset.php
Created August 8, 2023 10:17
CreateAction::make() with mutateFormDataUsing doesn't work
<?php
namespace App\Models;
use App\Enums\AssetTypeEnum;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\EloquentSortable\SortableTrait;
@guilebc
guilebc / calendar.js
Created September 14, 2022 12:51
Generate calendar grid
function generateCalendar(year, month)
{
const weeks = [];
const startDate = moment([year, month])
.clone()
.startOf("month")
.startOf("week");
const endDate = moment([year, month]).clone().endOf("month");
const day = startDate.clone();
@guilebc
guilebc / Promise.js
Created October 11, 2021 08:48
Delayed Promise
window.Promise = window.Promise || {};
Promise.create = function() {
const promise = new Promise((resolve, reject) => {
this.temp_resolve = resolve;
this.temp_reject = reject;
});
promise.resolve = this.temp_resolve;
promise.reject = this.temp_reject;
@guilebc
guilebc / 2019-https-localhost.md
Created July 1, 2020 11:55 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).