Skip to content

Instantly share code, notes, and snippets.

@xxlukas42
xxlukas42 / blue_led_matrix.ino
Created May 15, 2019 18:42
Blue LED matrix display 8x16 for your Arduino
/**
* \par Copyright (C), 2012-2016, MakeBlock
* @file Me_LEDMatrixTest.ino
* @author MakeBlock (modified by Petr Lukas)
* @version V1.0.0
* @date 2019/05/12
* @brief Description: this file is sample code for Me LED Matrix device.
*
* Function List:
* clearScreen() Remove content of display
@ktuukkan
ktuukkan / maven-settings.xml
Last active September 20, 2018 13:11
Maven config for snapshot dependencies / Sonatype Nexus
<settings>
...
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
...
<profiles>
<profile>
<id>nexus</id>
<repositories>
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 13:33
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@tomfun
tomfun / plural.js
Created August 23, 2016 12:31
JavaScript russian plural function
function getNoun(number, one, two, five) {
let n = Math.abs(number);
n %= 100;
if (n >= 5 && n <= 20) {
return five;
}
n %= 10;
if (n === 1) {
return one;
}
@vishal2376
vishal2376 / FlipAnimation.kt
Created April 25, 2024 17:16
Card Flip Animation using Jetpack Compose
package com.vishal2376.animations.ui.theme
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.EaseInOut
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
@james-priest
james-priest / GitHub-Fork.md
Last active April 27, 2024 13:23
GitHub Fork & Pull Request Workflow

Fork & Pull Request Workflow

Also know as Fork-and-Branch Workflow

Uses three repos:

  • Original repository (remote) - An open source repo on GitHub
  • Forked repository (remote) - my forked copy of the open source repo on Github
  • Cloned (local) repository (from Forked) - my local copy of my forked repo
@boaglio
boaglio / atalhos-ij.md
Last active April 27, 2024 13:22
Atalhos do IntelliJ - para quem veio do Eclipse

Atalhos do IntelliJ

Principais

Caiu no IntelliJ agora?

Aprenda só esses:

Tipo de Atalho IntelliJ IDEA
@Hansimov
Hansimov / sync-github-repo-to-huggingface-space.md
Last active April 27, 2024 13:22
Sync Github repo to Huggingface space

Push Github Repo to Huggingface Space

Create a huggingface token

Put it in the repo secrets with name like HF_TOKEN in related Github repo setitngs:

Run following commands in the git root folder: