Welcome To Snipplr


Everyone's Recent Snippets Tagged number



« Prev 1 2 3 4
  1. FAV

    Counter from 0 to number

    Counter from 0 to number
    jQuery 4 views posted 3 years ago by envane21
  2. FAV

    Format that Crap to an Array

    I am tired of having to go through text and adding quotation marks and commas to strings or just commas after numbers... f-that. Fixed.
    Python 7 views posted 4 years ago by joshuaherman
  3. FAV

    Wordpress - remove the version number from styles and scripts

    Put it in functions.php
    PHP 5 views posted 5 years ago by burnandbass
  4. FAV

    Find Pairs of Numbers

    Write a code that will find the sum of any pairs of numbers
    Java 6 views posted 5 years ago by rikesh_kisnah
  5. FAV

    US Phone number validation - Jquery

    Validating phone number using jquery
    jQuery 5 views posted 6 years ago by satinfo30
  6. FAV

    Adding/remove commas in digits

    Add / Remove comma for number in the thousands. Ex: 1,000 Useful for grabbing input values to format then display, remove the comma and convert back to number to do math.
    JavaScript 14 views posted 6 years ago by supawaza
  7. FAV

    Avoid history back when is pressed backspace key in number imput

    Avoid history back when is pressed backspace key in number imput
    jQuery 2 views posted 6 years ago by porquero
  8. FAV

    Add commas to numbers

    A quick function that makes it easy to convert an integer into a number string with commas inserted.
    JavaScript 0 views posted 6 years ago by uberdragon
  9. FAV

    Color Value To Hexadecimal

    A simple utility class that will help you convert a color value (from numbers) to hexadecimal color value.
    ActionScript 3 7 views posted 6 years ago by vamapaull
  10. FAV

    Only Numbers in Web Controls with jQuery

    Example to manipulate only numbers (and tab key) in a web control (textbox example)
    jQuery 4 views posted 6 years ago by keidash
  11. FAV

    Is this Number Prime

    Method to Check if an int is a Prime Number
    C# 5 views posted 6 years ago by jholderman
  12. FAV

    Format a US Phone Numner

    Generic function - Pass the context to the function for use with any field
    JavaScript 4 views posted 6 years ago by chetkloss
  13. FAV

    Check 10- and 11- digit phone numbers

    Return a pure 10-digit phone number if the number given is 10 digits or 11 digits.
    PHP 7 views posted 7 years ago by chrisvogt
  14. FAV

    Wordpress Native Pagination Links With Page Number No Plugin Needed

    Create navigation links without the need of a plugin, using paginate_links function of wordpress core.
    PHP 5 views posted 7 years ago by rudwolf
  15. FAV

    Scale a number into a defined range

    Scales a number from a given range into a specific range, as explained [in this Stack Overflow](http://stackoverflow.com/questions/5294955/how-to-scale-down-a-range-of-numbers-with-a-known-min-and-max-value) post. Just call it, for example like:...
    Ruby 12 views posted 7 years ago by slhck
  16. FAV

    Limita un numero entre un mínimo y un máximo

    Algunas veces se quiere comprobar si un numero esta entre un rango de otro número menor y otro mayor.
    ActionScript 3 2 views posted 7 years ago by fenixkim
  17. FAV

    format numbers in javascript with group digits

    format numbers in javascript with group digits
    JavaScript 3 views posted 7 years ago by rg443
  18. FAV

    Number in Words (Número por extenso)

    Write a given number in words - Escreve um número por extenso. Write in Brazilian Portuguese, sorry for english or other language guys but it can be adapted. Write from 1 to 9999 Based on a forum in http://scriptbrasil.com.br/forum/index.php?...
    JavaScript 9 views posted 7 years ago by glauberportella
  19. FAV

    Separate street and number from an address

    Straatnamen en huisnummer splitsen, hieronder diverse types straatnamen Bron: http://www.pfz.nl/archief/965267-adres-splitsen-in-straatnaam-en-huisnr/
    PHP 8 views posted 7 years ago by MGHollander
  20. FAV

    AS3 MathUtils static class

    Credit goes to Bruno Imbrizi.
    ActionScript 3 9 views posted 7 years ago by adrianparr
  21. FAV

    AS3 Map a Number within one range to another range

    Credit goes to Bruno Imbrizi.
    ActionScript 3 7 views posted 7 years ago by adrianparr
  22. FAV

    Convert values within a range to values within another range

    I’m sharing with you a little utility that I find myself using a lot lately. This utility is a value convertor that you can use in those times when you need to make a volume slider or something similar where you’ll need to change a value and a va...
    ActionScript 3 6 views posted 8 years ago by vamapaull
  23. FAV

    WhoIsLoggedIn.vbs

    Run this script from a command prompt, and you'll be asked for the IP Address or Host Name. Script will first check if PC is ping-able and will return an error message on any unreachable host. If the computer is running, script will return with user...
    Visual Basic saved by 5 people 4 views posted 8 years ago by RobertHirabayashi
  24. FAV

    Optional function arguments/parameters by using associative array

    By not being limited to provide certain arguments/parameters in right order when calling a function, makes the function more versatile and easier to extend without breaking old code (e.g. calls to the function). One solution is to pass an associati...
    JavaScript 6 views posted 8 years ago by coprolit
  25. FAV

    AS3 Decimal To Hex

    ActionScript 3 5 views posted 8 years ago by adrianparr
  26. FAV

    Python - Random Numbers - Examples

    Example of some random number generation mechanisms built-in Python. More details in the following link: http://docs.python.org/library/random.html
    Python 1 views posted 8 years ago by denakitan
  27. FAV

    format thousands

    Thanks to http://www.mredkj.com/javascript/numberFormat.html#addcommas
    JavaScript 2 views posted 8 years ago by fengelz
  28. FAV

    Factorial prime numbers factorization

    Find how many factors there is in N! for a prime P Ex: 5! = (2^3)*(3^1)*(5^1) mult(5,2) = 3 mult(5,3) = 1 mult(5,5) = 1 all else = 0
    C# 0 views posted 8 years ago by FMalk
  29. FAV

    Titanium Simple Numberpad Entry

    JavaScript 1 views posted 8 years ago by alexstone
  30. FAV

    Number to word converter (0-1 googol)

    Takes a number (no decimal) and converts it to written words.Why'd i write it to be able to do such big numbers? Why not? Note: The numbers next to the 'thousandfoldnums' are for your reference (thats how many zeros/places there are in that numbe...
    PHP 4 views posted 8 years ago by lasavior
« Prev 1 2 3 4