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 SkipSpaceClassesWithoutIdHibernateSpaceDataSource(@BeanProperty val sessionFactory:SessionFactory) extends SpaceDataSource { | |
protected final val logger: Logger = LoggerFactory.getLogger(getClass) | |
import scala.collection.JavaConverters._ | |
lazy val managedEntries = sessionFactory.getAllClassMetadata.asScala.keySet | |
lazy val initialLoadEntries = { |
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
object SchemaFor extends LowPrioritySchemaFor{ | |
implicit object ByteSchemaFor extends SchemaFor[Byte] { | |
private val schema = SchemaBuilder.builder().intType() | |
def apply(): org.apache.avro.Schema = schema | |
} | |
implicit object ShortSchemaFor extends SchemaFor[Short] { | |
private val schema = SchemaBuilder.builder().intType() | |
def apply(): org.apache.avro.Schema = schema |
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 SimpleJoin(streamsConfiguration:Map[String,AnyRef]){ | |
private val builder = new KStreamBuilder | |
private val myStream = builder.stream[Integer,MyClass](Serdes.Integer(),myClassSerde, "mytopic") | |
private val myTable: KTable[Integer, MyClass] = myStream.groupBy(new KeyValueMapper[Integer,MyClass,Integer] { | |
override def apply(key : Integer, |
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
1 | |
2 | |
3 | |
4 | |
5 |
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
import {ChartData} from "chart.js"; | |
import {getDateOfISOWeek, getDateStringOfISOWeek, getWeekNumber} from "../../../commons/src"; | |
import {addMonths, addWeeks, differenceInCalendarMonths, differenceInCalendarWeeks, isPast, isFuture, addDays} from 'date-fns'; | |
export interface IMonthlyChartData { | |
Invoicer__c?: string; | |
Reviewed_Agreed_Payment_Date__c?: string; | |
Agreed_Payment_Date__c?: string; | |
year?: number; | |
month?: number; |
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
import {ChartData} from "chart.js"; | |
import {getDateOfISOWeek, getDateStringOfISOWeek, getWeekNumber} from "../../../commons/src"; | |
import {addMonths, addWeeks, differenceInCalendarMonths, differenceInCalendarWeeks, isPast, isFuture, addDays} from 'date-fns'; | |
import {range} from 'lodash'; | |
export interface IAdvanceSummaryData{ | |
Invoicer__c?: string; | |
paidBackOnTime: number; | |
paidBackLate: number; |
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
import org.camunda.bpm.engine.ProcessEngine; | |
import org.camunda.bpm.engine.ProcessEngineConfiguration; | |
import org.camunda.bpm.engine.externaltask.LockedExternalTask; | |
import org.camunda.bpm.engine.runtime.ProcessInstance; | |
import org.camunda.bpm.model.bpmn.Bpmn; | |
import org.camunda.bpm.model.bpmn.BpmnModelInstance; | |
import java.util.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
Account.AnnualRevenue | Age | Role | Likely_Member__c | |
---|---|---|---|---|
10000 | 20 | CEO | True | |
100000 | 45 | CFO | False |
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
metadataElements = [{ | |
name: 'CGS Score', | |
metadataType : 'Custom Field', | |
parentObject : 'Account' // can be undefined | |
}, | |
{ | |
name: 'Rating Value', | |
metadataType : 'Custom Field', | |
parentObject : 'Account' // can be undefined |
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
Package: regexcite | |
Title: Make Regular Expressions More Exciting | |
Version: 0.0.0.9000 | |
Authors@R: | |
person("Edmondo", "Porcu", , "edmondo.porcu@gmail.com", role = c("aut", "cre"), | |
comment = c(ORCID = "YOUR-ORCID-ID")) | |
Description: Convenience functions to make some common tasks with string | |
manipulation and regular expressions a bit easier. | |
License: MIT + file LICENSE | |
Encoding: UTF-8 |
OlderNewer