Skip to content

Instantly share code, notes, and snippets.

View patrickheeney's full-sized avatar

Patrick Heeney patrickheeney

View GitHub Profile
Process: OpenEmu [7395]
Path: /Users/USER/Library/Developer/Xcode/DerivedData/OpenEmu-bkuyujxxlbxntogwrlftzphfcnrv/Build/Products/Debug/OpenEmu.app/Contents/MacOS/OpenEmu
Identifier: org.openemu.OpenEmu
Version: 1.0.0b9
Code Type: X86-64 (Native)
Parent Process: launchd [145]
User ID: 501
Date/Time: 2012-12-26 18:13:33.770 -0700
OS Version: Mac OS X 10.8.2 (12C3104)
@patrickheeney
patrickheeney / sir-trevor-blocks-ideas
Created October 31, 2013 08:05
Sir Trevor Black Ideas
Block Ideas
I love this editor and can see it being super powerful for a CMS. I think it needs just a bit more power to cover any kind of usage.
1. Text Block Improvements
I think the text block should be made more advanced. It definitely doesn't need to be too crazy but I think we can add more power and still keep it flexible. For example lists should created within the text instead of an entire block. Headings, lists (bullet, numbered), links, position (left, center, right) should cover almost all use cases.
Add H1, H2 buttons to popup. If you select a word in a paragraph it would apply the style to the whole paragraph as a heading.
//
// Command: optimize
//
gulp.task('optimize', ['imagemin']);
//
// Command: watch
//
gulp.task('watch', function () {
- name: debian | get the key
apt_key: >
url=http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
id=rabbitmq-signing-key-public
state=present
sudo: yes
TASK: [rabbitmq | debian | get the key] ***************************************
failed: [localhost] => {"failed": true, "item": "", "parsed": false}
/*APP.core = {
fire: function( controller, page_action ) {
var action = ( !page_action || page_action === "" ) ? "init" : page_action;
//window.console.log(controller);
//window.console.log(page_action);
//window.console.log(action);
if ( controller !== "" && APP[controller] && typeof APP[controller][action] == "function" ) {
---
- name: Core
hosts: all
tasks:
- name: get home of current user
debug: msg="Value of ansible_env['HOME'] is {{ansible_env['HOME']}}"
- name: get value of current user
debug: msg="Value of ansible_env['USER'] is {{ansible_env['USER']}}"
- debug: var=ansible_env
- name: ntp | install debian ntp
vagrant@protobox:/vagrant/ansible_src/test/integration$ sudo TEST_FLAGS="--tags test_git" make
ansible-playbook non_destructive.yml -i inventory -e @integration_config.yml -v --tags test_git
PLAY [testhost] ***************************************************************
GATHERING FACTS ***************************************************************
ok: [testhost]
TASK: [test_git | set role facts] *********************************************
ok: [testhost] => {"ansible_facts": {"checkout_dir": "~/ansible_testing/git", "known_host_files": ["/home/vagrant/.ssh/known_hosts", "/etc/ssh/ssh_known_hosts"], "repo_format1": "https://github.com/jimi-c/test_role", "repo_format2": "git@github.com:jimi-c/test_role.git", "repo_format3": "ssh://git@github.com/jimi-c/test_role.git"}, "item": ""}
- name: virtualhosts | remove default sites
file: >
path=/etc/apache2/sites-enabled/{{ item }}
state=absent
with_items:
- 'default'
- 'default.conf'
- '000-default'
- '000-default.conf'
- 'default-ssl'
Verifying that +patrickheeney is my Bitcoin username. You can send me #bitcoin here: https://onename.io/patrickheeney
@patrickheeney
patrickheeney / gist:c4a192cff86194c859f5
Last active August 29, 2015 14:06
Application Lifecycle

September 25, 2014

Request Cycle (with Service Layer)

  • HTTP Request -> Received by Controller.
  • Controller -> Serializes request data into command.
  • Controller -> Passes Command off to Command Bus.
  • CommandBus -> Resolves Command to Handler.
  • Command Handler -> Receives request and resolves any dependencies, fires any command events to modify the command data before and after handler action, then passes it off to a service layer.
  • Service -> Receives input and handles creation, retreiving and updating entities. It builds up the entities and related entities and hands it off to the repository for persisting and deleting.