bundle exec rake deploy:setup
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
desc "Upgrade Jasmine specs to 2.0 syntax" | |
namespace :jasmine do | |
task :upgrade_specs do | |
Dir.glob('spec/javascripts/units/**/*_spec.js.coffee') do |filename| | |
specs = File.read(filename) | |
specs = specs.gsub('.andReturn', '.and.returnValue') | |
specs = specs.gsub('.andCallFake', '.and.callFake') | |
specs = specs.gsub('.andCallThrough', '.and.callThrough') |
Find javascript files that are changed after creation of the new branch and run script placed in requireUndefined.js
.
It uses ESLint programmatic API.
Find all javascripts inside app/components, filter by the lack of module.exports
and apply jscodeshift transform placed in addModuleExports.js
.
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
{"rss":54697984,"heapTotal":36393760,"heapUsed":21949752} | |
{"rss":620531712,"heapTotal":65287968,"heapUsed":29065104} | |
{"rss":646225920,"heapTotal":64256032,"heapUsed":28251352} | |
{"rss":647573504,"heapTotal":64256032,"heapUsed":28290648} | |
{"rss":650907648,"heapTotal":64256032,"heapUsed":28326320} | |
{"rss":654422016,"heapTotal":64256032,"heapUsed":28348720} | |
{"rss":657559552,"heapTotal":64256032,"heapUsed":28380736} | |
{"rss":661073920,"heapTotal":64256032,"heapUsed":28401936} | |
{"rss":664236032,"heapTotal":64256032,"heapUsed":28430416} | |
{"rss":667480064,"heapTotal":64256032,"heapUsed":28447160} |
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
# Alternative: https://github.com/agileanimal/grape-entity-matchers | |
RSpec::Matchers.define :represent do |expected| | |
match do |actual| | |
exposes? && aliases? && has_presenter? && has_runtime_exposure? | |
end | |
chain :as do |as_alias| | |
@as_alias = as_alias | |
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
.App { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
align-content: center; | |
} |
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
-- https://ellie-app.com/3P9hcDhdsc5a1 | |
module Main exposing (Model, Msg(..), init, main, update, view, viewConverter) | |
import Browser | |
import Html exposing (Attribute, Html, div, input, span, text) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onInput) | |
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
[tool.poetry.dependencies] | |
python = "^3.8" | |
google-search-results = "^2.0.0" | |
[build-system] | |
requires = ["poetry>=0.12"] | |
build-backend = "poetry.masonry.api" |
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
# https://pypi.org/project/google-search-results | |
from serpapi import GoogleSearch | |
import os | |
params = { | |
"engine": "google", | |
"q": "Coffee", | |
"tbm": "shop", | |
"api_key": os.getenv("API_KEY") | |
} |
OlderNewer