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
"use strict" | |
@Application = angular.module("numberAbbrevFilter", []) | |
@Application.filter "numberAbbrev", -> | |
(number) -> | |
if number >= 10000000 | |
return (number / 1000000).toFixed(0) + 'M' |
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
<?php | |
namespace Drupal\my_page\PageControllers; | |
class MyPage implements \Drupal\cool\Controllers\PageController { | |
public static function accessCallback() { | |
return TRUE; | |
} |
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
api = 2 | |
core = 7.x | |
; Include the definition of how to build Drupal core directly, including patches. | |
includes[] = "drupal-org-core.make" | |
; Download the Commons install profile and recursively build all its dependencies. | |
projects[taz][type] = "profile" | |
projects[taz][download][type] = "git" | |
projects[taz][download][url] = "https://github.com/alexweber/Taz.git" |
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
pagseguro_library_load(); | |
$PagSeguroAPI = new PagSeguroAPI(); | |
$payment_request = $PagSeguroAPI->createPaymentRequestObject(); | |
$payment_request->setCurrency("BRL"); | |
$payment_request->setReference($order_reference); | |
$payment_request->setSender($customer_name, $order->mail); | |
$payment_request->setRedirectUrl("http://example.com/pagseguro/return"); | |
// Shipping rate is handled by Drupal |
NewerOlder