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 type { AxiosInstance, InternalAxiosRequestConfig } from "axios"; | |
| import { | |
| createContext, | |
| useContext, | |
| useLayoutEffect, | |
| useState, | |
| type Dispatch, | |
| type PropsWithChildren, | |
| type SetStateAction, | |
| } from "react"; |
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 polars as pl | |
| @pl.api.register_expr_namespace("preprocessing") | |
| class Preprocessing: | |
| def __init__(self, expr: pl.Expr): | |
| self._expr = expr | |
| def scale(self) -> pl.Expr: | |
| return (self._expr - self._expr.min()) / (self._expr.max() - self._expr.min()) | |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Oscilloscope</title> | |
| <style type="text/css"> | |
| .visualizer { | |
| display: block; | |
| width: 100%; | |
| height: auto; |
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.concurrent.TimeoutException | |
| import scala.concurrent.ExecutionContext | |
| import scala.concurrent.Future | |
| import scala.concurrent.duration._ | |
| import cats.{Applicative, Show} | |
| import cats.effect.{Concurrent, ContextShift, IO, Timer} | |
| import cats.syntax.applicativeError._ | |
| import cats.syntax.flatMap._ |
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 shapeless.{HList, LabelledGeneric, Poly1, Witness} | |
| import shapeless.labelled.{FieldType, field} | |
| import shapeless.ops.hlist | |
| import shapeless.tag.@@ | |
| trait Primary { | |
| val primary: Option[Boolean] | |
| } | |
| object OnlyOnePrimary { |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Spectrogram</title> | |
| <style type="text/css"> | |
| .visualizer { | |
| display: block; | |
| background-color: black; | |
| } |
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 atto.Atto._ | |
| import atto.Parser | |
| import io.circe.optics.JsonPath | |
| import io.circe.optics.JsonPath.root | |
| import scala.annotation.tailrec | |
| import scala.util.Try | |
| object JsonPointer { |
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
| package com.phonegap.Sample; | |
| import java.io.File; | |
| import android.app.AlertDialog; | |
| import android.app.AlertDialog.Builder; | |
| import android.app.PendingIntent; | |
| import android.app.ProgressDialog; | |
| import android.content.Intent; | |
| import android.content.pm.PackageManager.NameNotFoundException; |
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
| class OptimizerSpec extends FlatSpec with Matchers with SparkSetup { | |
| "solve" should "work with just intercept" in withSparkSession { session => | |
| ... | |
| } | |
| } |
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
| #!/bin/bash | |
| if [[ "$EUID" -ne 0 ]]; then | |
| echo -e "\e[31mPlease run as root\e[0m" | |
| exit 1 | |
| fi | |
| read -p "Please provide your new SSID: " SSID | |
| read -p "Please provide your new AP network (i.e. 192.168.1.X). Remember to put X at the end!!! " NETWORK |
NewerOlder