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
| #!/usr/bin/env bash | |
| echo "Sending the key..." | |
| echo "$(cat ~/.ssh/id_rsa)" |
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 dataclasses import dataclass | |
| import numpy as np | |
| import torch | |
| from memory_profiler import profile | |
| from tqdm import tqdm | |
| @dataclass | |
| class NumPyTransition: |
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
| country=PL | |
| update_config=1 | |
| ctrl_interface=/var/run/wpa_supplicant | |
| network={ | |
| scan_ssid=1 | |
| ssid="ssid" | |
| psk="passwd" | |
| } |
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 akka.NotUsed | |
| import akka.actor.ActorSystem | |
| import akka.stream.ActorMaterializer | |
| import akka.stream.scaladsl.{Flow, Sink, Source} | |
| object ConditionalVia extends App { | |
| implicit val system = ActorSystem() | |
| implicit val materializer = ActorMaterializer() |
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
| clc | |
| clear all | |
| close all | |
| syms x A E real; | |
| p = [1 x]; | |
| xs = [0 1.5 2.1 3.14]; | |
| n = length(xs); | |
| Kg = zeros(4, 4) |
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 io.circe._ | |
| import io.circe.generic.auto._ | |
| import io.circe.parser._ | |
| val jsonPoint = "{ \"type\": \"Point\", \"coordinates\": [100.0, 0.0] }" | |
| val jsonLineString = "{ \"type\": \"LineString\",\n \"coordinates\": [ [100.0, 0.0], [101.0, 1.0] ]\n }" | |
| val jsonPolygon = "{ \"type\": \"Polygon\",\n \"coordinates\": [\n [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]\n ]\n }" | |
| val jsonPolygonWithHoles = "{ \"type\": \"Polygon\",\n \"coordinates\": [\n [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ],\n [ [100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2] ]\n ]\n }" | |
| val jsonGC = "{ \"type\": \"GeometryCollection\",\n \"geometries\": [\n { \"type\": \"Point\",\n \"coordinates\": [100.0, 0.0]\n },\n { \"type\": \"LineString\",\n \"coordinates\": [ [101.0, 0.0], [102.0, 1.0] ]\n }\n ]\n }" |
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
| let('the temperature sensor in kitchen') | |
| .state(['temperature'], function (temperature) { | |
| return temperature >= 25; | |
| }) | |
| .cause(function (effect) { | |
| effect('air conditioning', { state: 'on' }).now(); | |
| }); |