This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env osascript | |
global meetingLink | |
on get_meeting_link(t) | |
tell application "Microsoft Edge" | |
tell t to execute javascript "document?.querySelector('iframe')?.contentDocument?.querySelector('div[data-tid=meet_now_calendar_flyout_meeting_link_text_field] input')?.value || ''" | |
end tell | |
end get_meeting_link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading, commands, re, subprocess | |
from datetime import datetime | |
class Cpu: | |
def __init__(self): | |
self.overload_threshold = 0.7 | |
self.idle_threshold = 0.1 | |
self.possible_steps = [1.4, 1.5, 1.7, 1.9, 2.1] | |
self.current_step = 0 | |
self._cpu_usage = 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aapl <- read.csv("./aapl.csv", header=TRUE, dec=".", sep=",") | |
aapl$Date <- as.Date(aapl$Date, "%Y-%m-%d") | |
plot(Close ~ Date, aapl, xaxt = "n", type = "l") | |
axis(1, aapl$Date, format(aapl$Date, "%b %y"), cex.axis = .7) | |
# | |
# 1. Napisać funkcję obliczającą zwroty przy zadanym horyzoncie czasowym. | |
# | |
# ROT - rate of change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 1. Które pliki konfiguracyjne wczytywane są po zalogowaniu do | |
# graficznego interfejsu użytkownika i otworzeniu okna terminala? | |
# | |
cat /var/log/*org* | grep ".conf" | |
cat ~/.profile | |
# | |
# 2. Ustaw znak zachęty tak, aby oprócz nazw użytkownika i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program uses the device CURAND API to calculate what | |
* proportion of pseudo-random ints have low bit set. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <cuda.h> | |
#include <curand_kernel.h> | |
/* include MTGP host helper functions */ | |
#include <curand_mtgp32_host.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program uses the device CURAND API to calculate what | |
* proportion of pseudo-random ints have low bit set. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <cuda.h> | |
#include <curand_kernel.h> | |
/* include MTGP host helper functions */ | |
#include <curand_mtgp32_host.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# 2.1 | |
# Pakuje zbior plikow tekstowych do jednego pliku | |
# Nazwy plikow wejsciowych i archiwum powinny byc podane jako argumenty konsoli | |
# | |
# Pack textfiles as one file | |
# Input and output files are passed as cmd line parameters | |
import os | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# 1.1 | |
# Najwiekszy wspolny dzielnik podanej listy dodatnich liczb naturalnych | |
# Greatest common denominator for given list of positive integers | |
# Intuitive solution: | |
# def gcd(number_1, number_2): | |
# lower = min(number_1, number_2) | |
# for i in reversed(xrange(1, lower+1)): | |
# if not (number_1 % i and number_2 % i): |