Skip to content

Instantly share code, notes, and snippets.

@codenamegary
codenamegary / random.php
Last active April 19, 2017 15:39
Random PHP code
<?php
public function pdf_creation($content)
{
if (false !== file_put_contents($this->full_file_name, $content)) {
return true;
}
while (substr($this->filename, 0, 1) === '.') {
$this->filename .= substr($this->filename, 1, (strlen($this->filename) - 1));
@codenamegary
codenamegary / neal.html
Created November 19, 2015 15:53
GANKLE
<!DOCTYPE html>
<html>
<head>
<style>
#mydiv {
position: fixed;
top: 0;
left: 0;
margin: 0;
width: 500px;
@codenamegary
codenamegary / Stats.php
Last active August 29, 2015 14:18
Stats Refactoring
private function getAppInformation()
{
$sql = file_get_contents('stats-query.sql');
$data = DB::select($sql);
$apps = App::hydrate($data);
return $apps;
}
@codenamegary
codenamegary / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@codenamegary
codenamegary / lead-dev-needed.md
Created November 6, 2014 21:49
Rockstar Lead Developer Needed - Show off your skills and teach us some things, help us grow

#Lead Developer / Jack of many trades required

##Durham Region, Full Time, Immediate

Growing startup in Durham Region is looking for an experienced developer and jack of all trades.

As our Lead Developer, your challenge will be to build, mentor and equip our team with all of the latest and greatest tools, process and methodologies. We are venturing forward at an astronomical pace and needed a real leader, with their own approach who can arm us with the knowledge and infrastructure to grow.

You will have the opportunity to...

@codenamegary
codenamegary / dev-needed.md
Last active August 29, 2015 14:08
PHP Developer Needed

#PHP Developer / Jack of many trades required

##Durham Region, Full Time, Immediate

Growing startup in Durham Region is looking for an experienced developer and jack of all trades. Primary focus will be on developing products with PHP as the back end and standard web technologies for the front end. We currently employ Bootstrap for our front ends and Laravel for our back ends liberally across our code bases. The company is currently in transition and looking to setup some additional supporting infrastructure and expand our dev team. It is an exciting time to be involved! We practice SOLID devlopment principles and use a modern toolchain that involves grunt, bower, phpunit, vagrant and many others. We're looking for somebody who can come onboard and hit the ground running, we are a fun bunch and enjoy teaching and mentoring so don't sweat if your skills aren't quite as sharp in any given area, we'd love to have you grow with us! You will have the opportunity to explore your abilities, share and learn. We are

@codenamegary
codenamegary / fizzbuzz.php
Last active August 29, 2015 14:07
Functional FizzBuzz
<?php
$zork = function($result, $mod) {
return function($num)use($result, $mod) {
return $num % $mod ? '' : $result;
};
};
$fizz = $zork('Fizz', 3);
@codenamegary
codenamegary / dev-ops-resource-needed.md
Created September 8, 2014 19:19
Dev-ops Resource Needed

#SKILLED DEV-OPS RESOURCE NEEDED FOR TEMPORARY / PART-TIME CONTRACT

##BACKGROUND

We are a small development team focused on mostly LAMP (or LEMP) based application development. We have traditionally deployed to hosting solutions using a PaaS like PagodaBox or FortRabbit. Some of our internal and client projects are beginning to grow and we need to focus on moving our hosting out to a more robust solution using Amazon, SoftLayer, BlueMix (CloudFoundry) or some other provider of your choosing.

Applications are entirely custom and built on either Laravel or Symfony, there is no Wordpress or Joomla or any other CMS involved in any of the existing projects.

Currently, we are a small team of sales and developers. We are familiar with all of the technologies involved in deploying to Amazon through Elastic Beanstalk and other facilities but do not have the will nor manpower to automate and assemble the process as much as we'd like. We are looking to augment and fill the dev-ops gap in our skills with a person who

@codenamegary
codenamegary / Person.php
Last active August 29, 2015 13:59 — forked from amcsi/Person.php
<?php
namespace MyProject;
class Person
{
private $data;
/**
*
<?php
namespace Vent;
trait VentTrait {
/**
* Handle a write request
* @param $name
* @param $value