Skip to content

Instantly share code, notes, and snippets.

View unlight's full-sized avatar
💭
Casting fireball

Roman Vasilev unlight

💭
Casting fireball
View GitHub Profile
@unlight
unlight / nosmoke.conf
Created September 8, 2011 16:11
UT 2004: Disable smoke on client
// classic sniper rifle
set ClassicSniperSmoke bHidden True
// remove smoke
set BioSmoke bHidden True
set RocketTrailSmoke bHidden True
set GrenadeSmokeTrail bHidden True
set GoopSmoke bHidden True
set GoopSparks bHidden True
set FlakShellTrail bHidden True
//set FlakTrail bHidden True
@unlight
unlight / blood.conf
Created September 9, 2011 21:32
UT2004: Bigger blood
set BloodExplosion DrawScale 5
set BloodJet DrawScale 5
set BloodSpurt DrawScale 5
set BloodSmallHit DrawScale 8
set BotSmallHit DrawScale 8
set BotBloodExplosion DrawScale 5
set BloodJet mMaxParticles 500
set BloodExplosion mMaxParticles 500
set BloodSpurt mMaxParticles 500
@unlight
unlight / s-timer.conf
Created September 9, 2011 21:33
UT2004: Another timer position
set HudCDeathMatch TimerBackgroundDisc (WidgetTexture=None)
set HudCDeathMatch TimerIcon (WidgetTexture=None)
set HudCDeathMatch AdrenalineBackgroundDisc (WidgetTexture=None)
set HudCDeathMatch TimerBackgroundDisc (WidgetTexture=None)
set HudCDeathMatch AdrenalineIcon (WidgetTexture=None)
set HudCDeathMatch AdrenalineAlert (WidgetTexture=None)
set HudCDeathMatch FadeTime 0
set HUD bShowPoints False
set HudCDeathMatch TimerDigitSpacer (WidgetTexture=None)
@unlight
unlight / include.js
Created October 17, 2011 08:30
Include javascript file
function include(files) {
if (typeof(files) == 'string') files = [files];
var onload;
var script = document.createElement('script');
var file = files.shift();
script.setAttribute('type', 'text/javascript');
script.setAttribute('src', file);
document.body.appendChild(script);
if (files.length > 0) {
onload = function() { include(files); }
@unlight
unlight / GetExtension.js
Created October 19, 2011 19:35
pathinfo(Filepath, PATHINFO_EXTENSION);
var GetExtension = function(Path) {
var S = Path + '';
return S.substr( S.lastIndexOf('.') + 1 );
};
@unlight
unlight / gist:1454874
Created December 10, 2011 09:29
Check for css support
// Detect CSS3 Support
// http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-detect-css-support-in-browsers-with-javascript/
var IsSupportCssProperty = (function() {
var Dummy = document.createElement('dummy');
var Vendors = 'Khtml O Ms Webkit Moz '.split(' ');
var Length = Vendors.length;
var Px, CssProperty;
return function(PropertyName) {
for (var Index = Vendors.length - 1; Index >= 0; --Index) {
@unlight
unlight / jquery.uploader.js
Created October 21, 2012 16:52
jQuery Uploader
// jQuery HTML5 Uploader 1.0 (2 Nov 2011)
// Requires XMLHttpRequest 2
// Supports: IE 10+, Firefox 4+, Chrome 12+, Safari 5+, Opera 12+
new function($) {
var UploadedFilesIndex;
var UploadedFilesLength;
var UploadSession = function(Length) {
@unlight
unlight / fibonacci.c
Created October 21, 2012 21:03
Fibonacci numbers
#include <stdio.h>
#include <stdarg.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
int main(int argc, char const *argv[])
{
printf("Fibonacci numbers\n");
int f, i, prev, beforePrev;
@unlight
unlight / reverse-words.c
Created November 1, 2012 19:51
Reverse words
#include <stdio.h>
#include <conio.h>
#include <string.h>
int main()
{
char String[255];
char* Words[50];
char* Pchar;
char Delimeter[] = " .,!";
@unlight
unlight / Remove all files
Last active October 12, 2015 15:47
Remove all files
$Directory = new RecursiveDirectoryIterator('/tmp');
foreach(new RecursiveIteratorIterator($Directory) as $File) {
$Filepath = $File->GetPathName();
unlink($Filepath);
}