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
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
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
img = imread('peppers.png'); %# A sample image to display | |
jimg = im2java(img); | |
frame = javax.swing.JFrame; | |
frame.setUndecorated(true); | |
icon = javax.swing.ImageIcon(jimg); | |
label = javax.swing.JLabel(icon); | |
frame.getContentPane.add(label); | |
frame.pack; | |
screenSize = get(0,'ScreenSize'); %# Get the screen size from the root object | |
frame.setSize(screenSize(3),screenSize(4)); |
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
from pyparsing import * | |
import string | |
from sympy import symbols | |
def getvars(opslist, varlist,vars): | |
for i in opslist: | |
if isinstance(i, basestring) and i in ("&", "|"): | |
continue | |
if isinstance(i, list): | |
getvars(i, varlist,vars) |
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
class Node(): | |
def __init__(self, name, id='0', level=None, parent = None, val= None, visited=False): | |
self.name = name | |
self.children = [] | |
self.val = val | |
self.parent= parent | |
self.level = level | |
self.id = id | |
self.dodelete = False |