Skip to content

Instantly share code, notes, and snippets.

View barisatalay's full-sized avatar
🐺
Blockchain Enthusiast

Barış ATALAY barisatalay

🐺
Blockchain Enthusiast
View GitHub Profile
@taobun
taobun / optimized_sorted_list.sol
Created July 12, 2019 09:19
Optimized sorted List code from Band Protocol' s Solidity102#3 article.
pragma solidity 0.5.9;
contract OptimizedSchool{
mapping(address => uint256) public scores;
mapping(address => address) _nextStudents;
uint256 public listSize;
address constant GUARD = address(1);
constructor() public {
@etiennestuder
etiennestuder / speak.gradle
Last active March 14, 2024 07:30
Voice notification when when Gradle build finishes (for Mac OS X)
// When runnning a Gradle build in the background, it is convenient to be notified immediately
// via voice once the build has finished - without having to actively switch windows to find out -
// and being told the actual exception in case of a build failure.
// Put this file into the folder ~/.gradle/init.d to enable the acoustic notifications for all builds
gradle.addBuildListener(new BuildAdapter() {
@Override
void buildFinished(BuildResult result) {
@davemorrissey
davemorrissey / PicassoDecoder.java
Last active November 26, 2021 14:17 — forked from gokhanbarisaker/PicassoDecoder.java
Picasso decoder for subsampling-scale-image-view
/**
* Created by gokhanbarisaker on 8/30/15.
*/
public class PicassoDecoder implements ImageDecoder
{
private String tag;
private String picasso;
public PicassoDecoder(String tag, Picasso picasso) {
this.tag = tag;