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
package shorturl | |
func NewResolveService(r RecordRepository) *ResolveService { | |
return &ResolveService{ | |
repository: r, | |
} | |
} | |
type ResolveService struct { | |
repository RecordRepository |
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
package shorturl_test | |
import ( | |
"fmt" | |
"github.com/omissis/ristretto/internal/domain/shorturl" | |
"github.com/omissis/ristretto/internal/test/mock" | |
"reflect" | |
"testing" | |
) |
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 PHPSTORM_META { | |
override(\PHPUnit\Framework\TestCase::prophesize(0), | |
map([ | |
'' => '@', | |
]) | |
); | |
} |
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 | |
/** | |
* @file | |
* Contains \Drupal\rules\DataMatcher\DataMatcherInterface. | |
*/ | |
namespace Drupal\rules\DataMatcher; | |
/** |
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
brew config | |
========== | |
HOMEBREW_VERSION: 0.9.5 | |
ORIGIN: https://github.com/Homebrew/homebrew.git | |
HEAD: 35e7693ce4541d7ade641096701e9e2ca8f4cc31 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: quad-core 64-bit arrandale | |
OS X: 10.9.4-x86_64 | |
Xcode: 5.1.1 |
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
(function ($, _, MyApp) { | |
"use strict"; | |
$.ns("MyApp.Notification"); | |
MyApp.Notification.FlashMessages = (function () { | |
var defaultOptions = { | |
cookieName: 'flashes', | |
templateSelector: '#flash-message-template', | |
containerSelector: '#flash-messages' |
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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |