First, make sure you use the SessionAuthentication in Django. Put this in your settings.py
# Django rest framework
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.SessionAuthentication'| /* SeeSP: Print the value of the stack pointer. | |
| * Build: gcc SeeSP.c -o SeeSP | |
| * | |
| * Towel - 2017 | |
| */ | |
| #include <stdio.h> | |
| #include <inttypes.h> | |
| int main(void) | |
| { |
Basic unit type:
λ> replTy "()"
() :: ()Basic functions:
| import macros | |
| macro `=>`(p, b: expr): expr {.immediate.} = | |
| echo treeRepr(p) | |
| #echo(treeRepr(b)) | |
| var params: seq[PNimrodNode] = @[newIdentNode("auto")] | |
| case p.kind | |
| of nnkPar: | |
| for c in children(p): |
| # Terminal output control (http://www.termsys.demon.co.uk/vtansi.htm) | |
| TC='\e[' | |
| CLR_LINE_START="${TC}1K" | |
| CLR_LINE_END="${TC}K" | |
| CLR_LINE="${TC}2K" | |
| # Hope no terminal is greater than 1k columns | |
| RESET_LINE="${CLR_LINE}${TC}1000D" |
| #!/usr/bin/env bash | |
| # memusg -- Measure memory usage of processes | |
| # Usage: memusg COMMAND [ARGS]... | |
| # | |
| # Author: Jaeho Shin <[email protected]> | |
| # Created: 2010-08-16 | |
| ############################################################################ | |
| # Copyright 2010 Jaeho Shin. # | |
| # # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); # |