Skip to content

Instantly share code, notes, and snippets.

View adamelso's full-sized avatar
🚘

Adam Elsodaney adamelso

🚘
View GitHub Profile
@adamelso
adamelso / composer_create_project_sylius.out
Last active April 5, 2016 09:51
Sylius version 0.17 dependencies.
$ 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%
@adamelso
adamelso / CheckoutWithPaypalContext.php
Created May 18, 2016 10:06
PayPal Express Checkout - Behat Mink UI test with Selenium 2 Driver
<?php
class CheckoutWithPaypalContext extends MinkContext
{
/**
* @When /^I choose to pay with PayPal$/
*/
public function iChooseToPayWithPayPal()
{
$this->findAndWaitForElementToBeVisibleThenClick("//a[@id = 'paypal']");
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