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
2019-09-26 12:40:23 - [sway/main.c:152] Linux void 5.2.17_1 #1 SMP PREEMPT Sat Sep 21 15:22:49 UTC 2019 x86_64 GNU/Linux | |
2019-09-26 12:40:23 - [sway/main.c:168] Contents of /etc/os-release: | |
2019-09-26 12:40:23 - [sway/main.c:152] NAME="void" | |
2019-09-26 12:40:23 - [sway/main.c:152] ID="void" | |
2019-09-26 12:40:23 - [sway/main.c:152] DISTRIB_ID="void" | |
2019-09-26 12:40:23 - [sway/main.c:152] PRETTY_NAME="void" | |
2019-09-26 12:40:23 - [sway/main.c:140] LD_LIBRARY_PATH=(null) | |
2019-09-26 12:40:23 - [sway/main.c:140] LD_PRELOAD=(null) | |
2019-09-26 12:40:23 - [sway/main.c:140] PATH=/home/k/.bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin | |
2019-09-26 12:40:23 - [sway/main.c:140] SWAYSOCK=(null) |
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/sh | |
# Dependencies: | |
# 1. qdbus | |
# sudo apt install qdbus | |
# 2. udisks2 | |
# sudo apt install udisks2 && sudo systemctl start udisks2 | |
# | |
# This could probably be rewritten to use dbus-send instead of qdbus. | |
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
version: '3' | |
services: | |
qbittorrent: | |
image: linuxserver/qbittorrent | |
container_name: qbittorrent | |
restart: unless-stopped | |
environment: | |
- "PUID=1001" # uid of "qbittorrent" | |
- "PGID=1005" # gid of "torrents" | |
- "UMASK_SET=022" # rwxrwxr-x |
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 "linked_list.h" | |
LinkedList::Node::Node(int value_) { | |
next = nullptr; | |
value = value_; | |
} | |
LinkedList::LinkedList() { | |
head_ = nullptr; | |
tail_ = nullptr; |
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
clc; clear all; | |
function generate_binaries(n) | |
B = zeros(2^n, n); | |
for i = n:-1:1 | |
st = 2 ^ (n - i); | |
for j = st:2 * st:2^n | |
for k = 1:st | |
B(j + k, i) = 1; | |
end |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"preLaunchTask": "Build (Makefile)", | |
"program": "${cwd}/bin/load_manager", | |
"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
static LinkedList<int> RadixSort(LinkedList<int> linkedList) | |
{ | |
bool isFinished = false; | |
int digitPosition = 0; | |
var buckets = new List<Queue<int>>(); | |
InitializeBuckets(buckets); |
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
using System; | |
using System.Collections; | |
using System.IO; | |
using System.Text; | |
namespace Utilities.LinkedList | |
{ | |
public class HDDLinkedList : IEnumerable, IDisposable | |
{ | |
readonly FileStream stream; |
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
namespace Uzduotis2 | |
{ | |
class BasketballPlayer : Player | |
{ | |
public int Rebounds { get; private set; } | |
public int Assists { get; private set; } | |
public BasketballPlayer(string firstName, string lastName, int gameCount, int rebounds, int assists) | |
: base(firstName, lastName, gameCount) | |
{ |
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
require 'google/apis/youtube_v3' | |
require 'youtube-dl.rb' | |
api_key = "xxx" | |
youtube = Google::Apis::YoutubeV3::YouTubeService.new | |
youtube.key = api_key | |
videos = ["https://www.youtube.com/watch?v=G-Vg2YS-sFE", |
NewerOlder