Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
public static class InvoiceMixins | |
{ | |
public static IEnumerable<OrderItem> GetTaxableOrderItems(this IOrderItems invoice) { | |
if (invoice.GetOrderItems() == null) return new OrderItem[] { }; | |
return invoice.GetOrderItems().Where(oi => !oi.IsTaxFree); | |
} | |
// SubTotalSub :: (IExtendedPrice a) => a -> IEnumerable<OrderItem> -> decimal | |
public static decimal SubTotalSum<T>(this T invoice, IEnumerable<OrderItem> orderItems) | |
where T : IExtendedPrice { |
// | |
// NSString+Levenshtein.h | |
// PyHelp | |
// | |
// Modified by Michael Bianco on 12/2/11. | |
// <http://mabblog.com> | |
// | |
// Created by Rick Bourner on Sat Aug 09 2003. | |
// rick@bourner.com |
public class GithubController : Controller | |
{ | |
/// <summary> | |
/// Github OAuth Callback | |
/// </summary> | |
/// <param name="code"></param> | |
/// <returns></returns> | |
public JsonResult callback(string code) | |
{ | |
var clientId = "[insert yours]"; |
package com.squareup.example; | |
public abstract BaseActivity extends SherlockActivity { | |
private final ScopedBus scopedBus = new ScopedBus(); | |
protected ScopedBus getBus() { | |
return scopedBus; | |
} | |
@Override public void onPause() { |
/* | |
* Copyright 2012 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
-- AppleScript -- | |
-- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
-- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
-- This method is as good as its JXA counterpart. | |
-- Webkit variants include "Safari", "Webkit", "Orion". | |
-- Specific editions are valid, including "Safari Technology Preview". | |
-- "Safari" Example: | |
tell application "Safari" to return name of front document |
import com.google.gson.Gson; | |
import com.google.gson.JsonSyntaxException; | |
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.ParseError; | |
import com.android.volley.Request; | |
import com.android.volley.Response; | |
import com.android.volley.Response.ErrorListener; | |
import com.android.volley.Response.Listener; |
package com.example.network.requests; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Map; | |
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.ParseError; | |
import com.android.volley.Request; | |
import com.android.volley.Response; |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
/* | |
* Copyright 2013 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |