Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
from django.contrib import auth | |
from django.contrib.sessions.backends.db import SessionStore | |
session = SessionStore(None) | |
session.clear() | |
session.cycle_key() | |
session[auth.SESSION_KEY] = user._meta.pk.value_to_string(user) | |
session[auth.BACKEND_SESSION_KEY] = 'django.contrib.auth.backends.ModelBackend' | |
session[auth.HASH_SESSION_KEY] = user.get_session_auth_hash() | |
session.save() |
$('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); |
rebase
vs merge
).rebase
vs merge
)reset
vs checkout
vs revert
)git rev-parse
)pull
vs fetch
)stash
vs branch
)reset
vs checkout
vs revert
)