- Account Settings
- Profile / Performance
- Featured
- Class Library
- Live Schedule
- Scenic
- In Class
- Login / Activation / Registration
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
@Preview | |
@Composable | |
fun ContainerTransformWeirdness() { | |
var scene by remember { mutableStateOf(Scene.Grid) } | |
SharedTransitionLayout(modifier = Modifier.fillMaxSize()) { | |
AnimatedContent( | |
targetState = scene, | |
transitionSpec = { | |
fadeIn() togetherWith fadeOut() |
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
enum class Scene { | |
Grid, | |
Closeup; | |
fun toggle() = if (this == Grid) Closeup else Grid | |
} | |
@Preview | |
@Composable | |
fun ContainerTransformWeirdness() { |
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
enum class Scene { | |
Grid, | |
Closeup; | |
fun toggle() = if (this == Grid) Closeup else Grid | |
} | |
data class ColorItemState( | |
val id: Int, | |
val color: Color, |
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 co.rikin.fidget | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.gestures.detectTransformGestures | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.BoxScope |
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 me.rikinmarfatia.hydrohomie | |
import android.app.PendingIntent | |
import android.appwidget.AppWidgetManager | |
import android.appwidget.AppWidgetProvider | |
import android.content.ComponentName | |
import android.content.Context | |
import android.content.Intent | |
import android.util.Log | |
import android.widget.RemoteViews |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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
public class NoConsecutiveRepeatCharacters { | |
public static void main(String[] args) { | |
String input = "aaaaaabbbbcc"; | |
//Sort the characters with highest freq. to the top | |
PriorityQueue<CharacterFrequencyNode> maxheap = new PriorityQueue<CharacterFrequencyNode>(new Comparator<CharacterFrequencyNode>() { | |
@Override | |
public int compare(CharacterFrequencyNode o1, CharacterFrequencyNode o2) { | |
if(o1.frequency > o2.frequency){ |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.