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
--- | |
- include: database.yml | |
tags: wordpress-setup-database | |
- include: self-signed-certificate.yml | |
tags: wordpress-setup-self-signed-certificate | |
- include: nginx.yml | |
tags: wordpress-setup-nginx | |
- name: Create web root | |
file: |
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
--- | |
- include: variable-check.yml | |
vars: | |
playbook: deploy.yml | |
- name: Deploy WP site | |
hosts: web:&{{ env }} | |
remote_user: "{{ web_user }}" | |
vars: |
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
wordpress_sites: | |
example.com: | |
site_hosts: | |
- staging-roots-example.adamklein.io | |
local_path: roots-example-project.dev # path targeting local Bedrock site directory (relative to Ansible root) | |
repo: git@bitbucket.org:cmosguy/roots-example-project.dev.git | |
branch: master | |
#repo_subtree_path: # relative path to your Bedrock/WP directory in your repo | |
sage_template: true | |
multisite: |
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
- name: Run npm install - for sage | |
command: npm install | |
connection: local | |
args: | |
chdir: "/vagrant-nfs-workspace/{{ project.local_path }}/web/app/themes/sage" | |
with_dict: "{{ wordpress_sites }}" | |
when: item.value.sage_template | default(false) | |
- name: Run bower install -for sage | |
command: bower install |
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 | |
namespace SquareKings\Scores; | |
use SquareKings\Console\Commands\GetScoresCommand; | |
use SquareKings\Console\Commands\CreateTestGameCommand; | |
use SquareKings\Game; | |
use SquareKings\Team; | |
use SquareKings\Sport; |
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 namespace SquareKings; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Str; | |
use Ramsey\Uuid\Uuid; | |
//use Laracasts\Commander\Events\EventGenerator; | |
use SquareKings\Games\GameStatusInterface; | |
use SquareKings\Events\SquareHasBeenActivated; | |
class Square extends Model implements GameStatusInterface |
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 namespace SquareKings\Broadcasting; | |
use GuzzleHttp\Client; | |
use Illuminate\Broadcasting\BroadcastManager; | |
use Illuminate\Support\Facades\Log; | |
use Illuminate\Support\ServiceProvider; | |
use SquareKings\Broadcasting\Broadcasters\PushStreamBroadcaster; | |
class PushStreamBroadcastManagerProvider extends ServiceProvider |
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
module Tst | |
include("foo.jl") | |
using PyPlot | |
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x)) | |
plot(x, y, color="red", linewidth=2.0, linestyle="--") | |
end |
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
def getOffsets(big_length, small_length, grid): | |
""" | |
return the lowest/highest offsets, if a shape of small length is | |
rendered and centered inside a larger shape length | |
Returns: | |
An OffsetInfo object with the following attributes: | |
loffset - lowest offset | |
hoffset - highest offset | |
""" |
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
<!DOCTYPE html> | |
<!--[if lte IE 7]><html id="ie" class="no-js lt-ie10 lt-ie9 lt-ie8" lang="en" xmlns="http://www.w3.org/1999/xhtml"><![endif]--> | |
<!--[if IE 8]><html id="ie8" class="no-js lt-ie10 lt-ie9" lang="en" xmlns="http://www.w3.org/1999/xhtml"><![endif]--> | |
<!--[if IE 9]><html id="ie9" class="no-js lt-ie10" lang="en" xmlns="http://www.w3.org/1999/xhtml"><![endif]--> | |
<!--[if gt IE 9]><!--> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" lang="en" class="no-js"> | |
<!--<![endif]--> | |
<!-- Mirrored from www.calemonattorney.com/ by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 10 Mar 2016 04:22:45 GMT --> | |
<head> |