- https://developers.google.com/web/tools/lighthouse/
- https://github.com/cpojer/js-codemod
- https://github.com/facebook/jest
yarn create react-app
- https://github.com/cpojer/js-codemod
- jest-codemods
- https://github.com/facebook/jscodeshift
- https://www.npmjs.com/package/jest-codemods
- https://github.com/facebook/relay
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
public class Filewalker { | |
public void walk( String path ) { | |
File root = new File( path ); | |
File[] list = root.listFiles(); | |
if (list == null) return; | |
for ( File f : list ) { |
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 mail_provider_warmup | |
DAILY_INCREASE_RATE = 1.25 # 25% | |
INITIAL_MAIL_VOLUME = 100000 | |
FINAL_MAIL_TARGET = 3000000.0 | |
WARMUP_START_DATE = Date.new(2014,7,24) | |
PROVIDER_FROM = :sendgrid | |
PROVIDER_TO = :mailgun | |
#selected_provider = self.class.select_provider(rand) | |
def self.select_provider(random) |
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 ProjectComment < ActiveRecord::Base | |
include SlackNotifiable | |
belongs_to :user | |
belongs_to :project | |
has_one :organization, through: :project | |
def slack_message | |
"#{user.name} has commented on #{project.title}: #{description}" | |
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
Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! Hello, world! He |