Skip to content

Instantly share code, notes, and snippets.

View TheAshwanik's full-sized avatar
💭
Hi.. Don't hesitate to ping me.. I would love an interesting chat about tech.

Ashwani Kumar TheAshwanik

💭
Hi.. Don't hesitate to ping me.. I would love an interesting chat about tech.
View GitHub Profile
http://spservices.codeplex.com/SourceControl/latest#jquery.SPServices-2013.01ALPHA5.js
http://ktskumar.wordpress.com/2009/03/03/upload-document-from-local-machine-to-sharepoint-library/
http://davidsit.wordpress.com/2010/02/10/reading-a-sharepoint-list-with-java-tutorial/
http://code.google.com/p/java-sharepoint-library/issues/detail?id=2
http://tugdualgrall.blogspot.co.uk/2009/02/jax-ws-how-to-configure-service-end_17.html
@TheAshwanik
TheAshwanik / keybase.md
Last active June 17, 2017 16:11
My Keybase proof

Keybase proof

I hereby claim:

  • I am Theashwanik on github.
  • I am theashwanik (https://keybase.io/theashwanik) on keybase.
  • I have a public key whose fingerprint is 635A A154 F18F 18A5 8079 CB70 90B0 8072 243E 96CB

To claim this, I am signing this object:

@TheAshwanik
TheAshwanik / Start-Java.sh
Last active April 20, 2017 12:13
Basic Shell Script to start JAVA
#!/bin/sh
BIN_DIR=`dirname "$0"`
BIN_DIR=`( cd "$BIN_DIR" && pwd)`
cd $BIN_DIR/..
# memory settings
HEAP_OPTS="-Xms64m -Xmx512m -XX:PermSize=32m -XX:MaxPermSize=128m"
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. Thanks.|
{It is|It's} {appropriate|perfect|the best} time to make some plans for the future and {it is|i
var http = require('follow-redirects').http;
//top 1000
var domains = ["google.com","facebook.com","youtube.com","yahoo.com","baidu.com","wikipedia.org","qq.com","linkedin.com","live.com","twitter.com","amazon.com","blogspot.com","taobao.com","google.co.in","sina.com.cn","wordpress.com","yahoo.co.jp","yandex.ru","bing.com","ebay.com","google.de","vk.com","hao123.com","163.com","tumblr.com","pinterest.com","google.co.uk","google.fr","googleusercontent.com","microsoft.com","msn.com","ask.com","mail.ru","google.co.jp","google.com.br","weibo.com","apple.com","paypal.com","google.ru","instagram.com","google.com.hk","xvideos.com","blogger.com","google.it","tmall.com","google.es","imdb.com","soso.com","craigslist.org","sohu.com","360.cn","go.com","amazon.co.jp","stackoverflow.com","bbc.co.uk","xhamster.com","google.com.mx","neobux.com","google.ca","fc2.com","cnn.com","imgur.com","alibaba.com","wordpress.org","flickr.com","espn.go.com","adcash.com","huffingtonpost.com","odnoklassniki.ru","t.co","conduit.com","thepira
#in your view
<%= form_for @post, remote: true do |f| %>
#form inputs
<% end %>
#then in your controller
def do_something
//= require bootbox.min
@TheAshwanik
TheAshwanik / CSS
Last active December 23, 2015 05:29
A Gist for jQuery plugin for Email Address like on FB & Google+? http://jsbin.com/UjOJip/8
body{
font-family:Helvetica,Arial;
background:#f4f4f4;
}
h2{
font-weight:normal;
}
#invite{
position:relative;
background:#fff;
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :cors_preflight_check
after_filter :cors_set_access_control_headers
# For all responses in this controller, return the CORS access control headers.
def cors_set_access_control_headers
headers['Access-Control-Allow-Origin'] = '*'