Chris West's Blog

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

Category: JavaScript

Blog

JavaScript Snippet – String.prototype.before()

WARNING: Extending native prototypes is frowned upon by many JS engineers but can be helpful as long as the extensions are properly documented in the codebase. SCRIPTER’S DISCRETION IS ADVISED. 😆 Even though its NOT encouraged to extend native prototypes, at times you may find that doing so is pretty Read more…

By Chris West, 11 years ago January 20, 2015
Blog

JavaScript – Simplest Inheritance Before ES5

One of the great things about reading through Douglas Crockford’s site is that you get to learn about how certain things like prototypal inheritance was implemented prior to ECMAScript 5. Since then Object.create() made its way into JavaScript and has been available in most modern browsers for a while. If Read more…

By Chris West, 11 years ago December 19, 2014
Blog

JavaScript Snippet – Simple CSV Parser

As I mentioned in yesterday’s post, I was recently working on a quick way to parse CSVs into an array of arrays and alternatively into an array of dictionaries keyed on the values in the first row. I ended up landing on the following definition: As you can see the Read more…

By Chris West, 11 years ago December 5, 2014
Blog

Regular Expressions – Extra Ending Match

A few days ago I was working on a very primitive version of a CSV reader for a quick JS project and while testing my regex out, I noticed that I was getting an extra match at the end. Here is the JavaScript function that I had: Interestingly, if you Read more…

By Chris West, 11 years ago December 4, 2014
Blog

Chrome Apps – File System Helpers

Here are a few helper functions that can help you get on the right track to building a simple chrome app that can read and modify the user’s file system: Get Full Path In order to get the full path for a DirectoryEntry or a FileEntry you can use the Read more…

By Chris West, 11 years ago December 1, 2014
Blog

JavaScript – Global Eval Using Data URIs

WARNING: This post is intended solely to educate and is not to by any means encourage that anyone use this method to globally evaluate JavaScript code. Most JavaScripters avoid eval(), especially globalEval() (like what is provided in libraries such as jQuery), as if it were the plague. Its use can Read more…

By Chris West, 11 years ago October 23, 2014
Blog

JavaScript – Creating A Downloadable File in the Browser

Let’s say that you have an array of arrays that is dynamically generated and you would like to provide a download link/button to download it as a CSV. How would you go about doing it? Ordinarily you would go about sending the data to the server which would then be Read more…

By Chris West, 11 years ago October 21, 2014
Blog

Embedding Stylesheets in JavaScript

Now Available in YourJS One of the cool things about JS is that you can do almost anything with it! The only thing is that you need to have the tools to get that “anything” job done. Recently, I had the desire to embed HTML, CSS, and JS all in Read more…

By Chris West, 11 years ago October 1, 2014
Blog

JavaScript Snippet – Get Function Comments

Last year I wrote about having heredoc like strings available in JavaScript. Today I figured i’d briefly bring the topic back, providing a solution for returning an array of all comments found in a function: Why is this useful? As you may know, writing multiline strings in JavaScript isn’t always Read more…

By Chris West, 11 years ago August 29, 2014
Blog

Watch Anime & Cartoons Online for Free

Recently I have had the desire to provide more multimedia on my site. Due to the server requirements and the time it would take to keep everything up-to-date I decided to take the easy way out and simply link to the media providers such as Apple and WatchCartoonOnline. If you Read more…

By Chris West, 11 years ago July 17, 2014

Posts navigation

Previous 1 … 5 6 7 … 22 Next
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Archives
Categories
Blog (346) 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 (6) SQL (28) VBA (6) VBScript (8) Videos (10)
Tags
Apache (1) Apex (3) 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) Network (1) OpenKM (2) PostgreSQL (27) Private Data (4) Problem of the Week (31) Prototype (41) Quirk (3) Recursion (10) Regular Expressions (22) String (62) SVN (1) Video (2) Wildcards (3) WScript (2) YourJS (18)
  • About Me
Hestia | Powered by WordPress