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
require 'pry' | |
class Weapon | |
WEAPONS = %w(rock paper scissors lizard spock) | |
attr_reader :name, :beats, :loses | |
def >(other) | |
@beats.include?(other.to_s) | |
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
require 'pry' | |
class Board | |
attr_accessor :square | |
def initialize | |
create_board | |
end | |
def create_board |
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
require 'pry' | |
module Hand | |
attr_accessor :hand | |
def initialize | |
@hand = [] | |
end | |
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
const AWS = require('aws-sdk'); | |
const bodyParser = require('body-parser'); | |
const config = require('./config.json'); | |
const cors = require('cors'); | |
const express = require('express'); | |
const fs = require('fs-extra'); | |
const gm = require('gm'); | |
const Promise = require('promise'); | |
const uuidv1 = require('uuid/v1'); |
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 Aiir\SocialPublisher; | |
class FacebookPost extends Post | |
{ | |
public function publish() | |
{ | |
// Specific implementation to publish post to Facebook | |
} |
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 Aiir\Apps\SocialPublisher\Models; | |
class Group | |
{ | |
private $id; | |
private $clientId; | |
private $name; |
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
sudo yum groupinstall 'Development Tools' | |
sudo yum install nginx -y | |
sudo yum install php71 -y | |
sudo yum install php71-fpm -y | |
sudo nano /etc/nginx/conf.d/default.conf | |
sudo nano /etc/php-fpm.d/www.conf | |
sudo chkconfig nginx on | |
sudo chkconfig php-fpm-71 on | |
sudo service nginx start | |
sudo service php-fpm start |
OlderNewer