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
| value_type fixed_length nullable data_type simple_type GType type_parameter x | |
| ArrayType true _vala_array_destroy(value, length, (GDestroyNotify) element_destroy_func) | |
| DelegateType if (delegate_target_destroy_notify != NULL) delegate_target_destroy_notify(delegate_target) | |
| ValueType false Struct true destroy_func(value) | |
| ValueType false Struct false destroy_func(&value) | |
| ValueType false Enum N/A destroy_func(&value) // ?? | |
| ValueType false Struct false value if (G_IS_VALID(&value)) g_value_unset(&value); | |
| ValueType false Struct false mutex etc _vala_clear_mutex(&value) |
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
| require 'bigdecimal' | |
| require 'csv' | |
| require 'date' | |
| lo = hi = nil | |
| CSV.foreach('temp-2016.csv') do |station, valid, tmpc| | |
| next if station.start_with?('#') || station == 'station' || tmpc == 'M' | |
| valid = DateTime.strptime valid, '%Y-%m-%d %H:%M' |
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
| :paste | |
| implicit class Reader[-A, +B](f: A => B) { | |
| def contramap[C](g: C => A): C => B = f compose g | |
| def flatMap[C <: A, D](g: B => C => D): C => D = { c => g(f(c))(c) } | |
| def map[C](g: B => C): A => C = f andThen g | |
| def zip[C <: A, D](g: C => D): C => (B, D) = { c => (f(c), g(c)) } | |
| } |
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 java.util.{Timer, TimerTask} | |
| import org.joda.time.Duration | |
| import scala.concurrent.{Await, ExecutionContext, Future, Promise} | |
| import scala.concurrent.duration.Duration.Inf | |
| import scala.math.min | |
| import scala.util.Random | |
| def withBackoff[A](maxRetry: Int, | |
| baseDelay: Duration, | |
| maxBackoffTime: Duration) |
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
| trait Reader<A> | |
| where | |
| Self: Sized, | |
| { | |
| type Out; | |
| fn apply(&self, a: &A) -> Self::Out; | |
| fn map<'a, G>(&'a self, g: &'a G) -> Map<Self, G> { | |
| Map(self, g) |
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
| FROM python:2 | |
| RUN apt-get update\ | |
| && apt-get install --assume-yes --no-install-recommends python-pil\ | |
| && rm --recursive /var/lib/apt/lists/* | |
| WORKDIR /usr/src/app |
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
| trait Printer { | |
| def print(what: String) | |
| } | |
| object Printer { | |
| object Stdout extends Printer { | |
| def print(what: String) = println(what) | |
| } | |
| def apply(writer: Writer): Printer = new Printer { |
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
| X Y Z | |
| ab 33 333 3333 | |
| ac 33 333 3333 | |
| bc 33 333 3333 | |
| qu 1 1 1 | |
| P(X) P(q|X) P(u|X) | |
| P(X|qu) = ------------------------------------------------------------ | |
| P(X) P(X|q) P(X|u) + P(Y) P(Y|q) P(Y|u) + P(Z) P(Z|q) P(Z|u) |
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
| { | |
| "_name": "Wolfram|Alpha", | |
| "_shortName": "wolframalpha", | |
| "_loadPath": "[https]addons.mozilla.org/wolframalpha.xml", | |
| "description": "Wolfram|Alpha is more than a search engine. It gives you access to the world's facts and data and calculates answers across a range of topics, including science, nutrition, history, geography, engineering, mathematics, linguistics, sports, finance...", | |
| "__searchForm": "https://www.wolframalpha.com/", | |
| "_iconURL": "data:image/x-icon;base64,AAABAAMAEBAAAAEAIAAoBQAANgAAACAgAAABACAAKBQAAF4FAABAQAAAAQAgAChQAACGGQAAKAAAABAAAAAgAAAAAQAgAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZv9SAGb/SgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZv8/AGb/AQAAAAAAZv8MAGb/4wBm/94AZv8KAAAAAABm/wIAZv9CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGb/2gBm/9kAZv9xAGb/lQBm//8AZv//AGb/kQBm/3YAZv/eAGb/1QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABm/74AZv//AGb//wBm//8AZv//AGb//wBm//8AZv//AGb//wBm/7sAAAAAAAAAAAAAAAAAAAA |
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
| $ docker run gcr.io/spark-operator/spark:v3.1.1 ls /opt/spark/jars | |
| HikariCP-2.5.1.jar | |
| JLargeArrays-1.5.jar | |
| JTransforms-3.1.jar | |
| RoaringBitmap-0.9.0.jar | |
| ST4-4.0.4.jar | |
| activation-1.1.1.jar | |
| aircompressor-0.10.jar | |
| algebra_2.12-2.0.0-M2.jar | |
| antlr-runtime-3.5.2.jar |