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
use std::old_io; | |
use std::rand; | |
use std::cmp::Ordering; | |
fn main() { | |
println!("Guess the number!"); | |
let secret_number = (rand::random::<u32>() % 100) +1; //secret_number: i32 | |
println!("Please input your guess."); |
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
# -*- coding: utf-8 -*- | |
from flask_wtf import Form | |
from wtforms import TextField, PasswordField, FileField | |
from wtforms import validators | |
from .models import User | |
class LoginForm(Form): |
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
Sensor Data Usage on Mobile Devices: Corporate Usage | |
Mobile devices such as smartphones and tables have found widespread adoption by businesses. | |
In some cases, they even replace (mobile-enabled) specialised hardware or at least supplemented it. | |
With the so called wearables, new devices conquer particular fields despite their hardware being less capable than that of smartphones. | |
Companies increasingly use mobile devices beyond their obvious capabilities. This development is expected to accelerate. | |
In a Master thesis, sensor data usage for corporate purposes should be examined. | |
The analysis should focus on smartphones, tablets and wearables, even though a general Internet-of-Things focus would be possible as well. | |
Usage should be considered both from an economical and from a technological point of view. The thesis allows for a variety of emphasizes, which can be chosen by the Master candidate. | |
Depending on the candidate’s interest, bringing in existing business contacts would be possible. Moreover, the thesi |
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
" Automatic reloading of .vimrc | |
autocmd! bufwritepost .vimrc source % | |
" Better copy & paste | |
" When you want to paste large blocks of code into vim, press F2 before you | |
" paste. At the bottom you should see ``-- INSERT (paste) --``. | |
set pastetoggle=<F2> |
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 ComposeForm(Form): | |
cheese = SelectField(u'Ostetopping') | |
topping = SelectMultipleField(u'Toppingvalg', | |
option_widget=widgets.CheckboxInput(), | |
widget=widgets.ListWidget(prefix_label=False) | |
) | |
seafood = SelectMultipleField(u'Sj\xf8mat', | |
option_widget=widgets.CheckboxInput(), | |
widget=widgets.ListWidget(prefix_label=False) | |
) |
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
__author__ = 'Cruor' | |
from kivy.app import App | |
from kivy.uix.button import Button | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.screenmanager import Screen | |
from kivy.config import Config | |
#from pywinauto.findwindows import find_window | |
#from pywinauto.win32functions import SetForegroundWindow, ShowWindow, SetFocus |
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
# M | |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
" Automatic reloading of .vimrc | |
autocmd! bufwritepost .vimrc source % | |
" Better copy & paste | |
" When you want to paste large blocks of code into vim, press F2 before you | |
" paste. At the bottom you should see ``-- INSERT (paste) --``. | |
set pastetoggle=<F2> |
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
__author__ = 'archheretic' | |
from kivy.app import App | |
from kivy.uix.screenmanager import ScreenManager, Screen | |
from kivy.uix.listview import ListItemButton | |
from kivy.adapters.listadapter import ListAdapter | |
from datetime import date | |
from storagelayer import SaveStorage, SettingsStorage |
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
__author__ = 'archheretic' | |
from kivy.uix.widget import Widget | |
from kivy.clock import Clock | |
from kivy.uix.image import Image | |
from kivy.properties import NumericProperty, ReferenceListProperty, BooleanProperty, ObjectProperty, ListProperty | |
from kivy.atlas import Atlas | |
from kivy.config import Config |
OlderNewer