This file contains 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
table> | |
<tr> | |
<td> | |
This is a cell containing code. | |
<code>uno | |
public void Foo {}</code> | |
<code>uxl | |
<Scene /></code> | |
</td> |
This file contains 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
param ( | |
[Parameter(Position = 0, Mandatory=$True)] | |
[string]$ProjectName, | |
[Parameter(Position = 1, Mandatory=$True)] | |
[string]$SiteName, | |
[Parameter(Position = 2, Mandatory=$True)] | |
[string]$Environment | |
) |
This file contains 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
angular.module("app").controller("AppCtrl", function($scope, $http, $window, configuration, currentUserFactory, authService) { | |
$scope.config = configuration; | |
$scope.$on("event:auth-loginRequired", function() { | |
$http.post("/auth/refresh").then(function(response) { | |
authService.loginConfirmed(); | |
}, function(response) { | |
$window.location.href = "/auth/logged_out"; | |
}); | |
}); | |
}); |
This file contains 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 ChildModelOne extends ParentModel { | |
} |
This file contains 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 BarNode < Node | |
field :bar_test | |
end |
This file contains 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 TestModule | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods | |
def foo | |
attr_accessor :test | |
end | |
end |
This file contains 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
Feature: Administration interface | |
So that I can administer my site | |
As an administrator | |
I want to make sure I can access the admin interface if I am authenticated | |
Scenario: Redirect me to the login page if I am not authenticated | |
Given I am not authenticated as an admin | |
When I go to the admin dashboard | |
Then I should see the form "admin_new" |
This file contains 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 Organization | |
include Mongoid::Document | |
field :name | |
referenced_in :user | |
end | |
class User | |
include Mongoid::Document | |
field :username | |
references_many :organizations |
This file contains 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
[playlist] | |
File1=http://www.p4.no/lyttesenter/p4_norge.m3u | |
Title1=P4 Radio Hele Norge | |
Length1=-1 | |
NumberOfEntries=1 | |
Version=2 |
This file contains 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
>> Organization.order("name asc").limit(5).includes([ :web_presence, :billing_address, :shipping_address, :contact_info ]) | |
Organization Load (0.4ms) SELECT "organizations".* FROM "organizations" ORDER BY name asc LIMIT 5 | |
ShippingAddress Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE ("addresses"."type" = 'ShippingAddress') AND ("addresses".addressable_id = 51 AND "addresses".addressable_type = 'Organization') LIMIT 1 | |
BillingAddress Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE ("addresses"."type" = 'BillingAddress') AND ("addresses".addressable_id = 51 AND "addresses".addressable_type = 'Organization') LIMIT 1 | |
ContactInfo Load (0.2ms) SELECT "contact_infos".* FROM "contact_infos" WHERE ("contact_infos".contactable_id = 51 AND "contact_infos".contactable_type = 'Organization') LIMIT 1 | |
WebPresence Load (0.3ms) SELECT "web_presences".* FROM "web_presences" WHERE ("web_presences".presenceable_id = 51 AND "web_presences".presenceable_type = 'Organization') LIMIT 1 | |
ShippingAddr |
OlderNewer