Skip to content

Instantly share code, notes, and snippets.

View gotneb's full-sized avatar
🍁
I may be slow to respond.

Gabriel Bento gotneb

🍁
I may be slow to respond.
View GitHub Profile
@ardakazanci
ardakazanci / SegmentedProgress.kt
Created February 1, 2025 05:04
Segmented Progress with Jetpack Compose
@Composable
fun SegmentedArcProgressIndicator(
progress: Float,
strokeWidth: Float = 48f,
maxAngle: Float = 160f,
gapAngle: Float = 15f,
backgroundColor: Color = Color(0xffCBE0E8),
progressColor: Brush = Brush.linearGradient(listOf(Color(0xff83B2D1), Color(0xff106AA7)))
) {
val animatedProgress by animateFloatAsState(
@lopezjurip
lopezjurip / CSharp.sublime-build
Created May 30, 2015 19:00
Sublime Text 3 - C# Build System
{
"shell": true,
"cmd": ["mcs $file ; mono $file_base_name.exe"],
"selector": "source.cs"
}
@jasonrudolph
jasonrudolph / gist:6057563
Last active February 20, 2025 11:03
GitHub Search API: Get the number of stars for a repository

James Sugrue [asked][1], "@GitHubAPI is there a way to find the number of stars for a given repository?"

Example

$ curl -ni "https://api.github.com/search/repositories?q=more+useful+keyboard" -H 'Accept: application/vnd.github.preview'
{