Skip to content

Instantly share code, notes, and snippets.

View deepankarb's full-sized avatar
🏠
Working from home

Deepankar Bhardwaj deepankarb

🏠
Working from home
View GitHub Profile
@oginorasta
oginorasta / Intellij Shortcut list
Last active October 28, 2022 08:45
All the shortcuts I know and use in Intellij Idea resp. Android Studio. v 1.0
Strg Alt Shift Key Function
x Einf Generate/Insert dialog
x x ENTER Statements completion like blocks and brackets
x x T Surrond codeblock with…
x W Select succesively increasing code blocks
x F11 bookmarks and mark the line with selected key
x F11 invokes a list of bookmarks. Pressing a key takes to associated bookmark.
x x Backspace go to most recent code edit. Hit again to go even further back.
x E recent opened files
x x E recent edited files
@jromero
jromero / adb_db_pull.sh
Created February 11, 2014 17:16
Pull database from _debuggable_ Android application on device. (Credit to: http://stackoverflow.com/a/12914297/552902)
#!/bin/bash
REQUIRED_ARGS=2
PULL_DIR="./"
ADB_PATH=`which adb`
if [ $? -ne 0 ]
then
echo "Could not find adb!"
exit 1
fi;
@stormzhang
stormzhang / ViewFinder.java
Last active May 4, 2016 10:22
Helper for finding and tweaking a view's children
/*
* Created by Storm Zhang 2014-8-24.
*/
package com.storm.library;
import android.app.Activity;
import android.content.res.Resources;
import android.view.View;
import android.view.View.OnClickListener;
@guedressel
guedressel / font-awesome-mime-type-icons.php
Last active October 13, 2022 09:30
Font Awesome File Icons: Mapping MIME Types to correct icon classes
<?php
/**
* Get font awesome file icon class for specific MIME Type
* @see https://gist.github.com/guedressel/0daa170c0fde65ce5551
*
*/
function font_awesome_file_icon_class( $mime_type ) {
// List of official MIME Types: http://www.iana.org/assignments/media-types/media-types.xhtml