Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to:
Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to:
package program.com.ba; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import android.util.Log; | |
/** | |
* Created by faith on 9/13/15. |
public interface CustomItemClickListener { | |
public void onItemClick(View v, int position); | |
} |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.util.AttributeSet; | |
import android.support.v7.widget.RecyclerView; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.view.View; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.Canvas; |
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls | |
smtpserver = smtp.gmail.com |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
# Factorial Recursive # | |
####################### | |
# Long Version: | |
def factorial(n) | |
if n == 0 | |
return 1 | |
else | |
return n*factorial(n-1) |
import random | |
f = open("large.txt","w") #opens file with name of "test.txt" | |
countries = ["kenya","Uganda","Somalia","Ethiopia","Eritrea"] | |
limits = 5000 | |
totals = str(limits*len(countries)) | |
def println(text): | |
f.write(text+"\n") |
# require 'ffaker' | |
items = ["beans", "maize", "tea"] | |
items.each do |item| | |
# each item should have an entry for each month | |
1.upto(12) do |month| | |
month_date = "2015-"+month.to_s+"-20 20:00:00" | |
Report.create( item: item, report_date: month_date, price: rand(100) ) | |
end |