- create a project we can develop locally and then push to heroku
- automate deployment as much as is practical
- avoid storing built resources in master branch
- avoid storing development npm modules in production
- configure the project to behave appropriately in each environment
- htttp://leviwheatcroft.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
/** | |
* ## tests | |
* | |
* I've never written any tests before, so I'm sure there's room for | |
* criticism here. | |
* | |
*/ | |
const request = require('superagent') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var createClass; | |
var createFactory; | |
var Factory; | |
createClass = function(pattern) { | |
var Cls; | |
var Tmp; | |
var proto; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#test { | |
background-color: #000000; | |
background-image: url('http://placekitten.com/g/200/300'); | |
display: block; | |
width: 200px; | |
height: 1000px; | |
background-repeat: no-repeat; | |
margin: 100px 0 0 0; | |
background-attachment: fixed; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#test { | |
background-color: #000000; | |
background-image: url('http://placekitten.com/g/200/300'); | |
display: block; | |
width: 200px; | |
height: 1000px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file management service for laravel (whtacctgPortalClientFolders) | |
## overview | |
We require a file management system for a professional office. Our client files are maintained on a debian file server, and we would like to perform maintenance functions on that repository via a web interface. I'd like to use laravel, because planned future enhancements will require a robust framework. | |
the full brief [can be viewed here][1] | |
## details | |
* Currently, client data is stored in a folder structure created by convention. That convention needs to be changed, so client folders will need to be renamed according to the new convention. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Snapfyla Overview Infographic (snapfylaOverviewIG) | |
## overview | |
create an infographic providing a simple high level overview of the services snapfy.la provides. | |
see the full brief here: | |
## about snapfy.la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('__ROOT__',dirname(__FILE__)); | |
require_once __ROOT__ . '/lib/kint/Kint.class.php'; | |
function kint_error_handler($errno, $errstr, $errfile, $errline, $errcontext) { | |
Kint::dump(func_get_args()); | |
Kint::trace(); | |
die(); | |
} | |
set_error_handler('kint_error_handler'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Singleton | |
{ | |
protected static $instance = null; | |
protected function __construct() | |
{ | |
} |
NewerOlder