Skip to content

Instantly share code, notes, and snippets.

View MrBenJ's full-sized avatar
🤓
Hey are you gonna eat that

Ben Junya MrBenJ

🤓
Hey are you gonna eat that
View GitHub Profile
@MrBenJ
MrBenJ / ViewHolder_Pattern_Adapter.java
Last active August 31, 2015 00:10
Recycling Views using convertView == null and ViewHolder
// This is the @Override getView() portion of the Adapter class - recycles views in order to create a faster
// and much more efficient UI. Boosts framerates from 15 FPS to 50 FPS due to savvy memory allocation.
private LayoutInflater mInflater;
private List<SomeObject> mList;
// Constructor for Adapter object
public nameOfAdapter(Context context, List<SomeObject> myListOfObjects) {
mInflater = LayoutInflater.from(context);
mList = myListOfObjects;
@quagliero
quagliero / README.md
Last active February 23, 2023 06:07
Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

This assumes you have brew installed and are comfortable using a terminal.

Following the guide on https://github.com/tpruvot/cpuminer-multi will likely lead to errors about invalid paths to OpenSSL, and neoscrypt errors to the tune of Undefined symbols for architecture x86_64 during the build. I managed to piece together different fixes into an installation that has worked for me. So I hope it works for you.

Requirements

Ensure a c compiler is installed. Type g++ in the terminal and continue with the xcode installation if necessary. If it prints clang: error: no input files, then you can proceed.

@underdarkskies
underdarkskies / Mining Ravencoin with ccminer2.2.5 on Ubuntu
Last active April 24, 2021 05:02
Mining Ravencoin with ccminer2.2.5 on Ubuntu
###From an Ubuntu 16.04 Instance with 20GB of HD space
###Update Ubuntu
sudo apt-get update
###Download Nvidia Software
wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_9.1.85_387.26_linux
mv cuda_9.1.85_387.26_linux cuda_9.1.85_387.26_linux.run
chmod +x cuda_9.1.85_387.26_linux.run
@ecurrencyhodler
ecurrencyhodler / (Deprecated)LTC-Lightning-Network-lnd-Guide (Mac).md
Last active December 18, 2023 02:32
This is a step-by-step main net tutorial on how to setup a lightning network node for Litecoin on a Mac. It will take you from the beginning all the way through to becoming visible on a ln explorer. To send or recieve payments, refer to "Basic lnd Commands."

LTC-Lightning-Network-lnd-Guide

This is a step-by-step main net tutorial on how to setup a Lightning Network node for Litecoin on a Mac. It is specifically for the lnd client by the Lightning Labs. You can copy and paste most of the commands except for the times I've indicated in bold for you to input your own information. It would also be a good idea to backup your computer prior to starting just in case you need to start over.

Below is a legend. Refer to it as you come across terms or symbols you don’t understand. The first part of the tutorial is taken from the lnd github. However, everything else is written with the help of Patrick Walters taking me step by step through the process.

Legend

$ = This symbol means 1 line of code. Do not type “$” into your terminal. Simply input what follows then push enter.

Pubkey = Short for the public key that is generated from the private key w