This file contains hidden or 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
# Maintainer: Jakub Schmidtke <sjakub-at-gmail-dot-com> | |
# Contributor: Joel Pedraza <[email protected]> | |
pkgname=android-support | |
pkgver=r12 | |
pkgrel=1 | |
pkgdesc='Android Support Package' | |
arch=('any') | |
url="https://developer.android.com/sdk/compatibility-library.html" | |
license=('custom') |
This file contains hidden or 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
var groupedByWeek = new List<DateTime> { | |
new DateTime(2012, 02, 01), | |
new DateTime(2012, 02, 02), | |
new DateTime(2012, 02, 06), | |
new DateTime(2012, 02, 13) | |
}. | |
GroupBy(s => s.DayOfYear / 7). | |
.Select(s => new {Date=s.First(), Amount=s.Count()}) | |
.ToDictionary(s => s.Date, s => s.Amount); |
This file contains hidden or 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 Entity: | |
def __init__(self, jsonData) | |
self.jsonData = jsonData | |
@classmethod | |
def register_fields(cls, *fields): | |
for name in fields: | |
setattr(cls, name, property(lambda cls: cls.jsonData[name])) | |
class Org(Entity): |
This file contains hidden or 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
Day job: | |
Software Developer by day...and night | |
Favorite Python project: | |
Twisted | |
Favorite Conference: | |
Haven't been to any *sad trombone* | |
Python Experience Level: |