Skip to content

Instantly share code, notes, and snippets.

View codeliger's full-sized avatar

Ben codeliger

  • Canada
View GitHub Profile
<!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>
{
"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] },
@codeliger
codeliger / zerofill.php
Created November 29, 2014 00:42
A zerofill function for numbers in php
<?php
function zerofill($num, $max, $pad = "0"){
return str_pad($num, strlen($max), $pad, STR_PAD_LEFT);
}
<?php
// Total Frames
$tfr = $argv[1];
// Frames Per Second
$fps = $argv[2];
// Key-frame Interval
$kfi = $argv[3];
// Total Key Frames
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 = {}
local window = {
width = 500,
height = 500
}
pixelmap = {}
function love.load()
love.window.setMode(window.width, window.height, {});
-- Listen for keypresses
function love.keypressed(key)
local switch = {
escape = love.event.quit
}
if(type(switch[key]) == "function") then
switch[key]()
end
end
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 = {}
@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
-- 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"