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
INSERT INTO weather_recording(station_id, measurement_date, element, measured_value, measurement_flag, quality_flag, | |
source_flag, measurement_time) | |
SELECT 'US1TXDN0008' | |
, measurement_date | |
, element | |
, measured_value | |
, measurement_flag | |
, quality_flag | |
, source_flag | |
, measurement_time |
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
### Setup Import File and Permission Set | |
# Step 1. Export the RecordTypes | |
-> sfdx force:data:tree:export -q "SELECT ID, Name, DeveloperName, SobjectType FROM RecordType" -o data | |
Wrote 1 records to data/RecordType.json | |
# Here is what the export might look like | |
-> more data/RecordType.json | |
{ |
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 |
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 static com.google.common.base.Strings.isNullOrEmpty; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.springframework.core.MethodParameter; | |
import org.springframework.core.annotation.Order; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.bind.annotation.PathVariable; |
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
package springfox.test.contract.swagger; | |
import com.fasterxml.classmate.TypeResolver; | |
import io.vavr.collection.Map; | |
import io.vavr.collection.Set; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Component; | |
import springfox.documentation.schema.AlternateTypeRule; | |
import springfox.documentation.schema.AlternateTypeRuleConvention; | |
import springfox.documentation.schema.WildcardType; |
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
{ | |
"path":"/businesses/byTypes", | |
"description":"businessesByCategories", | |
"operations":[ | |
{ | |
"method":"GET", | |
"summary":"businessesByCategories", | |
"notes":"businessesByCategories", | |
"type":"array", | |
"items":{ |
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/zsh | |
commits=(`git rev-list HEAD --count`) | |
branch_name=$(git symbolic-ref -q HEAD) | |
branch_name=${branch_name##refs/heads/} | |
echo $branch_name | |
if [ $branch_name '==' 'demo' ]; then | |
for (( f = $commits - 1; f >= 0; f -= 1 )); do | |
git checkout demo~$f | |
read | |
done |