Skip to content

Instantly share code, notes, and snippets.

View Aerodos12's full-sized avatar

Aerodos12

View GitHub Profile
@Aerodos12
Aerodos12 / rooms.py
Created July 29, 2019 00:58
WaterBody
"""
Bodies of water
Water Bodies are simple containers that has no location of their own (are vast and can host ships).
"""
from evennia import DefaultRoom
@Aerodos12
Aerodos12 / App.xaml
Created July 29, 2019 15:21
CampaignSmith Code (Planning)
<Application x:Class="CampaignSmith.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CampaignSmith"
StartupUri="Views/MainWindow.xaml">
<Application.Resources>
<ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Generic.xaml" />
</Application.Resources>
</Application>
@Aerodos12
Aerodos12 / accounts.py
Created July 29, 2019 22:02
Battleship Stuff
"""
Account
The Account represents the game "account" and each login has only one
Account object. An Account is what chats on default channels but has no
other in-game-world existence. Rather the Account puppets Objects (such
as Characters) in order to actually participate in the game world.
Guest
@Aerodos12
Aerodos12 / admin.py
Created July 31, 2019 22:09
TA Navy Manager
from django.contrib import admin
from .models import WarshipClass
from.forms import WarshipClassAdminForm
# Register your models here.
class WarshipClassAdmin(admin.ModelAdmin):
fieldsets = [
@Aerodos12
Aerodos12 / _variables.scss
Created August 1, 2019 14:42
Nautilus Theme
/*
* Default variable values
* Create separate themes/theme/_variables.scss to override these variables
*/
/*
* General
*/
$background-color: #ecf2f6 !default;
@Aerodos12
Aerodos12 / input.scss
Created February 19, 2021 20:55
Generated by SassMeister.com.
@function to-number($value) {
@if type-of($value) == 'number' {
@return $value;
} @else if type-of($value) != 'string' {
@error 'Value for `to-number` should be a number or a string.';
}
$result: 0;
$digits: 0;
$minus: str-slice($value, 1, 1) == '-';
@Aerodos12
Aerodos12 / input.scss
Created February 25, 2021 16:26
Generated by SassMeister.com.
@function to-number($value) {
@if type-of($value) == 'number' {
@return $value;
} @else if type-of($value) != 'string' {
@error 'Value for `to-number` should be a number or a string.';
}
$result: 0;
$digits: 0;
$minus: str-slice($value, 1, 1) == '-';