Chris West's Blog

  • Home
  • Site Search
  • About Me
  •  YourJS
  • Search for:

JavaScript, Math, and much more.

Blog

VBA Snippet – GetTimezoneOffset()

One of the things I think is amazing about VBA is the fact that it is so incomplete in some ways. For instance, did you know that there is no native way to get the local timezone offset. Yesterday I Read more…

By Chris West, 14 years ago October 18, 2011
Blog

Quick JavaScript Encryption Method

Recently, I have been interested in creating a quick one-way encryption method. After playing around with a lot of different variations, I settled on the following: One nice thing about this function is the fact that you can restrict the Read more…

By Chris West, 14 years ago October 17, 2011
Blog

JavaScript – Bitwise Operator Limitations

Did you know that the bitwise operators always return 32-bit (signed) integers? If you don’t believe me, test out the following examples for yourself:

By Chris West, 14 years ago October 14, 2011
Blog

Wrapping Integers In JavaScript & PostgreSQL

Recently, I had to create a PostgreSQL equivalent of the Java hashCode() function. In order to do this, I needed a way to make sure that numbers that exceed the INTEGER representation (ranging from -2^31 to 2^31-1) will be wrapped. Read more…

By Chris West, 14 years ago October 13, 2011
Blog

JavaScript Snippet – Function.prototype.chain()

The following is a function which returns the chainable version of a function: Here is an example of how to define a pseudo-class which uses this chaining method: Here is an example which shows that the chaining works as intended:

By Chris West, 14 years ago October 12, 2011
Blog

JavaScript Snippet – String.prototype.hashCode()

The following prototype function mimics the hashCode() function of java.lang.String in Java: Depending on the version of Java that you are running, what is returned from this function may not be the same thing that is returned in Java. On Read more…

By Chris West, 14 years ago October 11, 2011
Blog

JavaScript Snippet – String.prototype.reverse()

The following is a quick JavaScript function which will return the reverse of a string: The above function is a function that, once defined, will exist for every string. Here are some examples of how to use the above function: Read more…

By Chris West, 14 years ago October 7, 2011
Blog

JavaScript Snippet – String.prototype.contains()

The following is a quick JavaScript function which can determine if a string contains a substring: The above function is a function that, once defined, will exist for every string. The first parameter, which is the string to be found, Read more…

By Chris West, 14 years ago October 6, 2011
Blog

JavaScript Snippet – String.prototype.startsWith()

The following is a quick JavaScript function which can determine if a string starts with a substring: The above function is a function that, once defined, will exist for every string. The first parameter, which is the string to be Read more…

By Chris West, 14 years ago October 5, 2011
Blog

JavaScript Snippet – String.prototype.endsWith()

The following is a quick JavaScript function which can determine if a string ends with a substring: The above function is a function that, once defined, will exist for every string. The first parameter, which is the string to be Read more…

By Chris West, 14 years ago October 4, 2011

Posts navigation

Previous 1 … 28 29 30 … 36 Next
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Archives
Categories
Blog (347) CSharp (1) Games (3) HTA (2) Java (5) JavaScript (220) JScript (149) Math (49) Microsoft Office (16) Movie Trailers (2) PHP (13) POW Answer (2) Problem of the Week (31) Python (15) Reporting (1) Salesforce (7) SQL (28) VBA (6) VBScript (8) Videos (10)
Tags
Apache (1) Apex (4) Array (37) Audio (2) Bash (3) Canvas (7) Chrome (3) CSS (12) CSS3 (2) Curry (1) Date (6) EcmaScript 6 (8) Encryption (2) Español (2) Excel (20) Function (136) GitHub (12) Hack (9) HTML (4) HTML5 (2) JasperReport (2) JasperServer (1) jPaq (35) JSON (2) JSONP (2) JW.org (5) Logic Puzzle (2) LWC (2) Mail Merge (1) Math (53) OAuth (2) OpenKM (2) PostgreSQL (27) Private Data (4) Problem of the Week (31) Prototype (41) Quirk (3) Recursion (10) Regular Expressions (22) Salesforce (2) String (62) Video (2) Wildcards (3) WScript (2) YourJS (18)
  • About Me
Hestia | Powered by WordPress