Skip to content

Instantly share code, notes, and snippets.

spillz

Block or report user

Report or block spillz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@spillz
spillz / Dynamic Fixed Effects Panel Data Model.ipynb
Last active Nov 21, 2019
Demonstrate dynamic panel data estimation using IV in linearmodels
View Dynamic Fixed Effects Panel Data Model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spillz
spillz / wxSmithCopyPaste.patch
Last active Mar 9, 2016
A patch for Code::Blocks to make cut copy paste shortcuts work for wxSmith
View wxSmithCopyPaste.patch
Index: src/plugins/contrib/wxSmith/wxwidgets/wxsitemeditor.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxwidgets/wxsitemeditor.cpp (revision 10323)
+++ src/plugins/contrib/wxSmith/wxwidgets/wxsitemeditor.cpp (working copy)
@@ -72,6 +72,9 @@
InitializeResourceData();
InitializeVisualStuff();
m_AllEditors.insert(this);
+ Connect(wxID_COPY, (wxObjectEventFunction)&wxsItemEditor::Copy);
+ Connect(wxID_PASTE, (wxObjectEventFunction)&wxsItemEditor::Paste);
@spillz
spillz / proplayout.py
Created Jan 19, 2015
GTK3 Conversion of Proportional Layout
View proplayout.py
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import cairo
from gi.repository import GObject
class ProportionalLayoutChild:
def __init__(self,widget,left,right,top,bottom):
self.widget=widget
self.left=left
@spillz
spillz / kivy.py
Created Jul 21, 2014
kivy properties example
View kivy.py
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.floatlayout import FloatLayout
Builder.load_string('''
#:kivy 1.6
<MyLayout>:
    my_rect_size: self.size[0]/2, self.size[1]/2
    canvas:
        Color:
View pyglet_batch_test.py
#simple program to illustrate potential memory leak (circular reference?) with pyglet
import pyglet
from pyglet.gl import *
import gc
gc.set_debug(gc.DEBUG_LEAK)
window = pyglet.window.Window()
glClearColor(0.2, 0.4, 0.5, 1.0)
You can’t perform that action at this time.