Skip to content

Instantly share code, notes, and snippets.

View ReneeVandervelde's full-sized avatar
🌻
Keeping software in full bloom

Renee Vandervelde ReneeVandervelde

🌻
Keeping software in full bloom
View GitHub Profile
<?php
/* Maxwell Vandervelde
* MaxVandervelde.com
* Copyright 2012. Some Rights Reserved -
* Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
* http://creativecommons.org/licenses/by-sa/3.0/
*/
Class Alert {
@ReneeVandervelde
ReneeVandervelde / MySQL.php
Created April 19, 2012 14:38
MySQL Class
<?php
/* Maxwell Vandervelde
* MaxVandervelde.com
* Copyright 2012. Some Rights Reserved -
* Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
* http://creativecommons.org/licenses/by-sa/3.0/
*/
class MySQL {
private $link,$queries;
@ReneeVandervelde
ReneeVandervelde / Snip_1
Created May 5, 2012 04:05
Cassandra Install
2. Add a yum repository specification for the DataStax repository in /etc/yum.repos.d. For example:
$ sudo vi /etc/yum.repos.d/datastax.repo
3. In this file add the following lines for the DataStax repository:
[datastax]
name= DataStax Repo for Apache Cassandra
baseurl=http://rpm.datastax.com/community
enabled=1
gpgcheck=0
<?
function compressHTML($html){
preg_match_all('#(<(?:code|pre).*>[^<]+</(?:code|pre)>)#',$html,$excludeTags);
$html = preg_replace('#<(?:code|pre).*>[^<]+</(?:code|pre)>#', '!!!excludeTag!!!', $html);
$html = preg_replace('#<!–[^\[].+–>#', '', $html);
$html = preg_replace('#[\r\n\t]+#', ' ', $html);
$html = preg_replace('#>[\s]+<#', '><', $html);
$html = preg_replace('#[\s]+#', ' ', $html);
if($excludeTags[0])
<?php
/**
* Replaces Keys with values iside of a string
*
* @author Maxwell Vandervelde <Maxwell.Vandervelde@nerdery.com>
* @param string $string The string you want to replace keys from
* @param array $replaceArray The array of KEY=>VALUES to replace
* @param string $identifierPrefix The Prefix of the KEY in the string
* @return type
<?php
class good
{
/**
* @var string our test variable we want this class to rely on
*/
private $x;
/**
<?php
/**
* OutOfScopeException.php
*
* @copyright (c) 2013 Maxwell Vandervelde
* @license MIT <http://opensource.org/licenses/MIT>
*/
namespace MaxVandervelde\RealisticProjectBundle\Exception;
/**
* Location Manager
*
* I would like to take a moment to talk to you about the Google Play location
* services Client architecture. You'll notice this class has a direct coupling
* to the android GMS location Client. This is a Bad Idea (tm). Let me explain
* why we have no other choice here.
* The Location Client requires a couple things: The Activity context and some
* connection listeners which you can see this class implements. As you may or
* may not know, it is not safe to call the Location Client's request methods
@ReneeVandervelde
ReneeVandervelde / gist:9179514
Last active August 29, 2015 13:56
StripperClip Wrapper
#!/usr/bin/env php
<?php
/**
* clip
*
* StripperClip Wrapper
*
* @license MIT <http://opensource.org/licenses/MIT>
* @author Maxwell Vandervelde <Max@MaxVandervelde.com>
*/

Keybase proof

I hereby claim:

  • I am maxvandervelde on github.
  • I am maxvandervelde (https://keybase.io/maxvandervelde) on keybase.
  • I have a public key whose fingerprint is C21D 81E7 1F58 6C96 955F 5141 444C 4178 2B95 C590

To claim this, I am signing this object: