Skip to content

Instantly share code, notes, and snippets.

View HBFLEX's full-sized avatar
💭
Available

HBFL3Xx HBFLEX

💭
Available
View GitHub Profile
@HBFLEX
HBFLEX / main.dart
Last active October 21, 2023 00:41
keen-spray-1020
void main(){
List<int> numbers = [10, 4, 2, 6, 3, 30];
final stopWatch = Stopwatch();
stopWatch.start();
insertionSort(numbers);
stopWatch.stop();
for(int n in numbers) {print(n);}
@odai-alali
odai-alali / js_functions_equivalent.java
Created February 22, 2018 11:12
The equivalent to a JavaScript setInterval/setTimeout in Android/Java?
// setInterval()
new Timer().scheduleAtFixedRate(new TimerTask(){
@Override
public void run(){
Log.i("interval", "This function is called every 5 seconds.");
}
},0,5000);
// setTimeout()
new android.os.Handler().postDelayed(