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
#!/usr/bin/env python3 | |
from collections import namedtuple | |
import os | |
import shutil | |
import re | |
import json | |
import argparse | |
import sys |
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
# Python3 implementation for CSV parsing of uploaded file | |
# Test: curl -H "Content-Type: multipart/form-data" -F "[email protected]" http://localhost:5000/myroute | |
import csv | |
import codecs | |
from flask import (jsonify, request) | |
# ... | |
@app.route('/myroute', methods=['POST']) |
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
if [[ ! -d ~/.zplug ]];then | |
git clone https://github.com/zplug/zplug ~/.zplug | |
fi | |
source ~/.zplug/init.zsh | |
zplug "plugins/git", from:oh-my-zsh | |
zplug "plugins/git", from:oh-my-zsh | |
zplug "plugins/sudo", from:oh-my-zsh | |
zplug "plugins/command-not-found", from:oh-my-zsh | |
zplug "zsh-users/zsh-syntax-highlighting" | |
zplug "zsh-users/zsh-history-substring-search" |
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
$('td:contains("2.0")').parent().remove(); //usunięcie wpisów z oceną 2 | |
var sum=0; //suma ECTS | |
var mulSum=0; // suma ECTS * ocena | |
$('td[title="ocena"]').each(function(){ | |
mulSum += parseFloat($(this).text()) * parseFloat($(this).next().next().text()); | |
sum += parseFloat($(this).next().next().text()); | |
console.log(parseFloat($(this).text()), parseFloat($(this).next().next().text())); | |
}); | |
console.log(mulSum, sum, mulSum/sum); |