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
| import MyObject from '../page-objects/my-object'; | |
| test('my arbitrary test', function(assert) { | |
| new MyObject(assert) | |
| .clickSomeNav('Projects') | |
| .assertCurrentRoute('projects.index') | |
| .clickNewProjectButton() | |
| .assertCurrentRoute('projects.new') | |
| .fillInTitle('My new project') | |
| .fillInDescription('desc') |
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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| body: '<a href="/foo">foo</a> <a href="http://google.com">Google</a>' | |
| }); |
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
| import Resolver from 'ember/resolver'; | |
| export default Resolver.extend({ | |
| moduleNameLookupPatterns: Ember.computed(function(){ | |
| var superValue = this._super.apply(this, arguments); | |
| superValue.unshiftObject(this.somethingThatIsAwesome); | |
| return superValue; | |
| }), |
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
| defp _check(%{message: message, sha: sha}, config_file) do | |
| tag_regex = ~r/^\[(?<tag>\w+)( (?<subtag>\w+))?]/ | |
| tags = config_file["tags"] | |
| case Regex.named_captures(tag_regex, message) do | |
| %{"tag" => tag, "subtag" => subtag} -> | |
| if tags == nil do | |
| %{status: :pass, sha: sha, message: message} | |
| else | |
| valid_tags = tags | |
| |> Map.keys |
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
| #!/bin/bash | |
| # Encode a WAV to a finalized podcast MP3 with metadata, in the current directory | |
| # Requires lame | |
| # With Homebrew on Mac OS X: brew install lame | |
| SHOW_AUTHOR="Dan McClain & Robert Jackson" | |
| EPISODE_NUMBER=12 | |
| EPISODE_TITLE="Ember WeekendLand" |
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
| test "Creating a session with a GitHub code" do | |
| use_cassette "successful_sign_in" do | |
| response = conn(:post, "/api/v1/session", %{ "authorizationCode" => "dan", "format" => "json", "provider" => "github-oauth2" }) | |
| |> DoorApi.Endpoint.call([]) | |
| assert response.status == 201 | |
| assert Voorhees.matches_schema?(response.resp_body, [user: [:username, :id]]) | |
| assert Voorhees.matches_payload?(response.resp_body, %{user: %{ username: "danmcclain" } }) | |
| current_session_request = conn(:get, "/api/v1/session") |
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
| import Ember from 'ember'; | |
| import EmberValidations from 'ember-validations'; | |
| const { Controller, computed } = Ember; | |
| const { alias } = computed; | |
| export default Controller.extend(EmberValidations, { | |
| contact: alias('model'), | |
| validations: { | |
| 'contact.email': { |
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
| ➜ elixir git:(master) make test | |
| ==> elixir (compile) | |
| ==> elixir (eunit) | |
| All 198 tests passed. | |
| ==> elixir (exunit) | |
| .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... |
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
| ➜ ~ dpkg -s elixir | |
| Package: elixir | |
| Status: install ok installed | |
| Priority: optional | |
| Section: contrib | |
| Installed-Size: 3798 | |
| Maintainer: Erlang Solutions <[email protected]> | |
| Architecture: amd64 | |
| Version: 1.0.3-2 | |
| Depends: erlang-base (>= 1:17.0) | erlang-base-hipe (>= 1:17.0) | esl-erlang (>= 1:17.0), erlang-crypto (>= 1:17.0) | esl-erlang (>= 1:17.0), erlang-inets (>= 1:17.0) | esl-erlang (>= 1:17.0), erlang-ssl (>= 1:17.0) | esl-erlang (>= 1:17.0), erlang-syntax-tools (>= 1:17.0) | esl-erlang (>= 1:17.0) |
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
| description "argyle" | |
| setuid argyle | |
| setgid www-data | |
| start on runlevel [2345] | |
| stop on runlevel [016] | |
| env HOME=/home/argyle | |
| export HOME |