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
1. | |
// Michael Neumann und Moritz Schlarb | |
2. | |
// | |
3. | |
// Programmiersprachen, SoSe 2010 | |
4. | |
// Übung zur Vorlesung vom 19.04.2010 | |
5. | |
// |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
Created on 09.12.2011 | |
@author: moschlar | |
''' | |
from OpenGL.GL import * | |
from OpenGL.GLUT import * |
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
#include <stdio.h> | |
#include <sys/statvfs.h> | |
void pstatvfs(struct statvfs *stat) { | |
printf("struct statvfs {\n"); | |
printf("\tf_bsize = %lu\n", stat->f_bsize); | |
printf("\tf_frsize = %lu\n", stat->f_frsize); | |
printf("\tf_blocks = %d\n", (int) stat->f_blocks); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/statvfs.h> | |
#include "pstatvfs.h" | |
#define ARGLEN 255 | |
int main (int argc, char* argv[]) { |
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
tablesorter_js = JSLink(link=url('/jquery.tablesorter.js'), | |
javascript=[jquery_js]) | |
class JSSortableTableBase(TableBase): | |
'''A TableBase that uses the jquery plugin tablesorter for table sorting''' | |
# javascript = [tablesorter_js] | |
# css_classes = ['tablesorter'] | |
# Any additional arguments to tablesorter, see http://tablesorter.com/docs/#Configuration |
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
# -*- coding: utf-8 -*- | |
''' | |
Created on 17.03.2012 | |
Ported to tw2 on 25.05.2012 | |
@author: moschlar | |
''' | |
import tw2.core as twc | |
import tw2.forms as twf |
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
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=4 | |
inherit eutils bash-completion-r1 | |
DESCRIPTION="Git extensions to provide high-level repository operations for Vincent Driessen's branching model." | |
HOMEPAGE="https://github.com/nvie/gitflow" |
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
# -*- coding: utf-8 -*- | |
''' | |
Created on 17.03.2012 | |
Ported to tw2 on 25.05.2012 | |
@author: moschlar | |
''' | |
import tw2.core as twc | |
import tw2.forms as twf |
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
# -*- coding: utf-8 -*- | |
''' | |
Created on 17.03.2012 | |
@author: moschlar | |
''' | |
import tw2.core as twc | |
import tw2.forms as twf | |
import tw2.bootstrap as twb |
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 CalendarDateTimePicker(Bootstrap, twc.CompoundWidget): | |
resources = set(CalendarDatePicker.resources + CalendarTimePicker.resources) | |
date = CalendarDatePicker() | |
time = CalendarTimePicker() | |
def _validate(self, value, state=None): | |
""" | |
Inner validation method; this is called by validate and should not be | |
called directly. Overriding this method in widgets is discouraged; a | |
custom validator should be coded instead. However, in some |
OlderNewer