Top

Code Snippets by vaseline28

  (24)  
Sort by 
+ 0 likes
3 comment(s)    Score: 0.0    Platform: Javascript    Posted by vaseline28 on Nov 11, 2009
Just a simple script which uses maths to detect whether or not a year is a leap year or not. If the year inputted
Tags: check  date  detect  javascript  leap  year 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: Javascript    Posted by vaseline28 on Nov 11, 2009
overload it. Please also note that due to use of "int" instead of "float" decimals cannot be used.
Tags: c  function  math  maths  powers 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: C++    Posted by vaseline28 on Jan 27, 2009
Simply detects the Area of either a Rectangle or a Circle. Snippet not made to be the most useful in the world, but to demonstrate a basic use of classes in C++. I've been doing C++ for 2 days, so..
Tags: area  c  class  math  maths  shape 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: C++    Posted by vaseline28 on Jan 27, 2009
This snippet changes the color of an element which is selected from a list when called (OR it can change the color of an object to a specified color).
Tags: change  color  javascript  random 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: Javascript    Posted by vaseline28 on Jan 03, 2009
I find that lots of people new to AJAX can't get the grips because they don't understand the XMLHttpRequest, below is a help to that - this will handle the request, all that you have to fill in is the..
Tags: ajax  content  dynamic  help  javascript  request  xml 
+ 0 likes
14 comment(s)    Score: 6.0    Platform: Javascript    Posted by vaseline28 on Sep 13, 2008
Script is relatively simple, credit should be shown to several tutorials, particularly those on AJAX in www.w3schools.com I HAVE used my own work though :-) What I find I love about AJAX is that..
+ 1 likes
7 comment(s)    Score: 5.0    Platform: Javascript    Posted by vaseline28 on Sep 09, 2008
If you're a little unsure on Javascript, I recommend that you use the simple version of the script found
+ 1 likes
8 comment(s)    Score: 7.0    Platform: Javascript    Posted by vaseline28 on Jul 12, 2008
Allows you to copy a character which is not found on a standard American keyboard to the clipboard and simply just copy/paste it into your message. If I'm missing any, please PM me them, thanks! ..
+ 0 likes
1 comment(s)    Score: 0.0    Platform: mIRC    Posted by vaseline28 on Jul 10, 2008
+ 0 likes
10 comment(s)    Score: 6.0    Platform: Javascript    Posted by vaseline28 on Jul 06, 2008
Simple redirect, if you go to URL "REDIRECT FROM", you will be redirected to "REDIRECT TO". For example, if I move domain name, I could put in the homepage of my old domain (e.g...
+ 0 likes
4 comment(s)    Score: 0.0    Platform: Javascript    Posted by vaseline28 on Jul 01, 2008
Ever wanted to see if you can match any word in a group with any word in another group with an unspecified number of words? This does it for you, usage explained below.
Tags: custom  identifier  match  return  text  token 
+ 0 likes
9 comment(s)    Score: 5.5    Platform: mIRC    Posted by vaseline28 on Jun 23, 2008
$powerof(N,I) Calculates N to the Power of I, can list also. ; $powerof(N,I) <-- Usage: Calculates N to the power of I ; Other use: $powerof(N,I).all <-- Calculates N to the power of I, but lists..
Tags: custom  identifier  indicies  math  mirc  power 
+ 0 likes
0 comment(s)    Score: 3.0    Platform: mIRC    Posted by vaseline28 on Jun 14, 2008
Returns the Factors of N Factors: Numbers which multiplied by another number go into the target. e.g. 12 (1 x 12), (2 x 6), (3 x 4) = 12 1,12,2,6,3,4 are factors of 12 ; Usage: $factors(N).P ;..
Tags: custom  factor  identifier  math  mirc  number 
+ 0 likes
0 comment(s)    Score: 3.0    Platform: mIRC    Posted by vaseline28 on Jun 14, 2008
The following is a rounding function for whole numbers, not decimals as $round() does. ; Usage: $roundint(Number).P <---- Returns Number rounded to the nearest prop ; 'P' above must be a multiple..
+ 0 likes
3 comment(s)    Score: 4.0    Platform: mIRC    Posted by vaseline28 on Jun 13, 2008
+ 0 likes
1 comment(s)    Score: 7.0    Platform: mIRC    Posted by vaseline28 on Jun 11, 2008
This script returns the conversion from one Temperature/Length/Volume/Weight/Area to another. Usage: A = Are || m2 = Square Meters || cm2 = square centimeters || acre = acre || yd2 = square yards..
+ 0 likes
7 comment(s)    Score: 3.0    Platform: mIRC    Posted by vaseline28 on Jun 08, 2008
This is simply an Alias Manager Dialog. *Should* be bug free and allows you to edit the name or commands of an alias, delete one or edit one. Feedback/bugs appreciated!
Tags: alias  aliases  dialog  manager  script 
+ 0 likes
7 comment(s)    Score: 6.2    Platform: mIRC    Posted by vaseline28 on May 27, 2008
My Currency Converter dialog for mIRC. I have recently re-done the script to take out favorites, killed the problem with the timers to make the whole script much more efficient and less annoying! Converts..
+ 0 likes
6 comment(s)    Score: 5.4    Platform: mIRC    Posted by vaseline28 on May 25, 2008
Replace <Your Highlight> with what you want highlighted, e.g.:
Tags: highlight  ignore  list  mirc  remotes 
+ 0 likes
7 comment(s)    Score: 5.5    Platform: mIRC    Posted by vaseline28 on May 12, 2008
Again, the idea here was to keep it compact. The script randomly picks one type for itself and then uses math(s) to determine who the winner is. I've been seeing a number of Rock,Paper,Scissors games..
Tags: chance  compact  game  mirc  paper  random  remotes  rock  scissors 
+ 0 likes
5 comment(s)    Score: 6.0    Platform: mIRC    Posted by vaseline28 on May 05, 2008
This randomly gives a selection of cards to the user prompting the script. E.g.: >
Tags: cards  deal  mirc  random  remote 
+ 0 likes
1 comment(s)    Score: 0.0    Platform: mIRC    Posted by vaseline28 on May 03, 2008
This script goes in remotes. It is a game which randomly decides on a winner. The winner is the name which generates the highest numbers from the X amount of dice rolls. The "X" amount of..
Tags: compact  dice  game  mirc  random  remote  remotes  roll 
+ 0 likes
5 comment(s)    Score: 5.0    Platform: mIRC    Posted by vaseline28 on May 03, 2008
This snippet goes in Remotes! I focused on keeping this small and compact, it totals 11 lines in total. The use of /set rather than /var was deliberate also. It's not my first mIRC script, but probably..
Tags: compact  dice  mirc  random  remote  roll 
+ 0 likes
11 comment(s)    Score: 0.0    Platform: mIRC    Posted by vaseline28 on Apr 29, 2008
Bottom