Skip to content

Instantly share code, notes, and snippets.

View Qwizi's full-sized avatar
🎯
Focusing

Adrian Ciołek Qwizi

🎯
Focusing
View GitHub Profile
@Qwizi
Qwizi / ang.js
Last active January 22, 2025 19:59
ang
(() => {
try {
// Mark all objectives as completed
const objectiveCount = Number(SCORM2004_CallGetValue('cmi.objectives._count'));
if (objectiveCount > 0) console.log(`Completing ${objectiveCount} objectives`);
for (var i = 0; i < objectiveCount; i++) {
const objectiveId = SCORM2004_CallGetValue('cmi.objectives.' + i + '.id');
SCORM2004_SetObjectiveStatus(objectiveId, LESSON_STATUS_PASSED);
@Qwizi
Qwizi / InstallSoftware.ps1
Last active January 14, 2025 11:11 — forked from dougwaldron/InstallSoftware.ps1
Install software with winget / automate installation with PowerShell
# 1. Make sure the Microsoft App Installer is installed:
# https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1
# 2. Edit the list of apps to install.
# 3. Run this script as administrator.
Write-Output "Installing Apps"
$apps = @(
@{name = "7zip.7zip" },
@{name = "Adobe.Acrobat.Reader.64-bit" },
@{name = "Microsoft.Office" },
@Qwizi
Qwizi / manage.sh
Last active July 21, 2024 17:44
SharkServers manage.sh
#!/bin/bash
# SharkServers Management Script
# This script provides utilities for managing the SharkServers application environment.
set -e
set -o pipefail
# Function to display the help message
function help_message() {
echo -e "\033[1mUSAGE:\033[0m"
@Qwizi
Qwizi / test.js
Created July 30, 2020 12:48
test
alert(1);
@Qwizi
Qwizi / main.cpp
Created June 15, 2020 10:15
Zad1
#include <iostream>
using namespace std;
int main()
{
float pierwsza, druga, trzecia, wynik, srednia;
cout << "Podaj pierwsza liczbe: " << endl;
cin >> pierwsza;
import axios from "axios";
import LocalStorageService from "./services/storage/localstorageservice";
import router from "./router/router";
// LocalstorageService
const localStorageService = LocalStorageService.getService();
// Add a request interceptor
axios.interceptors.request.use(
config => {
@Qwizi
Qwizi / srednia.py
Last active April 6, 2020 11:37
Informatyka srednia
def main():
oceny = []
ile_ocen = int(input("Ile ocen: "))
for i in range(0, ile_ocen):
ocena = int(input("Podaj ocene: "))
if ocena > 6 or ocena <= 0:
raise Exception('Ocena nie moze byc wieksza niz 6 lub mniejsza lub rowna 0')
@Qwizi
Qwizi / main.cc
Last active April 4, 2020 13:48
Zadanka na infe
#include <iostream>
using namespace std;
// zadanie 1.34 - b
long int b_34(int n)
{
if (n == 1) return 2;
return 2*b_34(n-1);
}