Skip to content

Instantly share code, notes, and snippets.

View jamiecollinson's full-sized avatar

Jamie Collinson jamiecollinson

View GitHub Profile
@bbarad
bbarad / crouton_setup.sh
Last active February 26, 2020 17:03
Set up Precise with i3-wm on an Asus C200 using crouton
# Must have already entered dev mode to use this shell script from a crosh shell.
wget -O ~/Downloads/crouton http://goo.gl/fd3zc
sudo sh -e ~/Downloads/crouton -t x11,audio,keyboard,extension -n i3precise
# This takes 15-20 minutes.
sudo enter-chroot -n i3precise
@shadowmint
shadowmint / gist:7004832
Last active January 6, 2025 20:04
Kivy example using sqlalchemy to build a layout.
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import sessionmaker
from sqlalchemy import ForeignKey
from sqlalchemy.orm import relationship, backref
from kivy.graphics import Rectangle
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.uix.widget import Widget
@tshirtman
tshirtman / mah_button.py
Created September 30, 2013 17:42
usage demonstration of ids, dynamic classes/Factory, and doing a default binding using them, plus ScreenManager
'''
Little demonstration of various kivy useful features:
- loading kv code
- adding dynamic parts to static parts using ids
- dynamic classes
- getting a reference to a Dynamic classes using Factory
- binding events to python expressions on kv side
useful references:
- http://kivy.org/docs/guide/lang.html#referencing-widgets
@geojeff
geojeff / main.py
Last active January 2, 2021 08:18
Kivy ListView example for james kwan
from kivy.uix.modalview import ModalView
from kivy.uix.listview import ListView
from kivy.uix.gridlayout import GridLayout
from kivy.properties import StringProperty
from kivy.lang import Builder
from kivy.factory import Factory
# Note the special nature of indentation in the adapter declaration, where
# the adapter: is on one line, then the value side must be given at one level
# of indentation.
@ndarville
ndarville / business-models.md
Last active February 27, 2025 10:00
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google