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
@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) == '-'; |
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
@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) == '-'; |
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
/* | |
* Default variable values | |
* Create separate themes/theme/_variables.scss to override these variables | |
*/ | |
/* | |
* General | |
*/ | |
$background-color: #ecf2f6 !default; |
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
from django.contrib import admin | |
from .models import WarshipClass | |
from.forms import WarshipClassAdminForm | |
# Register your models here. | |
class WarshipClassAdmin(admin.ModelAdmin): | |
fieldsets = [ |
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
""" | |
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 |
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
<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> |
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
""" | |
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 | |
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
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) |
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
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 |
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
------------------------------------------------------------------------------------- | |
--------------------[ 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") |
NewerOlder