This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILURE: Build failed with an exception. | |
* What went wrong: | |
A problem occurred configuring root project 'hello-world'. | |
> Could not open no_buildscript class cache for build file 'D:\gradle-playground\hello-world\build.gradle' (\\omafp01.co | |
rp.planetci.com\ramc01\.gradle\caches\1.11\scripts\build_5trnq1oe4m84o6rmggev8gku4t\ProjectScript\no_buildscript). | |
> java.nio.channels.OverlappingFileLockException (no error message) | |
* Try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub TvFileNav_BeforeCollapse(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TvFileNav.BeforeCollapse | |
e.Node.Nodes.Clear() | |
e.Node.Nodes.Add("") | |
End Sub | |
Private Sub TvFileNav_BeforeExpand(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TvFileNav.BeforeExpand | |
' clear the expanding node so we can re-populate it, or else we end up with duplicate nodes | |
e.Node.Nodes.Clear() | |
' Get the directory representing this node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"latitude":41.9403795, | |
"longitude":-87.65318049999999, | |
"timezone":"America/Chicago", | |
"offset":-5, | |
"currently":{ | |
"time":1430755591, | |
"summary":"Mostly Cloudy", | |
"icon":"partly-cloudy-day", | |
"nearestStormDistance":9, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' <summary> | |
''' Deserializes a JSON string to an object of the specified type | |
''' </summary> | |
''' <typeparam name="T">Class of object this JSON data will be mapped to</typeparam> | |
''' <param name="jsonString">String containing the JSON to be deserialized</param> | |
''' <returns>Mapped object (of type T) representing the JSON data</returns> | |
Public Shared Function DeserializeJson(Of T)(ByVal jsonString As String) As T | |
Dim serializer As New DataContractJsonSerializer(GetType(T)) | |
Dim memStream As New MemoryStream(Encoding.UTF8.GetBytes(jsonString)) | |
Dim obj As T = DirectCast(serializer.ReadObject(memStream), T) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' <summary> | |
''' Displays an object's properties in a well-formatted manner. | |
''' </summary> | |
''' <param name="obj">Object to display</param> | |
''' <param name="numTabs">Number of tabs to prefix the object's properties with</param> | |
Public Shared Sub DisplayObject(ByVal obj As Object, Optional ByVal numTabs As Integer = -1) | |
' Define non-special types | |
Dim types As String() = {"String", "Boolean", "DateTime", "Integer", "Double", "Long"} | |
' Get the properties of this object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' <summary> | |
''' Fetches the response from a website or server, with the provided URL | |
''' </summary> | |
Public Shared Function HttpGet(ByVal url As String) As String | |
' Create the HTTP request | |
Dim req As HttpWebRequest = HttpWebRequest.Create(url) | |
' Open a connection (stream) using the request | |
Dim stream As Stream = req.GetResponse.GetResponseStream() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package java.util; | |
import java.util.function.Consumer; | |
import java.util.function.Predicate; | |
import java.util.function.UnaryOperator; | |
public class ArrayList<E> extends AbstractList<E> | |
implements List<E>, RandomAccess, Cloneable, java.io.Serializable | |
{ | |
private static final long serialVersionUID = 8683452581122892189L; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* List object implementation */ | |
#include "Python.h" | |
#ifdef STDC_HEADERS | |
#include <stddef.h> | |
#else | |
#include <sys/types.h> /* For size_t */ | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayList<E> { | |
transient Object[] elementData; // (1) | |
private static final Object[] EMPTY_ELEMENTDATA = {}; // (3) | |
public ArrayList() { | |
super(); | |
this.elementData = EMPTY_ELEMENTDATA; // (2) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayList<E> { | |
transient Object[] elementData; | |
private static final int DEFAULT_CAPACITY = 10; // (4) | |
private static final Object[] EMPTY_ELEMENTDATA = {}; | |
private int size; | |
public boolean add(E e) { | |
ensureCapacityInternal(size + 1); // (1) | |
elementData[size++] = e; // (6) | |
return true; |
OlderNewer