To produce a jar containing test sources and use it elsewhere in a Gradle multi-module project (component A depends on component B):
Create a new configuration in component A:
// components/A/build.gradle
configurations {
test-helpers
}
amend-ng () { | |
SHA=$1 | |
git commit --fixup $SHA && | |
GIT_EDITOR="cat" git rebase --autosquash --interactive $SHA^ | |
} |
-- Read all about this program in the official Elm guide: | |
-- https://guide.elm-lang.org/architecture/user_input/text_fields.html | |
import Html exposing (Html, Attribute, beginnerProgram, text, div, input) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onInput) | |
import List | |
import String | |
import Regex | |
import Result |
echo '{"logs": ["All the cars are really good"],"info": {"cars": [{"name": "another car","type": "big"},{"name": "my car","type": "small"},{"name":"sweet ride", "type":"small"}]}}' | jq '.info.cars |= map(select(.type == "small")) |
javascript:(function()%7Bvar elements %3D document.getElementsByClassName('js-toggle-file-notes')%3Bfor (i %3D 0%3B i < elements.length%3B i%2B%2B) %7B elements%5Bi%5D.click() %7D%7D)() |
package com.example; | |
import com.google.common.collect.*; | |
import org.junit.Test; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.stream.Collector; | |
import java.util.stream.Stream; |
type Shape = Diamond | Oval | Squiggle | |
type Number = One | Two | Three | |
type Color = Red | Green | Blue | |
type Attribute = Color | Shape | Number | |
type alias Model = { | |
shape: Shape, | |
number: Number, | |
color: Color |
To produce a jar containing test sources and use it elsewhere in a Gradle multi-module project (component A depends on component B):
Create a new configuration in component A:
// components/A/build.gradle
configurations {
test-helpers
}
#!/bin/bash | |
echo "-- New Migration" > "`dirname $0`/../src/main/resources/db/migrations/V`date +%s`__$1.sql" |
var pokemons = {}; // We'll store what we scrap here | |
var raiseToLevel100 = true; // These stats are for level 1, we'll take into account normal growth | |
// The first td is the pokemon number, the second contains the sprite url, etc | |
var statOrder = { | |
0: 'number', | |
1: 'imageLocation', | |
2: 'name', | |
3: 'hp', | |
4: 'attack', |