- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
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
$('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); |
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
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() |
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.