This file contains hidden or 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
Embed All Files: <script src="http://gist.github.com/337370.js"></script> | |
Embed This File: <script src="http://gist.github.com/337370.js?file=gistfile1.txt"></script> | |
Another test. This time it is a public Gist. |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" | |
DefaultTargets="PrintValues" | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Add>$([MSBuild]::Add(5,9))</Add> | |
<Subtract01>$([MSBuild]::Subtract(90,768))</Subtract01> | |
<Mult01>$([MSBuild]::Multiply(4,9))</Mult01> | |
<Div01>$([MSBuild]::Divide(100,5.2))</Div01> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- This uses a .targets file to offload performing the build --> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration> | |
<OutputPath Condition=" '$(OutputPath)'=='' ">$(MSBuildProjectDirectory)\BuildArtifacts\bin\</OutputPath> | |
</PropertyGroup> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Sample Demonstrates Inline Tasks © 2010 Sayed Ibrahim Hashimi --> | |
<Project ToolsVersion="4.0" | |
DefaultTargets="Demo" | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask | |
TaskName="CreateGuid02" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" > |
This file contains hidden or 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
<!-- Sample Demonstrates Inline Tasks © 2010 Sayed Ibrahim Hashimi --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" | |
DefaultTargets="Demo" | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask | |
TaskName="FilterList" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" > |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- MSBuild Batching --> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ItemGroup> | |
<fruit Include="apple"> | |
<consistency>firm</consistency> | |
</fruit> | |
<fruit Include="orange"> | |
<consistency>pulpy</consistency> |
This file contains hidden or 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
// Json (de)serializer for GWT. | |
// To work with JSON in GWT: | |
public class Customer extends JavaScriptObject { | |
public final native String getFirstName() /*-{ | |
return this.first_name; | |
}-*/; | |
public final native void setFirstName(String value) /*-{ | |
this.first_name = value; | |
}-*/; |
This file contains hidden or 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 com.google.sitebricks.binding; | |
import com.google.inject.Inject; | |
import com.google.inject.Provider; | |
import com.google.inject.servlet.SessionScoped; | |
import net.jcip.annotations.ThreadSafe; | |
import javax.servlet.http.HttpSession; | |
import java.io.Serializable; |
This file contains hidden or 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
import static org.appfuse.gwt.service.client.rest.RestConstants.*; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.http.client.Header; | |
import com.google.gwt.http.client.Request; | |
import com.google.gwt.http.client.RequestBuilder; | |
import com.google.gwt.http.client.RequestCallback; | |
import com.google.gwt.http.client.RequestException; | |
import com.google.gwt.http.client.Response; | |
/** |
This file contains hidden or 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 com.lingona.rockgwt.front.client; | |
import com.google.gwt.core.client.EntryPoint; | |
import com.google.gwt.core.client.GWT; | |
import com.google.gwt.event.dom.client.ClickEvent; | |
import com.google.gwt.event.dom.client.ClickHandler; | |
import com.google.gwt.http.client.Request; | |
import com.google.gwt.http.client.RequestBuilder; | |
import com.google.gwt.http.client.RequestCallback; | |
import com.google.gwt.http.client.RequestException; |
OlderNewer