Instantly share code, notes, and snippets.

View composer.json
{
"require": {
"admad/cakephp-sequence": "^2.0",
"cakedc/enum": "^1.0",
"cakephp/acl": "^0.2.2",
"cakephp/cakephp": "~3.4.0",
"cakephp/localized": "dev-master",
"cakephp/migrations": "~1.0",
"cakephp/plugin-installer": "*",
"egeloen/google-map": "^2.0",
View st3_my_packages.md

Sublime Test 3 installed packages

User settings

{
    "create_window_at_startup": false,
    "drag_text": false,
    "font_face": "Migu 1M",
    "font_size": 16.0,
View sublime text 2
{
"afn_valid_scopes":
[
"css",
"sass",
"less",
"scss",
"ctp",
"html"
],
View composer.json
{
"require": {
"FriendsOfCake/crud": "3.*",
"aws/aws-sdk-php": "~2.4",
"cakedc/migrations": "~2.2",
"cakedc/search": "~1.1",
"cakedc/utils": "~1.3",
"cakephp/debug_kit": "~2.2",
"cakephp/localized": "2.1.*@dev",
"chronon/mobile_detect": "~1.1",
View bingo.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bingo!</title>
<link rel="stylesheet" href="./css/bootstrap.css">
<style>
body {
padding-top: 100px;
}
View gist:5642000
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
nameserver 127.0.0.1
View gist:5641805
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
# multi_accept on;
}
http {
View YahooAuction.php
<?php
/**
* require QueryPath
*
**/
App::uses('AppModel', 'Model');
App::uses('HttpSocket', 'Network/Http');
App::import('Vendor', 'autoload');
class YahooAuction extends AppModel {
View nginx_dynamic_virtual_host
server {
listen 80;
server_name ~^(.*)\.cakephp\.dev$;
set $_document_root /opt/local/var/www/cakephp/$1/webroot;
set $_server_name $1.cakephp.dev;
# if directory doesn't exist
if (!-e $_document_root) {
rewrite ^ http://localhost last;
View nginx_dynamic_root_vhost.conf
server {
listen 80;
server_name ~^(.*)\.local\.dev$;
set $_document_root /opt/local/var/www/$1;
set $_server_name $1.local.dev;
# if directory doesn't exist
if (!-e $_document_root) {
rewrite ^ http://localhost last;