View gist:7463103
import urllib | |
import urllib2 | |
import socket | |
import uuid | |
macaddr = ':'.join(['{:02x}'.format((uuid.getnode() >> i) & 0xff) for i in range(0,8*6,8)][::-1]) | |
ipaddr = socket.gethostbyname(socket.getfqdn()) | |
url = 'https://securelogin.arubanetworks.com/cgi-bin/login?cmd=login&mac={0}&ip={1}&essid=%20'.format(macaddr, ipaddr) |
View resnet50_trainval.prototxt
name: "ResNet_50" | |
layer { | |
name: "data" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
View Matplotlib.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View SimpleCNN.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:7596046
fg = self.frameGeometry() | |
cp = QtGui.QDesktopWidget().availableGeometry().center() | |
fg.moveCenter(cp) | |
self.move(fg.topLeft()) |
View gist:7461066
#! /usr/bin/python2 | |
# -*- coding: utf-8 -*- | |
from PyQt4 import QtCore, QtGui | |
class FlowLayout(QtGui.QLayout): | |
def __init__(self, parent=None, margin=0, spacing=-1): | |
super(FlowLayout, self).__init__(parent) | |
if parent is not None: |