Skip to content

Instantly share code, notes, and snippets.

@OCR-VH-DevWeb
OCR-VH-DevWeb / gist:89a7ffc1783b7d5179aab2de61850766
Created May 2, 2024 11:44
POO en TS 2 / Encapsulation/ Challenge Ecrire une classe avec un attribut privé
//Ecrire une classe avec un attribut privé
// En t'inspirant de l'exemple ci-dessus, écris une classe BankCustomer.
// Son constructeur devra prendre deux paramètres, le premier étant le nom du client, le second, le code secret de sa carte bleue.
// Ces paramètres devront être stockés de façon à n'être pas visibles depuis le code appelant (privés, donc).
// Une méthode getName permettra de récupérer le nom du client.
// Une méthode verifyPinInput devra permettre de vérifier si un code secret entré correspond bien au code stocké par l'instance, et renvoyer true si c'est le cas, false sinon.
// On te fournit un squelette de programme, à compléter et à tester avec Node.js.
// N'oublie pas d'installer le ou les modules nécessaires avant
@rayanfer32
rayanfer32 / ollama-stream.js
Created May 2, 2024 11:44
Read the ollama response as a stream
const axios = require("axios");
const BASE_URL = "http://localhost:11434/api/generate";
axios({
method: "post",
url: BASE_URL,
data: {
"model": "llama3",
"prompt": "Tell me a joke"
@wildenali
wildenali / cuda_install.md
Created May 2, 2024 11:43 — forked from denguir/cuda_install.md
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@choco-bot
choco-bot / Install.txt
Created May 2, 2024 11:43
dropit.install v8.5.1 - Failed - Package Tests Results
==> default: Running provisioner: shell...
[ERROR] An error occurred in the underlying SSH library that Vagrant uses.
[ERROR] The error message is shown below. In many cases, errors from this
[ERROR] library are caused by ssh-agent issues. Try disabling your SSH
[ERROR] agent or removing some keys and try again.
[ERROR] If the problem persists, please report a bug to the net-ssh project.
[ERROR] timeout during server version negotiating
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 2, 2024 11:42
xiphqt v0.1.5 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-3166082273-3713568515-573898151-1000</user>
<keys>
<key installerType="Unknown" displayName="Xiph QuickTime Components" displayVersion="">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XiphQT</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files (x86)\QuickTime\QTComponents\XiphQTuninstall.exe"]]></UninstallString>
05-02 16:40:52.132 18979 19321 I AppMetrica: [roguelike.action.adventure] : [3c54b191-xxxx-xxxx-xxxx-xxxxxxxxf490] Event received: building_upgrade. With value: {"building_name":"Herbalist","building_level":2,"battle_session_count":11,"game_time":12697}
05-02 16:40:52.138 603 603 I SurfaceFlinger: screenshot (Background for -SurfaceView - roguelike.action.adventure/com.unity3d.player.UnityPlayerActivity#0)
05-02 16:40:52.138 603 603 I SurfaceFlinger: isIncludeStatusBarAndNavBar (1)
05-02 16:40:52.138 18979 19139 I Unity : [CutsceneSequenceController] Perform [5/9] DelayCutsceneAction
05-02 16:40:52.138 603 603 I SurfaceFlinger: screenshot (SurfaceView - roguelike.action.adventure/com.unity3d.player.UnityPlayerActivity#0)
05-02 16:40:52.138 603 603 I SurfaceFlinger: isIncludeStatusBarAndNavBar (1)
05-02 16:40:52.253 603 603 I SurfaceFlinger: screenshot (Background for -SurfaceView - roguelike.action.adventure/com.unity3d.player.UnityPlayerActivity#0)
05-02 16:40:52.253 603 603 I Surfa

PR-18607 (Sha: 2c8e8bd4)

OS: Linux bctldroxie011.noam.lnrm.net (Linux 3.10.0-1160.114.2.el7.x86_64) Host: bctldroxie011.noam.lnrm.net GCC: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) - Git: 1.8.3.1CMake: 3.18.0curl: 7.29.0node.js: v16.13.0npm: 8.1.0

Build error: Build log Build log

@choco-bot
choco-bot / Install.txt
Created May 2, 2024 11:42
dropit.portable v8.5.1 - Failed - Package Tests Results
==> default: Running provisioner: shell...
[ERROR] An error occurred in the underlying SSH library that Vagrant uses.
[ERROR] The error message is shown below. In many cases, errors from this
[ERROR] library are caused by ssh-agent issues. Try disabling your SSH
[ERROR] agent or removing some keys and try again.
[ERROR] If the problem persists, please report a bug to the net-ssh project.
[ERROR] timeout during server version negotiating
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created May 2, 2024 11:42
Rimworld output log published using HugsLib
Log uploaded on Thursday, May 2, 2024, 8:42:14 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:24.4.15), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1.7,fv:1.1.9), VWEMakeshift(1.0.0)
Grand Rivers Reborn(Meltup.GrandRivers.Reborn): (no assemblies)
Camera+(brrainz.cameraplus)[mv:2.7.5.0]: CameraPlus(2.7.5), CrossPromotion(1.1.2)
Increased Stack(Taveron.IncreasedStack): (no assemblies)
EdB Prepare Carefully(EdB.PrepareCarefully)[mv:1.5.5]: EdBPrepareCarefu