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 / 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
@camilajenny
camilajenny / 3dcurve.py
Created November 4, 2018 14:17
3D curve
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.gca(projection='3d')
theta = np.linspace(-4 * np.pi, 4 * np.pi, 100)
z = np.linspace(-2, 2, 100)
r = z**2 + 1
x = r * np.sin(theta)
y = r * np.cos(theta)
@camilajenny
camilajenny / chmod public.sh
Created September 3, 2018 09:12
chmod so that others have all permissions to all files recursively
find . -type d -exec chmod 777 {} \;
find . -type f -exec chmod 666 {} \;
find . -type f -executable -exec chmod 777 {} \;
#include <cstdio>
#include <functional>
using namespace std;
int edgeOperation(int &n);
int productOperation(int &n);
const function<int(int &)> operations[2] = {&productOperation, &edgeOperation};
int edgeOperation(int &n) {
--n;
@camilajenny
camilajenny / swapiness.md
Created November 11, 2017 10:36
swapiness on Linux
  • Change Swappiness Value
  1. Run terminal
  2. Enter following line to see current swappiness value cat /proc/sys/vm/swappiness (default value in Ubuntu for swappiness is 60)
  3. Open file /etc/sysctl.conf in a text editor, I did vim /etc/sysctl.conf
  4. Enter the following parameter

Decrease swappiness value

vm.swappiness=10