This file contains hidden or 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/zsh | |
| alias cd..='cd ..' |
This file contains hidden or 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
| package combahton | |
| import ( | |
| "encoding/base64" | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| "github.com/spf13/viper" | |
| "github.com/valyala/fasthttp" |
This file contains hidden or 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 | |
| sudo apt install curl git inotify-tools | |
| git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.3 | |
| curl -L https://fly.io/install.sh | sh | |
| cat >> ~/.bashrc << 'EOF' | |
| export FLYCTL_INSTALL="/home/gitpod/.fly" |
This file contains hidden or 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
| pipeline { | |
| agent any | |
| stages { | |
| stage('print hello') { | |
| steps { | |
| echo 'Hello World' | |
| } | |
| } |
This file contains hidden or 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
| root = true | |
| [*] | |
| indent_size = 4 | |
| indent_style = space | |
This file contains hidden or 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
| [alias] | |
| tree = "log --graph --all --pretty=format:'%C(auto)%h -%C(auto)%d (%C(auto)%cr) - %C(dim white)%an%n'' %C(dimcyan)%s'" |
This file contains hidden or 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 "arduinoFFT.h" | |
| // deklaracja stałych | |
| #define SAMPLES 128 | |
| #define SAMPLING_FREQUENCY 1000 // Hz, musi być mniejsze od 10000 ze względu na ADC | |
| #define CHANNEL A3 // pin arduino z którego odczytujemy wartość sygnału | |
| arduinoFFT FFT = arduinoFFT(); | |
| unsigned int sampling_period_us; |
This file contains hidden or 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
| def poprawiacz(file_path): | |
| new_file = [] | |
| with open(file_path, 'r') as file: | |
| for line in file: | |
| new_line = line.replace('>> ', '') | |
| new_line = new_line.replace('’', "'") | |
| try: | |
| int(new_line) | |
| except ValueError: | |
| new_file.append(new_line) |
This file contains hidden or 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
| def longest_collatz(start, stop): | |
| values = set() | |
| starts = {} | |
| max_seq = 0 | |
| max_start = 0 | |
| for i in range(start, stop): | |
| if i not in values: | |
| length = 0 | |
| for value in CollatzSeq(i): | |
| if value in starts.keys(): |
This file contains hidden or 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 python | |
| # -*- coding: utf-8 -*- | |
| import numpy as np | |
| from time import time | |
| import matplotlib.pyplot as plt | |
| class Populacja: | |
| def __init__(self, liczba_osobnikow, funkcja, p_mutacji, p_krzyzowanie, zbior_danych=None): |
NewerOlder