Skip to content

Instantly share code, notes, and snippets.

View leoallen85's full-sized avatar

Leo Allen leoallen85

  • Makers Academy
  • London, UK
View GitHub Profile
echo "Updating local server...";
#git pull
git status
echo "Please enter you message";
read -e MESSAGE;
if [$MESSAGE != ''];
echo "Committing all files...";
git commit -a -m "$MESSAGE";
fi;
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<payToBankAccount xmlns="http://merchantapi.envoyservices.com">
<auth>
<username>string</username>
<password>string</password>
</auth>
$url = 'https://testapi.envoyservices.com/MerchantAPI/MerchantAPI.asmx?wsdl';
// Set up the client
$soap = new SoapClient($url, array('trace' => TRUE));
$fields = array
(
'auth' => array
(
'username' => 'hjk',
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://merchantapi.envoyservices.com">
<SOAP-ENV:Body>
<ns1:payToBankAccountV2>
<ns1:auth>
<ns1:username>ba</ns1:username>
</ns1:auth>
<ns1:requestReference>jghj</ns1:requestReference>
</ns1:payToBankAccountV2>
</SOAP-ENV:Body>
<!doctype html>
<html>
<head>
<title>JQuery Cycle Plugin - Example Slideshow</title>
<style type="text/css">
.slideshow { height: 232px; width: 232px; margin: auto }
.slideshow img { padding: 15px; border: 1px solid #ccc; background-color: #eee; }
</style>
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
/* resets */
body, *{
font-family:Tahoma, Arial, Sans;
font-size:13px;
line-height:18px;
margin:0px;
padding:0px;
}
<script type="text/javascript" src="/media/js/jwplayer.js"></script>
<script type="text/javascript">
jwplayer("flash-video").setup({
flashplayer: "/media/video/player.swf",
streamer: "{{cloudfront_url}}",
file : "{{sponsor.video}}",
provider: "rtmp",
image: "{{placeholder}}",
height: 250,
width: 320,
public static function setUpBeforeClass()
{
Mgo::connect()->gig->drop();
Mgo::connect()->profile->drop();
// Add organiser/artist
self::$organiser = new Model_Profile;
self::$organiser->type = Model_Profile::TYPE_ORGANISER;
self::$organiser->save();
class Person
# attr_reader :height
def initialize(height)
@height = height
end
def speak
puts "My height is #{@height}"
#!/usr/bin/env ruby
class Manager
def pick_a_team(squad)
team = Team.new
# get the best players for every position from the squad
# and add them to the team
# for every position (goalkeeper etc)
# get the best player(s) from the squad