Skip to content

Instantly share code, notes, and snippets.

create table report_witnesses_statements
(
id UNIQUEIDENTIFIER DEFAULT newid(),
created_at timestamp,
name varchar(255),
report_witness_id UNIQUEIDENTIFIER,
size TINYINT,
CONSTRAINT PK_report_witnesses_statements_id PRIMARY KEY CLUSTERED (id),
CONSTRAINT FK_report_witnesses_statements_report_witness FOREIGN KEY (report_witness_id)
@kclay
kclay / bootstrap+5.1.0.patch
Created January 26, 2022 23:26
bootstrap+5.1.0.patch
diff --git a/node_modules/bootstrap/scss/mixins/_grid.scss b/node_modules/bootstrap/scss/mixins/_grid.scss
index 59cc563..353a5a4 100644
--- a/node_modules/bootstrap/scss/mixins/_grid.scss
+++ b/node_modules/bootstrap/scss/mixins/_grid.scss
@@ -7,9 +7,9 @@
--#{$variable-prefix}gutter-y: 0;
display: flex;
flex-wrap: wrap;
- margin-top: calc(var(--#{$variable-prefix}gutter-y) * -1); // stylelint-disable-line function-disallowed-list
- margin-right: calc(var(--#{$variable-prefix}gutter-x) * -.5); // stylelint-disable-line function-disallowed-list
class ToFunctional[T, A >: Var](seq: Sequence[T]) {
def concatMap[B <: Typed, Inner](f: A => B)(implicit cm: CanMap[T, B, Inner]) = ConcatMap[Inner](seq.underlying, FuncWrap(f))
def map[B <: Typed, Inner](f: A => B)(implicit cm: CanMap[T, B, Inner]) = RMap[Inner](seq.underlying, FuncWrap(f))
def reduce[P](f: (A, A) =>Produce0[P])(implicit =:!=[T, ChangeCursor[_]] = Reduce[T,P](seq.underlying, f)
}
@kclay
kclay / gist:8744419
Created January 31, 2014 22:18
@get arbitrary parameters
public class ExtendedRestTemplate extends RestTemplate{
public SafeRestTemplate( RestTemplate from) {
setErrorHandler(fromTemplate.getErrorHandler());
setMessageConverters(fromTemplate.getMessageConverters());
setInterceptors(fromTemplate.getInterceptors());
setRequestFactory(fromTemplate.getRequestFactory());
}
@Override