about summary refs log tree commit diff stats
path: root/sandbox
Commit message (Expand)AuthorAgeFilesLines
* 4266 - space for alloc-id in heap allocationsKartik Agaram2018-06-241-10/+12
* 4262 - literal 'null'Kartik Agaram2018-06-1710-36/+36
* 4261 - start using literals for 'true' and 'false'Kartik Agaram2018-06-179-71/+71
* 4207Kartik K. Agaram2018-02-154-7/+3
* 4205Kartik K. Agaram2018-02-151-45/+45
* 4134 - 'input' = 'ingredient'Kartik K. Agaram2017-12-0312-81/+81
* 3980Kartik K. Agaram2017-08-226-55/+55
* 3977Kartik K. Agaram2017-08-221-1/+1
* 3962Kartik K. Agaram2017-06-271-8/+14
* 3960Kartik K. Agaram2017-06-251-13/+37
* 3959Kartik K. Agaram2017-06-251-2/+14
* 3958Kartik K. Agaram2017-06-252-13/+19
* 3957Kartik K. Agaram2017-06-251-0/+2
* 3954Kartik K. Agaram2017-06-251-21/+26
* 3950Kartik K. Agaram2017-06-241-2/+43
* 3946Kartik K. Agaram2017-06-231-3/+3
* 3944Kartik K. Agaram2017-06-231-1/+25
* 3943Kartik K. Agaram2017-06-231-33/+3
* 3939Kartik K. Agaram2017-06-222-3/+7
* 3938Kartik K. Agaram2017-06-221-2/+32
* 3935Kartik K. Agaram2017-06-223-3/+3
* 3929Kartik K. Agaram2017-06-192-1/+3
* 3928Kartik K. Agaram2017-06-191-4/+5
* 3926Kartik K. Agaram2017-06-191-2/+57
* 3925Kartik K. Agaram2017-06-191-0/+107
* 3923Kartik K. Agaram2017-06-181-15/+66
* 3922Kartik K. Agaram2017-06-172-4/+16
* 3921Kartik K. Agaram2017-06-162-3/+5
* 3920Kartik K. Agaram2017-06-161-28/+29
* 3919Kartik K. Agaram2017-06-161-3/+87
* 3918Kartik K. Agaram2017-06-161-3/+47
* 3916 - minimal prints when commenting linesKartik K. Agaram2017-06-161-17/+143
* 3913Kartik K. Agaram2017-06-151-2/+45
* 3912Kartik K. Agaram2017-06-151-34/+44
* 3904Kartik K. Agaram2017-06-092-5/+5
* 3902 - drop redundant redraw of recipe side on F4Kartik K. Agaram2017-06-098-0/+29
* 3897 - various updates to documentationKartik K. Agaram2017-05-291-0/+13
* 3894 - comment/uncomment lines in edit appKartik K. Agaram2017-05-291-3/+111
* 3891Kartik K. Agaram2017-05-291-2/+2
* 3881 - allow students to turn sandboxes into recipesKartik K. Agaram2017-05-271-8/+2
* 3880Kartik K. Agaram2017-05-271-16/+1
* 3879Kartik K. Agaram2017-05-261-3/+3
* 3874Kartik K. Agaram2017-05-201-2/+1
* 3873Kartik K. Agaram2017-05-202-3/+4
* 3869Kartik K. Agaram2017-05-192-67/+194
* 3866Kartik K. Agaram2017-05-191-2/+27
* 3865Kartik K. Agaram2017-05-192-2/+0
* 3861 - screen untouched when entering console modeKartik K. Agaram2017-05-184-0/+4
* 3860 - stop buffering the screen in termboxKartik K. Agaram2017-05-189-21/+8
* 3859Kartik K. Agaram2017-05-131-0/+1
ic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/usr/bin/python -O
# ranger - a vim-inspired file manager for the console  (coding: utf-8)
# Copyright (C) 2009-2013  Roman Zimbelmann <hut@hut.pm>
# This software is distributed under the terms of the GNU GPL version 3.

# =====================
# This embedded bash script can be executed by sourcing this file.
# It will cd to ranger's last location after you exit it.
# The first argument specifies the command to run ranger, the
# default is simply "ranger". (Not this file itself!)
# The other arguments are passed to ranger.
"""":
tempfile='/tmp/chosendir'
ranger="${1:-ranger}"
test -z "$1" || shift
"$ranger" --choosedir="$tempfile" "${@:-$(pwd)}"
returnvalue=$?
test -f "$tempfile" &&
if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
    cd "$(cat "$tempfile")"
    rm -f -- "$tempfile"
fi
return $returnvalue
""" and None

import sys
from os.path import exists, abspath

# Need to find out whether or not the flag --clean was used ASAP,
# because --clean is supposed to disable bytecode compilation
argv = sys.argv[1:sys.argv.index('--')] if '--' in sys.argv else sys.argv[1:]
sys.dont_write_bytecode = '-c' in argv or '--clean' in argv

# Don't import ./ranger when running an installed binary at /usr/.../ranger
if __file__[:4] == '/usr' and exists('ranger') and abspath('.') in sys.path:
    sys.path.remove(abspath('.'))

# Start ranger
import ranger
sys.exit(ranger.main())