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 Program { | |
public static void main() { | |
var cmd = new SomeCommand(4); | |
CommandResult res = cmd.Execute(); | |
Console.WriteLine(res.ToString()); | |
} | |
} |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script> | |
$(function() { | |
getHelloWorldAsync().done(function(res) { | |
$("#content").text(res + " world"); | |
}); | |
}); |
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
import javax.xml.xpath.XPathConstants | |
import javax.xml.xpath.XPathFactory | |
// Set output filename of APK based on version code from manifest when doing release build | |
// Note: This script will add a couple of seconds to the build script build time | |
gradle.projectsEvaluated { | |
preReleaseBuild.doFirst { | |
android.applicationVariants.all { variant -> | |
// Check version number configured in AndroidManifest | |
if (variant.name != "release") return |
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
# This is a configuration file for ProGuard. | |
# http://proguard.sourceforge.net/index.html#manual/usage.html | |
-dontobfuscate | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-verbose | |
# Optimization is turned off by default. Dex does not like code run | |
# through the ProGuard optimize and preverify steps (and performs some | |
# of these optimizations on its own). |
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
/** | |
* Wrapper for the concrete Android logger | |
*/ | |
public class AndroidLogWriter implements ILogWriter { | |
public void println(int severity, String tag, String text) { | |
Log.println(severity, tag, text); | |
} | |
public void printException(String tag, Throwable tr) { | |
Log.e(tag, tr.getMessage(), tr); |
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
function global:Path-List() { | |
($env:path).split(";") | |
} | |
function global:Path-Remove() { | |
Param( | |
[Parameter(Mandatory=$TRUE,Position=1)] | |
[String] $ToRemove | |
) | |
$p=($env:path).split(";") | Where { $_ -ne $ToRemove } |
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 Resource : IDisposable | |
{ | |
private IntPtr nativeResource = Marshal.AllocHGlobal(100); | |
private AnotherResource managedResource = new AnotherResource(); | |
// Dispose() calls Dispose(true) | |
public void Dispose() | |
{ | |
Dispose(true); | |
GC.SuppressFinalize(this); |
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
USE [InfoClient] | |
GO | |
/****** Object: StoredProcedure [dbo].[GenerateInserts] Script Date: 09/30/2011 11:32:13 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER PROC [dbo].[GenerateInserts] | |
( |
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> | |
/// Returns an enumerator for the _Items class | |
/// </summary> | |
/// <returns>An enumerator for the _Items class</returns> | |
public IEnumerator GetEnumerator() | |
{ | |
return new ItemsEnumerator(this); | |
} | |
#endregion |
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
using System; | |
using System.ComponentModel; | |
using Csla; | |
using Csla.Core; | |
using ErrorEventArgs = Csla.Core.ErrorEventArgs; | |
namespace Business.Entities | |
{ | |
public delegate void ExceptionEventHandler(object sender, ErrorEventArgs args); |
OlderNewer