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
def foo1(condition, call_function): | |
if condition: | |
call_function() | |
def foo2(condition, call_function): | |
condition and call_function() | |
# else - not(condition) and call_function2() | |
def print_hello(): | |
print('hello') |
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
var editor; | |
$(function(){ | |
editor = CodeMirror.fromTextArea(document.getElementById("id_body"), { | |
lineNumbers: true, | |
indentUnit: 4, | |
tabMode: "shift", | |
matchBrackets: true | |
}); |