This file contains 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 Color(object): | |
def __init__(self, initial=None): | |
self.value = initial | |
def __get__(self, obj, objtype): | |
return self.value | |
def __set__(self, obj, value): | |
self.value = value | |
This file contains 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 ValueFilter(object): | |
"""A descriptor which applies *filter* to assigned values, which are stored | |
at *attr*. If the value is unset it is *default*. | |
""" | |
def __init__(self, attr, filter, default=None): | |
self.attr = attr | |
self.filter = filter | |
self.default = default | |
def __get__(self, instance, owner): |
This file contains 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
fortran_hell.f95:146.12: | |
j = foo * foo | |
1 | |
Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) |
This file contains 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: Dominic Werner <[email protected]> | |
# Contributor: Jonathan Lestrelin <[email protected]> | |
# Part of this PKGBUILD was taken from the monodevelop one from: | |
# Contributor: Daniel Isenmann <[email protected]> | |
# Contributor: Timm Preetz <[email protected]> | |
# Contributor: Giovanni Scafora <[email protected]> | |
pkgname=monodevelop-git | |
_pkgname=monodevelop | |
pkgver=20120727 |
This file contains 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: pisuka <[email protected]> | |
# Contributor: Alan Briolat <[email protected]> | |
pkgname=heroku-toolbelt | |
pkgver=2.32.14 | |
pkgrel=2 | |
pkgdesc="Everything you need to get started using Heroku" | |
arch=(any) | |
url="https://toolbelt.heroku.com" | |
license=(GPL) | |
groups=() |
This file contains 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
<?php | |
/** | |
* Tpl - A PHP template engine | |
* | |
* Tpl is a simple hierarchical template engine inspired by the | |
* {@link http://www.djangoproject.com/ Django} template engine. Since PHP is | |
* already a template language (of sorts), Tpl does not attempt to replace it, | |
* but extends it with a useful inheritance framework to simplify the writing | |
* of templates for both small and complex web applications. | |
* |
This file contains 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
program strings | |
implicit none | |
character(len=20) :: a, b | |
print *, "strings: ", a, b | |
if (a == b) then | |
print *, "strings are equal" | |
endif |
This file contains 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
Section "InputClass" | |
Identifier "yubikey" | |
MatchIsKeyboard "on" | |
MatchVendor "Yubico" | |
MatchProduct "Yubico Yubikey II" | |
Driver "evdev" | |
Option "XkbRules" "evdev" | |
Option "XkbModel" "pc105" | |
Option "XkbLayout" "us" | |
Option "XkbVariant" "basic" |
This file contains 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
$ python3 odd_days.py 2012 | |
Mon 0.49056603773584906 | |
Tues 0.5192307692307693 | |
Wed 0.4807692307692308 | |
Thurs 0.5192307692307693 | |
Fri 0.5 | |
Sat 0.5 | |
Sun 0.5094339622641509 | |
$ python3 odd_days.py 2013 |
This file contains 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
program test_associate | |
implicit none | |
type foo_t | |
integer :: a, b, c | |
end type | |
type(foo_t), dimension(6) :: foo | |
type(foo_t) :: sfoo |