I hereby claim:
- I am kenrick on github.
- I am kenrick (https://keybase.io/kenrick) on keybase.
- I have a public key ASA86zV09MpQ2X50HkN8g3wLKDtfxRNWLZqfNxngJ52TFwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
$code = base64_encode( json_encode ( array(1, 2, 3) )); | |
$array = json_decode( base64_decode ( $code )); | |
?> |
ini_set('display_errors', 1); | |
ini_set('log_errors', 1); | |
ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); | |
error_reporting(E_ALL); |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Rewrite to index.php"> | |
<match url="index.php|robots.txt|images|test.php" /> | |
<action type="None" /> | |
</rule> | |
<rule name="Rewrite CI Index"> |
#!/usr/bin/env bash | |
yum -y update | |
yum -y install httpd | |
yum -y install php | |
yum -y install mysql | |
yum -y install mysql-server | |
yum -y install php-mysql | |
#Turn on services on restart | |
/sbin/chkconfig httpd on |
#!/usr/bin/env bash | |
sudo apt-get -y update | |
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
tar -xvzf ruby-1.9.3-p125.tar.gz | |
cd ruby-1.9.3-p125/ | |
./configure --prefix=/usr/local | |
make | |
make install |
describe "Articles" do | |
it "creates a new article" do | |
article = create(:article) | |
visit new_article_path | |
fill_in "Name", :with => article.name | |
fill_in "Content", :with => article.content | |
click_button "Create Article" | |
page.should have_content("Article was successfully created.") | |
end | |
end |
class Team < ActiveRecord::Base | |
# Friendly ID | |
extend FriendlyId | |
friendly_id :name | |
# Rolify | |
resourcify | |
# Associations | |
belongs_to :user |
require 'perseus' | |
class TeamRankedStatJob < ActiveJob::Base | |
attr_reader :team | |
queue_as :default | |
def perform(team) #rename team here | |
@team = team | |
## Get ready | |
client = Perseus::Client.new(Settings.rito.api_key, region: team.server) |
SELECT | |
employee.name | |
FROM | |
`Employees` employee, | |
`Employees` boss | |
WHERE | |
employee.boss_id = boss.id | |
AND | |
employee.salary > boss.salary; |