Skip to content

Instantly share code, notes, and snippets.

@Akanksha08
Akanksha08 / Soap.java
Created June 21, 2019 11:16
SOAP Service Interface for Salesforce WSDL
package com.sforce.soap.enterprise;
import java.util.concurrent.Future;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.RequestWrapper;
@Akanksha08
Akanksha08 / salesforce.wsdl
Created June 21, 2019 11:14
Salesforce WSDL
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Salesforce.com Enterprise Web Services API Version 45.0
Generated on 2019-06-13 06:46:03 +0000.
Package Versions:
Trailhead Playground (Version: 1.11, Namespace: th_con_app)
Copyright 1999-2019 salesforce.com, inc.
All Rights Reserved
@Akanksha08
Akanksha08 / The Technical Interview Cheat Sheet.md
Created February 26, 2018 06:36 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
<wsp:Policy
xmlns:wsp="..."
xmlns:sp="...">
<sp:SupportingTokens>
<wsp:Policy>
<sp:UsernameToken sp:IncludeToken="http://docs.oasis-
open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
<wsp:Policy>
<sp:NoPassword/>
</wsp:Policy>
<wsp:Policy xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="akanksha_custom_policy"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
<!-- Empty Exactly One Assertion does not work -->
<wsp:ExactlyOne></wsp:ExactlyOne>
<!-- Empty All Assertion works
<wsp:All></wsp:All>
-->
</wsp:Policy>
@Akanksha08
Akanksha08 / ClassLoaderLeakExample.java
Created September 14, 2016 18:56 — forked from dpryden/ClassLoaderLeakExample.java
Example of a ClassLoader leak in Java
import java.io.IOException;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
/**
* Example demonstrating a ClassLoader leak.
*
* <p>To see it in action, copy this file to a temp directory somewhere,
@Akanksha08
Akanksha08 / irc.md
Created February 25, 2016 18:06 — forked from xero/irc.md
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
[[local|localrc]]
ADMIN_PASSWORD=nova
MYSQL_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=nova
#Adding host-ip manually required on Ubuntu version > 13.04
HOST_IP=127.0.0.1
@Akanksha08
Akanksha08 / diff.txt
Created July 30, 2014 18:03
Diff of heap dumps
64079 Bignum 2306844
64078 Leaky::MyData 1281560
64078 Time 2819432
64075 Hash::Bucket 2819300
63876 Rubinius::ByteArray 3305836
7 Rubinius::MonoInlineCache 476
-1 Rubinius::BlockEnvironment -36
-1 Proc -32
-2 Rubinius::VariableScope -144
-2 Rubinius::LookupTable -56