Skip to content

Instantly share code, notes, and snippets.

View lukas-shawford's full-sized avatar

Lukas Shawford lukas-shawford

View GitHub Profile
@staltz
staltz / introrx.md
Last active June 15, 2025 15:49
The introduction to Reactive Programming you've been missing
@thomseddon
thomseddon / gist:4703968
Last active September 9, 2024 04:24
Auto Expanding/Grow textarea directive for AngularJS
/**
* The MIT License (MIT)
*
* Copyright (c) 2013 Thom Seddon
* Copyright (c) 2010 Google
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@clupasq
clupasq / AssemblyInfo.cs
Created March 13, 2012 08:49
log4net colored console+flat file appender configuration
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
@joelnet
joelnet / example.html
Created June 3, 2011 18:03
Unobtrusive Knockout support library for jQuery
Choose a ticket class: <select id="tickets"></select>
<p id="ticketOutput"></p>
<script id="ticketTemplate" type="text/x-jquery-tmpl">
{{if chosenTicket}}
You have chosen <b>${ chosenTicket().name }</b>
($${ chosenTicket().price })
<button data-bind="click: resetTicket">Clear</button>
{{/if}}
import socket
import struct
class OptionError(Exception):
"""Configuration errors"""
class MasterServerQuery:
def __init__(self, region='ALL_OVER', mserver=None, **kwargs):
self.valid_regions = {'US_EAST': '\x00', 'US_WEST': '\x01', 'SOUTH_AMERICA': '\x02',
'EUROPE': '\x03', 'ASIA': '\x04', 'AUS': '\x05', 'MIDDLE_EAST': '\x06',