Strona 9 z 9
Bendżiego nieumiejętności (programistyczne)
: 16 lut 2024, 20:16
autor: Sheldon Anszlus Robingren
Ostatnia wiadomość z poprzedniej strony wątku
Damiano Windsachen pisze: ↑16 lut 2024, 12:16
A ja uważam, że do prac, czy też artykułów naukowych sprawują się znacznie lepiej niż takie LibreOffice chociaż nie wyobrażam sobie korzystać z tego na co dzień XD
Aktualnie nie muszę tworzyć nic takiego, więc mogę się z nimi nie lubić 😎
Bendżiego nieumiejętności (programistyczne)
: 25 lut 2024, 23:09
autor: Benjamin
Kod: Zaznacz cały
#grid(
columns: (11em, 1fr),
[
#circle(radius: 2em, fill: rgb(f-palette.yellow+"75"), place(dy: 50%, dx: 50%, line(length: 5em, stroke: rgb(f-palette.red))))
#place(dy: -2.59em, dx: 5.5em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.r])])
#place(dy: -1.5em, dx: 4.5em, text(fill: rgb(f-palette.red), [$F_1$]))
#place(dy: -2.25em, dx: 1.75em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#circle(radius: 2em, fill: rgb(f-palette.blue+"75"), place(dy: 50%, dx: -200%, line(length: 5em, stroke: rgb(f-palette.red),)))
#place(dy: -2.59em, dx: -2.99em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.l])])
#place(dy: -1.5em, dx: -2em, text(fill: rgb(f-palette.red), [$F_2$]))
#place(dy: -2.25em, dx: 1.8em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#rotate(90deg, place(dy: -2em, dx: -1.6em, line(length: 3em, stroke: (dash: "dashed"))))
#rotate(90deg, place(dy: -13.1em, dx: -2.8em, line(length: 3em, stroke: (dash: "dashed"))))
#place(dy: -1em, dx: 1.96em, line(length: 11.2em, stroke: (dash: "dashed")))
#place(dy: -0.5em, dx: 7em, [$R$])
#linebreak()
]
)

Bendżiego nieumiejętności (programistyczne)
: 27 lut 2024, 0:16
autor: Anastasia Windsachen
Benjamin pisze: ↑25 lut 2024, 23:09
Kod: Zaznacz cały
#grid(
columns: (11em, 1fr),
[
#circle(radius: 2em, fill: rgb(f-palette.yellow+"75"), place(dy: 50%, dx: 50%, line(length: 5em, stroke: rgb(f-palette.red))))
#place(dy: -2.59em, dx: 5.5em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.r])])
#place(dy: -1.5em, dx: 4.5em, text(fill: rgb(f-palette.red), [$F_1$]))
#place(dy: -2.25em, dx: 1.75em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#circle(radius: 2em, fill: rgb(f-palette.blue+"75"), place(dy: 50%, dx: -200%, line(length: 5em, stroke: rgb(f-palette.red),)))
#place(dy: -2.59em, dx: -2.99em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.l])])
#place(dy: -1.5em, dx: -2em, text(fill: rgb(f-palette.red), [$F_2$]))
#place(dy: -2.25em, dx: 1.8em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#rotate(90deg, place(dy: -2em, dx: -1.6em, line(length: 3em, stroke: (dash: "dashed"))))
#rotate(90deg, place(dy: -13.1em, dx: -2.8em, line(length: 3em, stroke: (dash: "dashed"))))
#place(dy: -1em, dx: 1.96em, line(length: 11.2em, stroke: (dash: "dashed")))
#place(dy: -0.5em, dx: 7em, [$R$])
#linebreak()
]
)

Zbrodniarzu Kustosz Ci nieznany?
Bendżiego nieumiejętności (programistyczne)
: 27 lut 2024, 11:59
autor: Sheldon Anszlus Robingren
Benjamin pisze: ↑25 lut 2024, 23:09
Kod: Zaznacz cały
#grid(
columns: (11em, 1fr),
[
#circle(radius: 2em, fill: rgb(f-palette.yellow+"75"), place(dy: 50%, dx: 50%, line(length: 5em, stroke: rgb(f-palette.red))))
#place(dy: -2.59em, dx: 5.5em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.r])])
#place(dy: -1.5em, dx: 4.5em, text(fill: rgb(f-palette.red), [$F_1$]))
#place(dy: -2.25em, dx: 1.75em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#circle(radius: 2em, fill: rgb(f-palette.blue+"75"), place(dy: 50%, dx: -200%, line(length: 5em, stroke: rgb(f-palette.red),)))
#place(dy: -2.59em, dx: -2.99em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.l])])
#place(dy: -1.5em, dx: -2em, text(fill: rgb(f-palette.red), [$F_2$]))
#place(dy: -2.25em, dx: 1.8em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#rotate(90deg, place(dy: -2em, dx: -1.6em, line(length: 3em, stroke: (dash: "dashed"))))
#rotate(90deg, place(dy: -13.1em, dx: -2.8em, line(length: 3em, stroke: (dash: "dashed"))))
#place(dy: -1em, dx: 1.96em, line(length: 11.2em, stroke: (dash: "dashed")))
#place(dy: -0.5em, dx: 7em, [$R$])
#linebreak()
]
)

Aż mi się przypomniało ten żółw co się w podstawówce "programowało" 😂
Bendżiego nieumiejętności (programistyczne)
: 27 lut 2024, 13:45
autor: Benjamin
Anastasia Windsachen pisze: ↑27 lut 2024, 0:16
Benjamin pisze: ↑25 lut 2024, 23:09
Kod: Zaznacz cały
#grid(
columns: (11em, 1fr),
[
#circle(radius: 2em, fill: rgb(f-palette.yellow+"75"), place(dy: 50%, dx: 50%, line(length: 5em, stroke: rgb(f-palette.red))))
#place(dy: -2.59em, dx: 5.5em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.r])])
#place(dy: -1.5em, dx: 4.5em, text(fill: rgb(f-palette.red), [$F_1$]))
#place(dy: -2.25em, dx: 1.75em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#circle(radius: 2em, fill: rgb(f-palette.blue+"75"), place(dy: 50%, dx: -200%, line(length: 5em, stroke: rgb(f-palette.red),)))
#place(dy: -2.59em, dx: -2.99em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.l])])
#place(dy: -1.5em, dx: -2em, text(fill: rgb(f-palette.red), [$F_2$]))
#place(dy: -2.25em, dx: 1.8em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#rotate(90deg, place(dy: -2em, dx: -1.6em, line(length: 3em, stroke: (dash: "dashed"))))
#rotate(90deg, place(dy: -13.1em, dx: -2.8em, line(length: 3em, stroke: (dash: "dashed"))))
#place(dy: -1em, dx: 1.96em, line(length: 11.2em, stroke: (dash: "dashed")))
#place(dy: -0.5em, dx: 7em, [$R$])
#linebreak()
]
)

Zbrodniarzu Kustosz Ci nieznany?
No ale jest na leockim 🤔
Bendżiego nieumiejętności (programistyczne)
: 27 lut 2024, 20:59
autor: Anastasia Windsachen
Benjamin pisze: ↑27 lut 2024, 13:45
Anastasia Windsachen pisze: ↑27 lut 2024, 0:16
Benjamin pisze: ↑25 lut 2024, 23:09
Kod: Zaznacz cały
#grid(
columns: (11em, 1fr),
[
#circle(radius: 2em, fill: rgb(f-palette.yellow+"75"), place(dy: 50%, dx: 50%, line(length: 5em, stroke: rgb(f-palette.red))))
#place(dy: -2.59em, dx: 5.5em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.r])])
#place(dy: -1.5em, dx: 4.5em, text(fill: rgb(f-palette.red), [$F_1$]))
#place(dy: -2.25em, dx: 1.75em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#circle(radius: 2em, fill: rgb(f-palette.blue+"75"), place(dy: 50%, dx: -200%, line(length: 5em, stroke: rgb(f-palette.red),)))
#place(dy: -2.59em, dx: -2.99em, [#text(size: 1.5em, fill: rgb(f-palette.red), [#sym.arrow.l])])
#place(dy: -1.5em, dx: -2em, text(fill: rgb(f-palette.red), [$F_2$]))
#place(dy: -2.25em, dx: 1.8em, [#circle(fill: rgb(f-palette.red), radius: 3pt)])
], [
#rotate(90deg, place(dy: -2em, dx: -1.6em, line(length: 3em, stroke: (dash: "dashed"))))
#rotate(90deg, place(dy: -13.1em, dx: -2.8em, line(length: 3em, stroke: (dash: "dashed"))))
#place(dy: -1em, dx: 1.96em, line(length: 11.2em, stroke: (dash: "dashed")))
#place(dy: -0.5em, dx: 7em, [$R$])
#linebreak()
]
)

Zbrodniarzu Kustosz Ci nieznany?
No ale jest na leockim 🤔
A jak nie daj MP coś się z bazą sypnie i stracone zostaną wszystkie wgrane zdjęcia? Poza tym serwer!!!111oneoneone
Bendżiego nieumiejętności (programistyczne)
: 28 lut 2024, 15:22
autor: Benjamin
Anastasia Windsachen pisze: ↑27 lut 2024, 20:59
A jak nie daj MP coś się z bazą sypnie i stracone zostaną wszystkie wgrane zdjęcia?
Bo forumowa to się nie może wysypać...
Bendżiego nieumiejętności (programistyczne)
: 29 lut 2024, 22:42
autor: Anastasia Windsachen
Benjamin pisze: ↑28 lut 2024, 15:22
Anastasia Windsachen pisze: ↑27 lut 2024, 20:59
A jak nie daj MP coś się z bazą sypnie i stracone zostaną wszystkie wgrane zdjęcia?
Bo forumowa to się nie może wysypać...
A przyjdzie Pan
@Helwetyk i Ci pokaże, że się da. 11:11 [*]. I wtedy obrazek pójdzie... a tak to byłby w Kustoszu.
Bendżiego nieumiejętności (programistyczne)
: 15 lip 2024, 0:26
autor: Benjamin
Wklejam z Discorda od
@Helwetyka bo nie chcę mi się tego szukać za każdym razem.
Tak, wiem, że CURLem lepiej. Ale jak działa, to nie wolno ruszać!
php, stempel, autoryzacja, kod, api, stempelapiphp
Kod: Zaznacz cały
$stempel = file_get_contents('https://stempel.org.pl/api/api0.php?klucz={KLUCZ}&haslo='.$_SESSION['haslo_jednorazowe']);
if ($stempel) {
$wynik = json_decode($stempel, true);
if (json_last_error() === JSON_ERROR_NONE) {
if ($wynik['blad']['kod'] !== 200) {
$stempel_message = 'Błąd: '.$wynik['blad']['komunikat'];
} else {
$ihr_zalogowany = true;
$_SESSION['stempel_paszport'] = $wynik['dane']['paszport'];
$_SESSION['stempel_personalia'] = $wynik['dane']['personalia'];
$_SESSION['stempel_awatar'] = $wynik['dane']['awatar'];
}
} else {
$stempel_message = 'Otrzymano błędne dane';
}
} else {
$stempel_message = 'Błąd komunikacji ze Stemplem';
}
Bendżiego nieumiejętności (programistyczne)
: 15 lip 2024, 8:12
autor: Damiano Robingren
Benjamin pisze: ↑15 lip 2024, 0:26
Wklejam z Discorda od @Helwetyka bo nie chcę mi się tego szukać za każdym razem.
Tak, wiem, że CURLem lepiej. Ale jak działa, to nie wolno ruszać!
php, stempel, autoryzacja, kod, api, stempelapiphp
No to trzymaj przerobioną wersję w jedynym słusznym frameworku :3
Kod: Zaznacz cały
import { createSignal, onCleanup } from "solid-js";
function StempelComponent() {
const [stempelMessage, setStempelMessage] = createSignal("");
const [ihrZalogowany, setIhrZalogowany] = createSignal(false);
const [stempelPaszport, setStempelPaszport] = createSignal(null);
const [stempelPersonalia, setStempelPersonalia] = createSignal(null);
const [stempelAwatar, setStempelAwatar] = createSignal(null);
const klucz = "{KLUCZ}";
const hasloJednorazowe = sessionStorage.getItem('haslo_jednorazowe');
async function fetchStempel() {
try {
const response = await fetch(`https://stempel.org.pl/api/api0.php?klucz=${klucz}&haslo=${hasloJednorazowe}`);
if (!response.ok) {
throw new Error('Błąd komunikacji ze Stemplem');
}
const wynik = await response.json();
if (wynik.blad.kod !== 200) {
setStempelMessage(`Błąd: ${wynik.blad.komunikat}`);
} else {
setIhrZalogowany(true);
sessionStorage.setItem('stempel_paszport', wynik.dane.paszport);
sessionStorage.setItem('stempel_personalia', wynik.dane.personalia);
sessionStorage.setItem('stempel_awatar', wynik.dane.awatar);
setStempelPaszport(wynik.dane.paszport);
setStempelPersonalia(wynik.dane.personalia);
setStempelAwatar(wynik.dane.awatar);
}
} catch (error) {
setStempelMessage(error.message || 'Otrzymano błędne dane');
}
}
fetchStempel();
return (
<div>
{stempelMessage() && <p>{stempelMessage()}</p>}
{ihrZalogowany() && (
<div>
<p>Paszport: {stempelPaszport()}</p>
<p>Personalia: {stempelPersonalia()}</p>
<img src={stempelAwatar()} alt="Awatar" />
</div>
)}
</div>
);
}
export default StempelComponent;