Skip to content

Instantly share code, notes, and snippets.

View camilajenny's full-sized avatar
🏠
Working from home

Kamila Łopuszańska camilajenny

🏠
Working from home
View GitHub Profile
@camilajenny
camilajenny / stream-downtempo-pads.py
Created May 11, 2025 19:19
Stream downtempo w/ breathy pads
use_bpm 60
define :rand_chord do
# A soft shifting chord from E minor, randomly voiced
root = [:e3, :g3, :b3].choose
chord(root, :minor7, num_octaves: 2).shuffle.take(3)
end
# === Breath Pad Layer ===
live_loop :breathy_pad do
@camilajenny
camilajenny / random-tools.ipynb
Created June 5, 2024 16:59
Random generator tools for learning 🇪🇸
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@camilajenny
camilajenny / ArraySumCalculator.java
Created March 10, 2024 17:42
Divide and conquer summing of an array using Java fork/join
import java.util.concurrent.RecursiveTask;
public class ArraySumCalculator extends RecursiveTask<Long> {
private static final int THRESHOLD = 1000; // Threshold for splitting the array
private final int[] array;
private final int start;
private final int end;
public ArraySumCalculator(int[] array, int start, int end) {
this.array = array;
@camilajenny
camilajenny / VideoConference.java
Created January 22, 2024 04:26
Example usage of CountDownLatch
import java.util.concurrent.CountDownLatch;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
class Participant implements Runnable {
private final CountDownLatch latch;
private final Random random = new Random();
private long id;
private static final Logger LOGGER = Logger.getLogger(Participant.class.getName());
@camilajenny
camilajenny / clearBalanceSheet.gs
Created November 11, 2023 20:59
Clear contents of the balance sheet cells filled with financial data from the last year
function sheetName() {
var spreedsheet = SpreadsheetApp.getActiveSpreadsheet();
const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
const monthSheets = monthNames.map(name => spreedsheet.getSheetByName(name));
const COLUMN_START = 6;
const DAYS_COUNT = 31;
for(var i=0; i < monthSheets.length; i++) {
@camilajenny
camilajenny / remove_duplicated_tags.py
Last active March 10, 2024 17:47
remove duplicated tags from Joplin
from api import get_api
import time
start_time = time.time()
api = get_api()
f = open('duplicates-logs.txt', 'w')
@camilajenny
camilajenny / merge weeks.gs
Created November 6, 2022 20:03
Google Spreedsheets script merging and setting border to week days
function numberToLetter(number){
var temp = ""
var letter = "";
while (number > 0){
temp = (number - 1) % 26;
letter = String.fromCharCode(temp + 65) + letter;
number = (number - temp - 1) / 26;
}
return letter;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class Docking:
"""
Implementacje:
* oddt.docking.autodock_vina
* custom engine }
* oddt.docking.rdock } nowe klasy
"""
def set_protein(self, protein): pass
def set_writer(self, writer): # writer of type MolWriter
#!/usr/bin/env bash
rm -f mine/tests/*.out
for f in tests/*.in
do
./pol < $f > mine/$f
# do something on $f
done
cd mine/tests