Skip to content

Instantly share code, notes, and snippets.

View cruor99's full-sized avatar

Kjetil Andre Liknes cruor99

View GitHub Profile
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.");
# -*- 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):
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
" 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>
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)
)
__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
# 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!
" 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>
__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
__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