Skip to content

Instantly share code, notes, and snippets.

View SriharshaShesham's full-sized avatar

Sriharsha Shesham SriharshaShesham

View GitHub Profile
<script src="<sitePathHere>/Scripts/jquery.min.js" type="text/javascript"></script>
<script src="<sitePathHere>/Scripts/jquery.SPServices.min.js" type="text/javascript"></script>
<script src="<sitePathHere>/Scripts/jquery-ui.min" type="text/javascript"></script>
<script src="<sitePathHere>/Scripts/papaparse.min" type="text/javascript"></script>
@SriharshaShesham
SriharshaShesham / TestInitialScript.html
Last active August 29, 2015 14:12
Simple jQueryCode
<script type="text/javascript">
$(document).ready(function()
{
//alert("test");
$('#btn').click(function()
{
alert("Hurray it works");
});
});
@SriharshaShesham
SriharshaShesham / strings.xml
Created February 23, 2015 17:49
Android app Strings
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">FbTest</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
</resources>
@SriharshaShesham
SriharshaShesham / fbactivity.xml
Created February 23, 2015 18:04
Default Activity file
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".FBTest">
<TextView android:text="@string/hello_world" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
@SriharshaShesham
SriharshaShesham / fb_activity.xml
Created February 23, 2015 18:08
Hello Android Activit
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".FBTest">
<!-- <TextView android:text="@string/hello_world" android:layout_width="wrap_content"
android:layout_height="wrap_content" /> -->
<TextView
@SriharshaShesham
SriharshaShesham / CopyingLIstsBetwnSites.ps1
Last active August 29, 2015 14:16
Copying Lists Between Sites/SitesCollection
#Check if SharePoint is already snapped in
if ( (Get-PSSnapin -Name "Microsoft.SharePoint.Powershell" -ErrorAction SilentlyContinue) -eq $null )
{
Add-PsSnapin "Microsoft.SharePoint.Powershell"
}
# $sourceWebsiteUrl is the URL of the site from which you want to copy the list
$sourceWebsiteUrl = "http://YourSoureceURL/SiteName"
# $destinationWebsiteUrl is the URL of the site to which you wan to copy the list
@SriharshaShesham
SriharshaShesham / hideLeftNavigation.css
Last active August 29, 2015 14:21
Hiding left navigation in SharePoint 2010 with CSS
/***********************************************************************************************************
**********************************************Hide Left Navigation******************************************
***********************************************************************************************************/
<style>
#s4-leftpanel-content {
VISIBILITY: hidden
}</style>
@SriharshaShesham
SriharshaShesham / AndroidManifest.xml
Created September 9, 2015 19:15
Android Manifest for Arduino Mega ADK
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="adk.srichakram.in.adk_googleapi" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<uses-library android:name="com.android.future.usb.accessory"></uses-library>
@SriharshaShesham
SriharshaShesham / MainActivity.java
Created September 9, 2015 19:52
MainActivity for Mega ADK led Blink
import android.app.Activity;
import android.app.AlertDialog;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.hardware.usb.UsbAccessory;
import android.hardware.usb.UsbManager;
@SriharshaShesham
SriharshaShesham / activity_main.xml
Created September 9, 2015 20:18
Android and Arduino Mega ADK simple LED Blink
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<ToggleButton
android:text="@string/ToggleButton"
android:id="@+id/toggleButtonLED"