Skip to content

Instantly share code, notes, and snippets.

View gitryder's full-sized avatar
🛠️
Building

Danyl Fernandes gitryder

🛠️
Building
View GitHub Profile
Code Country Name
AED United Arab Emirates Dirham
AFN Afghanistan Afghani
ALL Albania Lek
AMD Armenia Dram
ANG Netherlands Antilles Guilder
AOA Angola Kwanza
ARS Argentina Peso
package vidyalankar.myrecyclerview;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.constraint.ConstraintLayout;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
package com.vidyalankar.mco1;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";

Dan's Code Standards

  • All standards in this document must be followed for .java files, while writing code for android apps

Android Log Tag

  • The android log tag helps to easily log statements to the android console for easy debugging of code
  • The log tag code must be written immediately after the class opening bracket as shown below
public class MainActivity extends AppCompatActivity {

App Development Status

  • This sheet serves to document the development status of the Plants & Pillars app
  • The document shall be regularly updated as the developer adds features or fixes bugs

How to use

  • Below, You will find the section Tracker
  • It shows all the issues and features that currently exist as items
  • Each item has an id, type, description, statusand an expect by
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <dirent.h>
int main(int argc, char *argv[]) {
int i, fd1, fd2;
char *file1, *file2, buf[2];
#IfWinActive, ahk_exe ProPresenter.exe
^w::
SetMouseDelay, 0
MouseGetPos, x, y
Click, 1890, 1030
MouseMove, x, y, 0
return
^h::
SetMouseDelay, 1
@gitryder
gitryder / get_dans_bash_prompt.sh
Created July 27, 2021 14:58
dan's bash prompt
# Go to the user's home dir
cd ~/
# Make a backup of the user's current .bashrc
cp .bashrc .bashrc.bak
# Add the PS1 variable to the user's .bashrc
echo "PS1='\[\e[33m\]\u\e[00m\[\e[32m\] at \e[00m\[\e[34m\]\h\e[00m \[\e[31m\]in\e[0 0m \w \[\e[35m\]$(__git_ps1 "(%s)")\e[00m \n🏔️-> '" >> .bashrc
@gitryder
gitryder / rahul.py
Created April 7, 2022 17:57
Rahul Spotify
import os
import numpy as np
import pandas as pd
import seaborn as sns
import plotly.express as px
import matplotlib.pyplot as plt
%matplotlib inline
from sklearn.cluster import KMeans
@gitryder
gitryder / post_data.gs
Created November 16, 2023 12:48
Post data to a Google Sheet
function doPost(e) {
try {
const data = JSON.parse(e.postData.contents);
SpreadsheetApp.getActiveSheet().appendRow([
data.id,
data.name
]);
return ContentService.createTextOutput();
} catch (error) {
return ContentService.createTextOutput("Error");