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
| type ProductBrandingService interface { | |
| CreateForCompany(*ProductBranding) error | |
| } | |
| func NewProductBrandingService() (ProductBrandingService, error) { | |
| return pgProductBrandingService{}, nil | |
| } | |
| type pgProductBrandingService struct{} |
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
| type pgProductBrandingService struct{} | |
| func (s pgProductBrandingService) CreateForCompany(productBranding ProductBranding) error { | |
| return nil | |
| } | |
| foo := pgProductBrandingService{} | |
| foo.CreateForCompany(ProductBranding{}) |
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
| $scope.sortByTags = function(model) { | |
| let score = 10000; | |
| if (model.tags.includes('pc')) {score -= 1000} | |
| if (model.tags.includes('monk')) {score -= 900} | |
| if (model.tags.includes('ranger')) {score -= 800} | |
| if (model.tags.includes('rogue')) {score -= 700} | |
| if (model.tags.includes('fighter')) {score -= 600} | |
| if (model.tags.includes('barbarian')) {score -= 500} | |
| if (model.tags.includes('wizard')) {score -= 400} | |
| if (model.tags.includes('sorcerer')) {score -= 300} |
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
| Verifying that +gabriel403 is my blockchain ID. https://onename.com/gabriel403 |
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
| digitalocean: Setting up grub2-common (2.02~beta2-22ubuntu1.1) ... | |
| digitalocean: Setting up grub-pc-bin (2.02~beta2-22ubuntu1.1) ... | |
| digitalocean: Setting up grub-pc (2.02~beta2-22ubuntu1.1) ... | |
| digitalocean: debconf: unable to initialize frontend: Dialog | |
| digitalocean: debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
| digitalocean: debconf: falling back to frontend: Readline | |
| digitalocean: Configuring grub-pc | |
| digitalocean: ------------------- | |
| digitalocean: | |
| digitalocean: A new version (/tmp/grub.8plbjIAjq1) of configuration file /etc/default/grub is |
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
| docker run --name fred-db -e MYSQL_USER=phinxdev -e MYSQL_PASSWORD=phinxdev -e MYSQL_DATABASE=phinxdev -e MYSQL_ROOT_PASSWORD=phinxdevroot -d mariadb | |
| docker run -it --link fred-db:mysql --rm mariadb sh -c 'exec echo "$MYSQL_PORT_3306_TCP_ADDR"' | |
| docker run -it --link fred-db:mysql -v $(pwd):/app diegomarangoni/hhvm:cli /app/vendor/bin/phinx migrate -e development -c /app/phinx.yml |
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
| if not trail.stage_position? | |
| trail.stage_position = 0 | |
| for history in trail.history | |
| trail.stage_position = history.text.position if trail.stage_position < history.text.position |
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
| module.exports = function(config){ | |
| config.set({ | |
| basePath : '../', | |
| files : [ | |
| 'bower_components/angular/angular.js', | |
| 'bower_components/angular-cookies/angular-cookies.js', | |
| 'bower_components/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js', | |
| 'bower_components/angular-modal-service/dst/angular-modal-service.js', |
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
| Content-Type:application/json;charset=UTF-8 | |
| {"id":null,"stage":"initial","updated_at":"Tue, 19 May 2015 14:23:50 GMT","created_at":"Tue, 19 May 2015 14:23:50 GMT","emailText":"initial email","emailStage":"initial"} | |
| $app->map(['POST'], '/trails', function ($request, $response, $args) { | |
| error_log(var_export($args, true)); | |
| error_log(var_export($request->getParsedBody(), true)); | |
| // $trail = Trail::create($request->getParsedBody()); | |
| // $response->write($trail->toJson()); |
NewerOlder