Skip to content

Instantly share code, notes, and snippets.

View Arpit0492's full-sized avatar
🎯
Focusing

Arpit Johri Arpit0492

🎯
Focusing
View GitHub Profile
@deanturpin
deanturpin / asana.csv
Created October 8, 2019 21:20
A curated list of yoga poses
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 6 columns, instead of 5. in line 9.
Transliteration,Sanskrit,English,Description,Type,Variation
"Sukhasana, Yogasana, Svastikasana","सुखासन, स्वस्तिकसन","Auspicious, Lucky mark",,Warm up,
"Siddhasana, Muktasana, Siddha Yoni Asana","मुक्तासन, सिद्धासन","Liberated, Accomplished, The Adept's Pose",Seated cross-legged with knees down,Warm up,
Shavasana,शवासन,Corpse,,Warm up,"Butterfly legs, buttterfly legs and arms, reverse corpse (lying on the front)"
"Pavan Muktasana, apanasana",,Wind Release pose,Supine with knees to chest,Warm up,
"Ardha Pavan Muktasana, apanasana",,Half Wind Release pose,Supine with one knee to chest,Warm up,
Ananda Balasana,,"Happy Baby, stirred up",,Warm up,Straight legs
Jathara Parivartanasana,ञटर परिवर्तनासन​,Belly twist,Lie on back and windscreen wiper the legs over to one side,Warm up,Cat tail: hold trailing foot
Makarasana,मकरासन,Crocodile,Supine with elbows down and supporting head in hands,Warm up,
"Bidalasana, Marjariasana / Bitilasana","बिडालासन, मार्जरीआसन",Cat / Cow,On all fours arch back upwards then downwards,Kn
import android.content.Context;
import android.graphics.Typeface;
import android.support.design.internal.BottomNavigationItemView;
import android.support.design.internal.BottomNavigationMenuView;
import android.support.design.widget.BottomNavigationView;
import android.util.Log;
import android.widget.TextView;
import java.lang.reflect.Field;
@faruktoptas
faruktoptas / KeyboardSensitiveRelativeLayout.java
Last active November 3, 2023 17:50
A layout that detects Soft Keyboard is visible or not.
public class KeyboardSensitiveRelativeLayout extends RelativeLayout {
private OnKeyboardShowHideListener listener;
public KeyboardSensitiveRelativeLayout(Context context) {
super(context);
}
public KeyboardSensitiveRelativeLayout(Context context, AttributeSet attrs) {
super(context, attrs);
@cachapa
cachapa / gif_creator.sh
Last active April 1, 2022 12:07
Shell script to generate high-quality animated gifs from a video file
#!/bin/bash
# Based on http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
# Requires ffmpeg
filename="${1%.*}"
palette="/tmp/palette.png"
filters="scale=320:-1:flags=lanczos"
ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$filename.gif"
@kosiara
kosiara / MyAlphaInAnimationAdapter.java
Last active June 12, 2018 12:12
Android RecyclerView sequential items fade-in animation
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.support.v7.widget.RecyclerView;
import android.view.View;
public class MyAlphaInAnimationAdapter extends MyAnimationAdapter {
private static final float DEFAULT_ALPHA_FROM = 0.0F;
private final float mFrom;
private RecyclerView recyclerView;
@anorth
anorth / ZoomLayout.java
Created March 29, 2014 00:06
Pinch-zoomable Android frame layout
package au.id.alexn;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.widget.FrameLayout;
@lecho
lecho / shadow.xml
Created September 7, 2013 07:01
Android shadow drawable xml.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
@atermenji
atermenji / ImageViewTouchViewPager.java
Created September 25, 2012 12:58
A viewpager which works with ImageViewTouch (https://github.com/sephiroth74/ImageViewZoom)
package some.awesome.package;
import it.sephiroth.android.library.imagezoom.ImageViewTouch;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
public class ImageViewTouchViewPager extends ViewPager {