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
ENT.ShowWorldModel = false | |
ENT.SWEPKitWElements = { | |
["element_name"] = { type = "Model", model = "models/goldengun.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(-12.855, 1.567, 0.054), angle = Angle(-3.962, 0, 173.091), size = Vector(0.935, 0.935, 0.935), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/player/shared/gold_player", skin = 0, bodygroup = {} } | |
} | |
function ENT:GetEntityByName(name) | |
if self.WElements[name] then | |
return self.WElements[name].modelEnt | |
end |
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
% Denna fil innehåller en dynamisk modell av det styrda gardinsystemet och även en simulering som bygger på Forward Euler metoden. | |
clear variables; | |
%% Definiera konstanter och parametrar | |
g = 9.82; % [m/s^2] gravitationskonstant | |
m_1 = 1; % [kg] massa hos "främre" gardin | |
m_2 = 1; % [kg] massa hos "bortre" gardin | |
u = 0.4; % [1] friktion hos gardinskena | |
R_a = 8.71; % [ohm] motorns ankarresistans | |
k_t = 14.5*10^(-3); % [Nm/A] motorns momentkonstant (lambda) |
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 mats = {} | |
function GetWebMaterial( url, callback ) | |
local fileName = util.CRC(url) | |
if mats[fileName] then | |
return mats[fileName] | |
end | |
if file.Exists( fileName .. ".txt", "DATA" ) then | |
local mat = Material( "../data/" .. fileName .. ".txt\n.png" ) |
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
import java.util.Scanner; | |
import java.util.Random; | |
public class Main{ | |
public static void main(String[] args) | |
{ | |
Scanner input = new Scanner(System.in); | |
System.out.println("Welcome to the endless RPS game!"); |