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
$bytes = openssl_random_pseudo_bytes(16); | |
$uuid = bin2hex($bytes); |
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
fluffPhraseList = ['actually', 'in-all-actuality', 'how about that', 'however then', 'however because of that', 'and also', 'and/or', 'as to whether', 'basically', 'essentially', 'technically', 'totally', 'for sure', 'being that ', 'being as', 'on account of that', 'on account of ', 'on account of this', 'point in time', 'that time', 'this time', 'quite', 'really', 'so as to', 'sort of', 'try and', 'very', 'well then', 'even then', 'so then', 'really then', 'although then', 'however then', 'also then', 'then also', 'as then', 'if then', 'therefore then', 'overall then', 'and though', 'and because of this', 'and because of that', 'and furthermore', 'and however', 'and this is because', 'and overall', 'and now', 'because ', 'because of this', 'because of that', 'because this is', 'this is because', 'because that is', 'because i am', 'because you are', 'furthermore because of that', 'because furthermore', 'overall because of that', 'because overall', 'because now', 'because that', 'that is because', 'because how |
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
fluffPhraseList = ['actually', 'in-all-actuality', 'how about that', 'however then', 'however because of that', 'and also', 'and/or', 'as to whether', 'basically', 'essentially', 'technically', 'totally', 'for sure', 'being that ', 'being as', 'on account of that', 'on account of ', 'on account of this', 'point in time', 'that time', 'this time', 'quite', 'really', 'so as to', 'sort of', 'try and', 'very', 'well then', 'even then', 'so then', 'really then', 'although then', 'however then', 'also then', 'then also', 'as then', 'if then', 'therefore then', 'overall then', 'and though', 'and because of this', 'and because of that', 'and furthermore', 'and however', 'and this is because', 'and overall', 'and now', 'because ', 'because of this', 'because of that', 'because this is', 'this is because', 'because that is', 'because i am', 'because you are', 'furthermore because of that', 'because furthermore', 'overall because of that', 'because overall', 'because now', 'because that', 'that is because', 'because how |
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
@mixin background_image($url, $px) { | |
background: url($url) no-repeat scroll $px 50% transparent; | |
} |
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
bundle exec rspec | |
[Report a Problem]0 min 9 sec | |
ActiveRecord::SchemaMigration Load (0.6ms) [1mSELECT "schema_migrations".* FROM "schema_migrations" | |
TodosController | |
POST create | |
with valid params | |
[1m (2.2ms) BEGIN | |
Processing by TodosController#create as HTML | |
Parameters: {"todo"=>{"title"=>"MyString"}} |
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
/** | |
* @Route("/bitcoin/{token}", name="api_bitcoin_callback") | |
* @Template | |
*/ | |
public function bitcoinCallbackAction($token, Request $request) { | |
$bitcoinSVC = $this->get('main_user.bitcoinservice'); | |
if (!$uid = $bitcoinSVC->validateCallback($token,$request->get('destination_address'))) | |
return false; |
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
namespace Main\TradeBundle\Controller; | |
use JMS\DiExtraBundle\Annotation as DI; | |
use JMS\Payment\CoreBundle\Entity\Payment; | |
use JMS\Payment\CoreBundle\PluginController\Result; | |
use JMS\Payment\CoreBundle\Plugin\Exception\ActionRequiredException; | |
use JMS\Payment\CoreBundle\Plugin\Exception\Action\VisitUrl; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
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
/** | |
* @Route("/", name="trade_index") | |
* @Route("/direct", name="trade_index_direct") | |
* @Route("/escrow", name="trade_index_escrow") | |
* @Template() | |
*/ | |
public function indexAction($_route) | |
{ | |
$sortArray = array( | |
'completedByUser' => null, |
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
$repository = $this->getDoctrine() | |
->getRepository('MainUserBundle:Feedback') | |
; | |
$query = $repository->createQueryBuilder('f') | |
->where('f.trade = :trade') | |
->andWhere('f.user = :user OR f.fromUser = :fromuser') | |
->setParameter('trade', $trade) | |
->setParameter('user', $this->getUser()) | |
->setParameter('fromuser', $this->getUser()) | |
->getQuery() |
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 TransactionAdmin(admin.ModelAdmin): | |
fields = ['date', 'bitcoin_address', 'payment_method', 'amount', 'email_address', 'completed'] | |
list_display = ['id', 'date', 'bitcoin_address', 'payment_method', 'amount', 'email_address', 'completed'] | |
readonly_fields = ['id', 'date'] | |
search_fields = ['^email_address', '^id', '^payment_method'] | |
list_filter = ['payment_method', 'completed'] | |
list_display_links = ['date'] | |
inlines = [TransactionDetailAdmin] | |
actions = ['really_delete_selected'] |
NewerOlder