This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Website Title - Page Title</title> | |
<script>//javascript goes in here</script> | |
<style>/* css goes in here */</style> | |
</head> | |
<body> | |
<h1>Website Title</h1> | |
<nav> |
This file contains 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
{ | |
"key" : "pair", | |
"object" : {}, | |
"number" : 1, | |
"string" : "string", | |
"bool" : true, | |
"null" : null, | |
"array" : [true, false, null], | |
"array_of_objects" : [ | |
{ "object" : {}, "number" : 1, "string" : "string", "bool" : true, "null" : null, "array" : [true, false, null] }, |
This file contains 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
<?php | |
function zerofill($num, $max, $pad = "0"){ | |
return str_pad($num, strlen($max), $pad, STR_PAD_LEFT); | |
} |
This file contains 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
<?php | |
// Total Frames | |
$tfr = $argv[1]; | |
// Frames Per Second | |
$fps = $argv[2]; | |
// Key-frame Interval | |
$kfi = $argv[3]; | |
// Total Key Frames |
This file contains 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 love.load() | |
debugging = false; | |
if( love.window.setMode(500, 500, {}) ) then | |
if debugging then print("Window size has been set.") end | |
love.graphics.setPointSize(10); | |
end | |
end | |
map = {} |
This file contains 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 window = { | |
width = 500, | |
height = 500 | |
} | |
pixelmap = {} | |
function love.load() | |
love.window.setMode(window.width, window.height, {}); |
This file contains 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
-- Listen for keypresses | |
function love.keypressed(key) | |
local switch = { | |
escape = love.event.quit | |
} | |
if(type(switch[key]) == "function") then | |
switch[key]() | |
end | |
end |
This file contains 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
io.stdout:setvbuf("no") | |
if arg[#arg] == "-debug" then require("mobdebug").start() end | |
window = {} | |
window.w = 500 | |
window.h = 500 | |
love.window.setMode(window.w,window.h) | |
love.window.setTitle("Circle Boundaries") | |
circle = {} |
This file contains 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
@name Le Radio | |
@persist Players:array NumberKeys:array Keys:table PlayersCounter PlayerData:table | |
@model models\props/cs_office/radio.mdl | |
interval(60) | |
#TODO: Add Sounds, and limit range to 250m | |
if( first() ){ | |
Players = players() | |
PlayersCounter = 0 |
This file contains 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
-- get map constraints | |
-- set global variables | |
-- register configurable variables | |
-- register gui | |
TOOL.Category = "Precision" | |
TOOL.Name = "Nudger" | |
TOOL.ClientConVar[ "nudge_val" ] = "1" | |
TOOL.ClientConVar[ "nudge_min" ] = "1" |
OlderNewer