Skip to content

Instantly share code, notes, and snippets.

View Aerodos12's full-sized avatar

Aerodos12

View GitHub Profile
@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) == '-';
@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 / _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 / 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 / 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 / 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 / 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 / client.lua
Created July 20, 2018 15:34
Current GunCode
local RemoteService = require(game.ReplicatedStorage.RemoteService)
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local CAS = game:GetService("ContextActionService")
local player = game.Players.LocalPlayer
local Signal = require(game.ReplicatedStorage.SignalAPI)
local Bindables = game.ReplicatedStorage.Bindables:Clone()
Bindables.Parent = player
local BindableService = require(game.ReplicatedStorage.BindingService)(player)
local CameraService = require(game.ReplicatedStorage.CameraService)
@Aerodos12
Aerodos12 / CrossWarAnimations2.lua
Created May 16, 2018 17:48
CrossWar GS Leg Update
local Animations = {
Reload = function(S)
local W1 = nil
local W2 = nil
local animSpeed = S.isMagEmpty() and S.reloadTimeEmpty / 1.3 or S.reloadTimeLoaded / 0.9
return {
function()
if (not S.isNewMag()) then
if S.isMagVisible() then
-------------------------------------------------------------------------------------
--------------------[ CHARACTER LOADING ]---------------------------------------------
--------------------------------------------------------------------------------------
local FFC = game.FindFirstChild
local WFC = game.WaitForChild
local Services = {}
Services.DS = game:GetService("Debris")
Services.CP = game:GetService("ContentProvider")
Services.RS = game:GetService("RunService")
Services.UIS = game:GetService("UserInputService")