This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clear | |
echo "Android install and build script for non-gradle Github repo.\n" | |
# RETRIEVING SETTINGS | |
lastGithubURLSettingsFile=~/Projects/tools/.github_tool_settings_url | |
if [ ! -f $lastGithubURLSettingsFile ] | |
then | |
touch $lastGithubURLSettingsFile | |
fi | |
source $lastGithubURLSettingsFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.stf.threelevelexpandablelistview; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseExpandableListAdapter; | |
import android.widget.ExpandableListView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.Toast; | |
import com.example.android.R; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage : sh download.sh 100 | |
# will download 100 pics | |
START=1 | |
for i in $(eval echo "{$START..$1}") | |
do | |
curl "http://lorempixel.com/index.php?generator=1&x=640&y=480&cat=" -o temp.html && cat temp.html | sed -n 's/.*<img src="\([^" ]*\)".*/\1/p' | awk '{print "http://lorempixel.com/"$1}' | xargs curl -o $i.jpg | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OUT=`ls /Applications/`; OUT2=${OUT//$'\n'/,}; OUT3=${OUT2//.app/}; OUT4=${OUT3// /-}; echo $OUT4 | tr '[:upper:]' '[:lower:]' > ~/Documents/softwarelist.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# Homebrew and softwares # | |
############################################################################### | |
clear | |
rulem () { | |
if [ $# -eq 0 ]; then | |
echo "Usage: rulem MESSAGE [RULE_CHARACTER]" | |
return 1 | |
fi | |
size=${#1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="white">#FFFFFF</color> | |
<color name="ivory">#FFFFF0</color> | |
<color name="lightyellow">#FFFFE0</color> | |
<color name="yellow">#FFFF00</color> | |
<color name="snow">#FFFAFA</color> | |
<color name="floralwhite">#FFFAF0</color> | |
<color name="lemonchiffon">#FFFACD</color> | |
<color name="cornsilk">#FFF8DC</color> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb -s TA00301CVR forward tcp:5601 tcp:5601 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.stf.threelevelexpandablelistview; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.util.AttributeSet; | |
import android.util.SparseArray; | |
import android.view.View; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
OlderNewer