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
const attendees = document.getElementsByClassName("fooevents-attendee"); | |
for (let i = 0; i < attendees.length; i++) { | |
const descriptions = attendees.item(i).getElementsByClassName("fooevents-variation-desc"); | |
if (descriptions.item(0).innerHTML.includes("12")) { | |
const paragraphs = attendees.item(i).getElementsByTagName("p"); | |
paragraphs.item(3).style.display='none'; | |
} | |
} |
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 typings.atAntDashDesignReactDashNativeLib.atAntDashDesignReactDashNativeLibStrings | |
import typings.atAntDashDesignReactDashNativeLib.atAntDashDesignReactDashNativeLibProps | |
import typings.atAntDashDesignReactDashNativeLib.esMod.Toast | |
import typings.atAntDashDesignReactDashNativeLib.{atAntDashDesignReactDashNativeLibComponents => Antd} | |
import typings.reactLib.ScalableSlinky._ | |
/** | |
* This wraps most of `ant-design__react-native` in a more slinky friendly way. We cast all components into `ExternalComponent`s, and | |
* export all available component props object creators as well | |
* |
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 hello.world | |
import slinky.core.facade.ReactElement | |
import slinky.core.{BuildingComponent, ReactComponentClass} | |
import typings.historyLib.historyMod.{Location, LocationState} | |
import typings.reactDashRouterDashNativeLib.{reactDashRouterDashNativeLibProps, reactDashRouterDashNativeLibComponents => RRN} | |
import typings.reactDashRouterLib.reactDashRouterMod.{ | |
RouteChildrenProps, | |
RouteComponentProps, | |
RouteProps, |
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 hello.world | |
import slinky.core._ | |
import slinky.core.annotations.react | |
import slinky.core.facade.ReactElement | |
import slinky.web.html._ | |
import scala.scalajs.js | |
import scala.scalajs.js.annotation.{JSImport, ScalaJSDefined} |
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 slinkyIntro | |
import slinky.core._ | |
import slinky.core.annotations.react | |
import slinky.core.facade.ReactElement | |
import slinky.core.facade.Hooks.useState | |
import slinky.web.html._ | |
import scala.scalajs.js | |
import scala.scalajs.js.annotation.{JSImport, ScalaJSDefined} |
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 `given some undirected graphs` { | |
val unDiAcyclic_1: CC[Int, UnDiEdge] = factory(1 ~ 2, 2 ~ 3) | |
val unDiCyclic_1: CC[Int, UnDiEdge] = unDiAcyclic_1 + 1 ~ 3 | |
val unDiAcyclic_2: Graph[Int, UnDiEdge] = Graph(1 ~ 2, 1 ~ 3, 2 ~ 4, 2 ~ 5) | |
val unDiCyclic_21: Graph[Int, UnDiEdge] = unDiAcyclic_2 + 3 ~ 5 | |
val unDiCyclic_22: Graph[Int, UnDiEdge] = unDiAcyclic_2 ++ List(3 ~ 6, 6 ~ 7, 7 ~ 4) | |
val unDiCyclic_3: CC[Int, UnDiEdge] = factory() ++ Data.elementsOfUnDi_1 |
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 Mario._ | |
import org.scalatest.FlatSpec | |
import scalax.collection.Graph | |
import scalax.collection.GraphEdge.UnDiEdge // shortcuts | |
import scalax.collection.GraphPredef._ | |
class findContainingTest extends FlatSpec { |