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 com.tingle.abeltrac.ui.util; | |
import android.content.res.Resources; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import com.actionbarsherlock.app.SherlockFragmentActivity; | |
import com.tingle.abeltrac.R; | |
public class DevicePagerAdapter extends FragmentPagerAdapter { | |
private final Resources resources; |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web.Mvc; | |
using System.Web.Mvc.Html; | |
using System.Web.Routing; | |
namespace MvcApplication1 { | |
public static class HtmlExtensions { |
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 com.myapphelper.util; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.Date; | |
import java.util.List; | |
import org.apache.http.HttpResponse; |
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 android.support.v7.app; | |
import android.content.Context; | |
import android.content.pm.ActivityInfo; | |
import android.content.pm.PackageManager; | |
import android.content.res.Configuration; | |
import android.content.res.TypedArray; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.support.v4.app.ActionBarDrawerToggle; |
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
#include <LPC13xx.h> | |
#include <stdbool.h> | |
#include "i2c.h" | |
#include <time.h> | |
#include "pcf8563.h" | |
tm_t timestamp; | |
int main(void) { | |
SystemCoreClockUpdate(); /* Initialize CPU and CMSIS */ |
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
internal sealed class NginxWrapper : StatelessService | |
{ | |
public NginxWrapper(StatelessServiceContext context) : base(context) { } | |
protected override async Task RunAsync(CancellationToken cancellationToken) | |
{ | |
// listen to changes in configuration | |
Context.CodePackageActivationContext.ConfigurationPackageModifiedEvent += OnConfigurationPackageModified; | |
ServiceEventSource.Current.ServiceMessage(Context, "Service started. Configuration changes listener registered"); | |
while (true) | |
{ |
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
# Build and test swift packages with GitVersion | |
trigger: | |
batch: true | |
branches: | |
include: | |
- master | |
pool: | |
vmImage: 'macos-latest' |
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 Microsoft.AspNetCore.JsonPatch; | |
using Microsoft.AspNetCore.Mvc.ModelBinding; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
public static JsonPatchDocumentExtensions | |
{ | |
public static void ApplyToSafely<T>(this JsonPatchDocument<T> patchDoc, |
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 Microsoft.AspNetCore.Mvc.Infrastructure; | |
using Microsoft.Extensions.DependencyInjection; | |
using System; | |
using System.Threading.Tasks; | |
namespace Microsoft.AspNetCore.Mvc | |
{ | |
/// <summary> | |
/// Represents an <see cref="ActionResult"/> that when executed | |
/// will write a file from a blob to the response. |