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 com.systema.experiments | |
import ai.timefold.solver.core.api.domain.entity.PlanningEntity | |
import ai.timefold.solver.core.api.domain.lookup.PlanningId | |
import ai.timefold.solver.core.api.domain.solution.PlanningEntityCollectionProperty | |
import ai.timefold.solver.core.api.domain.solution.PlanningScore | |
import ai.timefold.solver.core.api.domain.solution.PlanningSolution | |
import ai.timefold.solver.core.api.domain.valuerange.ValueRangeProvider | |
import ai.timefold.solver.core.api.domain.variable.* | |
import ai.timefold.solver.core.api.score.buildin.hardmediumsoft.HardMediumSoftScore |
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 ai.timefold.solver.core.api.domain.entity.PlanningEntity | |
import ai.timefold.solver.core.api.domain.lookup.PlanningId | |
import ai.timefold.solver.core.api.domain.solution.PlanningEntityCollectionProperty | |
import ai.timefold.solver.core.api.domain.solution.PlanningScore | |
import ai.timefold.solver.core.api.domain.solution.PlanningSolution | |
import ai.timefold.solver.core.api.domain.valuerange.ValueRangeProvider | |
import ai.timefold.solver.core.api.domain.variable.* | |
import ai.timefold.solver.core.api.score.buildin.hardmediumsoft.HardMediumSoftScore | |
import ai.timefold.solver.core.api.score.director.ScoreDirector |
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
// Code generated by moshi-kotlin-codegen. Do not edit. | |
@file:Suppress("DEPRECATION", "unused", "ClassName", "REDUNDANT_PROJECTION", | |
"RedundantExplicitType", "LocalVariableName", "RedundantVisibilityModifier", | |
"PLATFORM_CLASS_MAPPED_TO_KOTLIN") | |
package org.kalasim.scratch | |
import com.squareup.moshi.JsonAdapter | |
import com.squareup.moshi.JsonReader | |
import com.squareup.moshi.JsonWriter |
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 Product 1 Pa wafer 7.28571 25 | |
2 Product 2 Pb wafer 4.28571 25 | |
3 Product 3 test wafer 0.42 25 |
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
pacman::p_load(zeallot) | |
load_multiple <- function (rdataFile) | |
{ | |
load(rdataFile, ex <- new.env()) | |
mget(objects(ex, sorted = T), envir = ex) | |
} | |
foo = 1 | |
bar = 2 |
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
CREATE STREAM ratings (title VARCHAR, release_year INT, rating DOUBLE, timestamp VARCHAR) | |
WITH (kafka_topic='ratings', | |
key='title', | |
timestamp='timestamp', | |
timestamp_format='yyyy-MM-dd HH:mm:ss', | |
partitions=1, | |
value_format='avro'); | |
INSERT INTO ratings (title, release_year, rating, timestamp) VALUES ('Die Hard', 1998, 8.2, '2019-07-09 01:00:00'); |
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
require(dplyr) | |
require(ggplot2) | |
# make sure that purrr package is installed to use purrr::set_names | |
# aggregate data | |
df = mpg %>% | |
group_by(year, manufacturer) %>% | |
summarize(mixmpg = mean(cty + hwy)) %>% | |
# create dummy var which reflects order when sorted alphabetically | |
mutate(ord =sprintf("%02i", as.integer(rank(mixmpg))) ) |
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
#!/usr/bin/env kscript | |
// kshell_kts.sh /Users/brandl/.kscript/kscript_tmp_project__adjust_bigwig_ids.kts_1540471113973/src/adjust_bigwig_ids.kts | |
@file:DependsOn("org.jetbrains.bio:big:0.8.3") | |
@file:DependsOn("com.xenomachina:kotlin-argparser:2.0.7") | |
import com.xenomachina.argparser.ArgParser | |
import com.xenomachina.argparser.DefaultHelpFormatter | |
import com.xenomachina.argparser.mainBody | |
import org.apache.log4j.ConsoleAppender |
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 javafx.application.Platform | |
import javafx.beans.property.SimpleObjectProperty | |
import javafx.embed.swing.JFXPanel | |
import javafx.scene.image.Image | |
import javafx.stage.Stage | |
import tornadofx.* | |
import javax.swing.SwingUtilities | |
object SwingApp { | |
private fun createAndShowGUI() { |
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
# somewhat hackish solution to: | |
# https://twitter.com/EamonCaddigan/status/646759751242620928 | |
# based mostly on copy/pasting from ggplot2 geom_violin source: | |
# https://github.com/hadley/ggplot2/blob/master/R/geom-violin.r | |
library(ggplot2) | |
library(dplyr) | |
"%||%" <- function(a, b) { |
NewerOlder