chrisaiv


Member since 01/16/2007

Name: Chris

chrisaiv

Location: Los Angeles

Website: http://www.chrisjmendez.com

Product manager, Scrum master and software engineer.

183 snippets

63 profile views

41 Comment(s) Posted

View their favorites

Profile

All time reputation: 1566

Achievement

first submission:submitting first snipplet

chrisaiv's Recent Snippets



« Prev 1 2 3 4 5 6 7
  1. FAV

    Bash: EC2 Script

    This script is designed for AWS EC2 manager interested in installing an apache server, then copying web page files from an AWS S3 bucket to Apache's web directory.
    Bash 20 views posted 2 years ago chrisaiv
  2. FAV

    Swift: Load a Wav sound using AVFoundation

    I sometimes need to dynamically load a .wav file. Here's how I do it using AVFoundation
    iPhone 11 views posted 3 years ago chrisaiv
  3. FAV

    Swift: Get Random Boolean

    This function will help you get a random true or false boolean value.
    Objective C 18 views posted 3 years ago chrisaiv
  4. FAV

    Simple GET Request

    A simple GET request using Swift
    Objective C 15 views posted 4 years ago chrisaiv
  5. FAV

    NodeJS: Turn image into Vector art silhouette

    I was recently asked to turn a bitmap image (.bmp) into a vector graphic and I wanted to do it using Javascript. NodeJS did the trick with a little help from Node Package Manager and Brew Package Manager. The first step was to install potrace then i...
    JavaScript 15 views posted 5 years ago chrisaiv
  6. FAV

    Proper Global Variables

    It's not a good idea to create global variables unless you do something like this. From here, all you need to do is setData(YOUR_DATA) and getData()['key']
    JavaScript 15 views posted 5 years ago chrisaiv
  7. FAV

    List of Industries

    If you're ever building a site that requires you to list out industries, here you go.
    HTML 35 views posted 5 years ago chrisaiv
  8. FAV

    Wordpress: Disable HTML in Wordpress comments

    You might need to strip out HTML in comments and here's how.
    PHP 22 views posted 5 years ago chrisaiv
  9. FAV

    Wordpress: Replace a theme's Google font with your own

    You like a theme but it's referencing a Google font you want to switch out. Here's the simplest way to do it, by keeping the .class names but switching out the Google Font URL
    PHP 16 views posted 5 years ago chrisaiv
  10. FAV

    Wordpress: Change admin email to new users (example 2)

    This is similar to [example 1](http://snipplr.com/view/77687/wordpress-change-admin-email-to-new-users/) but more portable.
    JavaScript 14 views posted 5 years ago chrisaiv
  11. FAV

    Wordpress: Change admin name to new users

    enter the full name you want displayed alongside the email address
    PHP 13 views posted 5 years ago chrisaiv
  12. FAV

    Wordpress: Change admin e-mail to new users (example 1)

    enter the full email address you want displayed
    JavaScript 12 views posted 5 years ago chrisaiv
  13. FAV

    Wordpress: boilerplate functions.php

    The functions here are a compendium of snippets I've posted in the past. I will continue to update this file regularly.
    PHP saved by 1 person 18 views posted 5 years ago chrisaiv
  14. FAV

    Wordpress: Clean up Dashboard Meta boxes

    Remove all those boxes on the Wordpress Dashboard
    PHP 15 views posted 5 years ago chrisaiv
  15. FAV

    Wordpress: Fix Gravity Form Error

    Gravity Forms by default will write an inline JavaScript call to jQuery on every form you add to a page.
    PHP 11 views posted 5 years ago chrisaiv
  16. FAV

    Wordpress: Upgrade an old theme\'s jQuery

    Eventually, you're going to need to style this website so here are a few tricks
    JavaScript 8 views posted 5 years ago chrisaiv
  17. FAV

    Wordpress: Fix Visual Formatting

    Prevents wordpress back-end from stripping formatting
    PHP 9 views posted 5 years ago chrisaiv
  18. FAV

    Wordpress: Remove header junk from default Wordpress install

    Over the years, wordpress has placed a lot of junk in their system.
    PHP 13 views posted 5 years ago chrisaiv
  19. FAV

    Wordpress: Disallow HTML in Comments

    Disallow HTML in WordPress comments, add this snippet to your functions.php file.
    PHP 19 views posted 5 years ago chrisaiv
  20. FAV

    Wordpress: Add A Google Font into the Header

    You might also consider just installing this Wordpress plug-in. It's way easier https://wordpress.org/plugins/google-typography/
    PHP 13 views posted 5 years ago chrisaiv
  21. FAV

    Wordpress: UserPro Conditional Log-in

    Add Login / Logout to your WordPress Menu. You must have UserPro
    PHP 12 views posted 5 years ago chrisaiv
  22. FAV

    Wordpress: Limit # of Post Revisions

    If you make a lot of edits, eventually the revisions will start to bother you or bog down your database. Heres how you can put a cap on the number of recorded revisions.
    PHP 8 views posted 5 years ago chrisaiv
  23. FAV

    Wordpress: Robots.txt tricks

    Sometimes you don't want robots snooping around certain files. Here's one example of a custom configuration.
    Apache 17 views posted 5 years ago chrisaiv
  24. FAV

    Wordpress: .htaccess performance tricks

    These are performance tricks to improve your Wordpress application.
    Apache 13 views posted 5 years ago chrisaiv
  25. FAV

    Wordpress: Show Featured Images In Feed

    To encourage subscribers to visit your website, rather than letting them just consume content through your RSS feed, you might want to display only the excerpt and featured image of posts.
    PHP 10 views posted 5 years ago chrisaiv
  26. FAV

    Wordpress: Redirect WordPress Feeds To FeedBurner

    If you want statistics about your subscribers, you’ll have to use FeedBurner instead of Wordpress' out-of-the-box feed.
    PHP 9 views posted 5 years ago chrisaiv
  27. FAV

    Wordpress: Show posts from only one category

    If you’d like to show posts from only one category on your homepage, then it’s easy enough to do.
    JavaScript 8 views posted 5 years ago chrisaiv
  28. FAV

    Wordpress: Remove black bar from mobile phone

    If you user logs in and they're on a mobile phone, they might get that annoying black bar on top. This script removes that if they can edit posts or on mobile.
    PHP 9 views posted 5 years ago chrisaiv
  29. FAV

    Wordpress: Check current user's roles

    Checks if a particular user has a role.
    PHP 13 views posted 5 years ago chrisaiv
  30. FAV

    Wordpress: Detect Safari On iOS

    It's probably not a good idea to always use this trick but if you need to, you'll be glad you bookmarked this script.
    PHP 11 views posted 5 years ago chrisaiv
« Prev 1 2 3 4 5 6 7