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
#!/bin/bash | |
WP_DIR=/home/jazz/Pictures/Wallpapers | |
DESK=desktop | |
BG_LIST=($WP_DIR/$DESK/*) | |
N=${#BG_LIST[@]} | |
((N=RANDOM%N)) | |
RAND_BG=$(basename ${BG_LIST[$N]}) |
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
void append_song_head(Song **head_ref) { | |
/** | |
* User interface for appending a new node. | |
*/ | |
// Variables used in adding a new node | |
char artist[CHAR_LIMIT]; | |
char album[CHAR_LIMIT]; | |
char title[CHAR_LIMIT]; | |
char year[6]; | |
char duration_m[10]; |
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
/** | |
* Copyright 2019 Błażej Sewera | |
* Licensed under MIT License | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct node { |
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
#include <cstddef> | |
#include <iostream> | |
class Wezel { | |
public: | |
Wezel(int data, Wezel* prev, Wezel* next) { | |
this->data = data; | |
this->prev = prev; | |
this->next = next; |
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 numpy as np | |
from matplotlib import pyplot as plt | |
from matplotlib import rcParams | |
rcParams['font.family'] = 'serif' | |
rcParams['font.serif'] = ['Source Serif Pro'] | |
rcParams['font.weight'] = 'regular' | |
rcParams['axes.titlepad'] = 18.0 | |
def F(theta: float, k: float, l: float) -> float: |
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
\documentclass[12pt,fleqn]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[margin=1in]{geometry} | |
\usepackage[bookmarks]{hyperref} | |
\usepackage{polski} | |
\usepackage[polish]{babel} | |
\usepackage{indentfirst} | |
\usepackage{graphicx} | |
\usepackage{float} | |
\usepackage{amsmath} |
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 numpy as np | |
from matplotlib import pyplot as plt | |
K0 = 1 # [1] | |
DELTA_OMEGA_D = 1500 # [MHz] | |
L = 0.9 # [m] | |
DELTA_OMEGA = (3e8 * 1e-6)/(2 * L) # [MHz] | |
A = 0.45 # [1] | |
OMEGA_PR = np.sqrt(-np.log(A)) * 0.6 * DELTA_OMEGA_D # [MHz] |
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 java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.PrintWriter; | |
import java.net.InetAddress; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
public class SimpleServer { |
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 java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.PrintWriter; | |
import java.net.Socket; | |
public class SimpleClient { | |
public static void main(String args[]) { | |
/* |
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 pandas as pd | |
from matplotlib import pyplot as plt | |
from os import makedirs | |
from matplotlib import rcParams | |
rcParams.update({'figure.autolayout': True}) | |
def import_csv(filename): | |
data = pd.read_csv(filename, sep='\t', header=0) | |
return data |
OlderNewer