Skip to content

Instantly share code, notes, and snippets.

View techiev2's full-sized avatar
🥷

Sriram Velamur techiev2

🥷
View GitHub Profile
@techiev2
techiev2 / goto.py
Created May 5, 2020 13:09 — forked from georgexsh/goto.py
python goto with system trace function
import sys
def j(lineno):
frame = sys._getframe().f_back
called_from = frame
def hook(frame, event, arg):
if event == 'line' and frame == called_from:
try:
frame.f_lineno = lineno
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@techiev2
techiev2 / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# -*- coding: utf-8 -*-
"""
sphinx.application
~~~~~~~~~~~~~~~~~~
Sphinx application object.
Gracefully adapted from the TextPress system by Armin.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
function lookup(obj /*Object */, props/* String */){
if ( ! (obj && props)) { return undefined; }
var ps = props.split('.');
var pointer = obj;
var val = undefined;
var i = 0, len = ps.length;
for(;i<len;i++) {