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
from math import cos, sin, pi | |
import c4d | |
from c4d import gui | |
VENUS_YEAR_DURATION = 224.7 | |
EARTH_YEAR_DURATION = 365.25 | |
VENUS_ORBIT_RADIUS = 108.2 | |
EARTH_ORBIT_RADIUS = 149.6 |
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 | |
class CheckoutWithPaypalContext extends MinkContext | |
{ | |
/** | |
* @When /^I choose to pay with PayPal$/ | |
*/ | |
public function iChooseToPayWithPayPal() | |
{ | |
$this->findAndWaitForElementToBeVisibleThenClick("//a[@id = 'paypal']"); |
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
$ composer create-project sylius/sylius shop-one | |
Installing sylius/sylius (v0.17.0) | |
- Installing sylius/sylius (v0.17.0) | |
Downloading: 100% | |
Created project in shop-one | |
Loading composer repositories with package information | |
Installing dependencies (including require-dev) from lock file | |
- Installing twig/twig (v1.23.1) | |
Downloading: 100% |
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
./plaform-inactive.sh delete |
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
var deleteBranches = function () { | |
return $("ul[ng-show='environment.active_trail']") | |
.first() | |
.find("li.disabled > div > a") | |
.map(function (i, b) { | |
return b.text; | |
}); | |
}; | |
var filterDeleteBranchesByPrefix = function (prefix) { |
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 ArchFizz\WhateverBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Helper\DebugFormatterHelper; | |
use Symfony\Component\Console\Helper\ProcessHelper; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; |
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
after "deploy", "deploy:cleanup" | |
after "deploy:update_code", "composer:install" | |
before "composer:install", "composer:copy_vendors" | |
after "composer:install", "phpunit:run_tests" | |
namespace :composer do | |
desc "Copy vendors from previous release" | |
task :copy_vendors, :except => { :no_release => true } do | |
run "if [ -d #{previous_release}/vendor ]; then cp -a #{previous_release}/vendor #{latest_release}/vendor; fi" | |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$feelunique-color-teal: #b3cac4; | |
$feelunique-color-cool-teal: #b3c9c6; | |
$feelunique-color-turquoise: #1abc9c; | |
$feelunique-color-blush-red: #d72245; | |
$feelunique-color-off-white: #f5f1f0; |
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 spec\FakeTranslator; | |
use PhpSpec\ObjectBehavior; | |
use Prophecy\Argument; | |
class GreekTranslatorSpec extends ObjectBehavior | |
{ | |
function it_is_a_translator() |
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 ArchFizz\Gpx; | |
use Doctrine\Common\Collections\ArrayCollection; | |
class Coordinate | |
{ | |
private $latitude; | |
private $longitude; |
NewerOlder