Skip to content

Instantly share code, notes, and snippets.

View gamebusterz's full-sized avatar
🍞

Sailesh Choyal gamebusterz

🍞
View GitHub Profile
$ hg init remote
+ Traceback (most recent call last):
+ File "/tmp/hgtests.Dr3iCa/install/bin/hg", line 38, in <module>
+ import mercurial.dispatch
+ File "/tmp/hgtests.Dr3iCa/install/lib/python/mercurial/dispatch.py", line 26, in <module>
+ from . import (
+ File "/tmp/hgtests.Dr3iCa/install/lib/python/mercurial/cmdutil.py", line 26, in <module>
+ from . import (
+ File "/tmp/hgtests.Dr3iCa/install/lib/python/mercurial/repair.py", line 15, in <module>
@gamebusterz
gamebusterz / DataGen2.py
Created September 30, 2016 11:02
run `python DataGen2.py > total.csv`
# -*- coding: utf-8 -*-
import random
import uuid
import csv
from datetime import datetime
## FACTOR THE INFLUENCE OF HEALTH IN COSTS
## ADD EITHINICITY
header = ['ID','Rank_of_PI','Study_Type','Country','Therapeutic_Area','No_of_sites','Req_Healthy_Volunteer','Duration_of_study(days)','No_of_volunteers_1','Patient_Rec_1','Patient_Retention_1','RN/CRA_1','Physician_1','Procedure_1','Central_lab_1','Site_rec_1','Site_ret_1','Admin_staff_1','Site_Monitoring_1','Data_mgmt_1','IRB_Approval_1','IRB_Amendment_1','Source_data_verf_1','Site_overhead_1','No_of_volunteers_2','Patient_Rec_2','Patient_Retention_2','RN/CRA_2','Physician_2','Procedure_2','Central_lab_2','Site_rec_2','Site_ret_2','Admin_staff_2','Site_Monitoring_2','Data_mgmt_2','IRB_Approval_2','IRB_Amendment_2','Source_data_verf_2','Site_overhead_2','No_of_volunteers_3','Patient_Rec_3','Patient_Retention_3','RN/CRA_3','Physician_3','Procedure_3','Central_lab_3','Site_rec_3','Site_ret_3','Admin_staff_3','Site_Monitoring_3','Data_mgmt_3','IRB_Approval_3','
therapeutic_areas = ['Respiratory System','Pain and Anesthesia','Oncology','Ophthalmology','Hematology','Cardiovascular','Endocrine','Gastrointestinal','Immunomodulation','Anti-Infective','Central Nervous System','Dermatology','Genitourinary System']
package com.example.yankee.cw;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:orientation="vertical"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@android:color/background_dark"
android:layout_height="match_parent"
android:padding="0dip"
tools:context=".LoginActivity">
<android.support.v7.widget.Toolbar
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
@gamebusterz
gamebusterz / Layout2.xml
Created October 27, 2016 08:32
Enclosed the contents of CoordinatorLayout in a LinearLayout, scrolling of the NestedScrollView works.
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.CardView
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
app:cardUseCompatPadding="true"
11-14 18:37:31.510 17430-17430/com.example.yankee.cw E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.yankee.cw, PID: 17430
Theme: themes:{default=overlay:jahirfiquitiva.themes.meliornui, iconPack:system, fontPkg:jahirfiquitiva.themes.meliornui, com.android.systemui=overlay:jahirfiquitiva.themes.meliornui, com.android.systemui.navbar=overlay:jahirfiquitiva.themes.meliornui}
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.yankee.cw/com.example.yankee.cw.cw_home}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
at android.app.ActivityThread.performLaunchActivity