This file contains hidden or 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
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; |
This file contains hidden or 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
<?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> |
This file contains hidden or 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
$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', |
This file contains hidden or 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
<?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> |
This file contains hidden or 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> | |
<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> |
This file contains hidden or 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
/* resets */ | |
body, *{ | |
font-family:Tahoma, Arial, Sans; | |
font-size:13px; | |
line-height:18px; | |
margin:0px; | |
padding:0px; | |
} |
This file contains hidden or 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
<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, |
This file contains hidden or 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
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(); | |
This file contains hidden or 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
class Person | |
# attr_reader :height | |
def initialize(height) | |
@height = height | |
end | |
def speak | |
puts "My height is #{@height}" |
This file contains hidden or 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
#!/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 |
OlderNewer