text:
package com.ironhide.movies;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.squareup.picasso.Picasso;

public class DetailActivity extends AppCompatActivity {
    public static final String MovieName = "Movie";
    public static final String MovieDescription = "MovieDescription";
    public static final String MoviePoster = "Poster";

    private final static String BaseURL = "http://image.tmdb.org/t/p/original/";
    private final static String LogTAG = DetailActivity.class.getName();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent = getIntent();
        String movieName = intent.getStringExtra(MovieName);
        String description = intent.getStringExtra(MovieDescription);
        String posterUrl = intent.getStringExtra(MoviePoster);
        setContentView(R.layout.activity_detail);
        getSupportActionBar().setTitle(movieName);
        TextView nameView = (TextView) findViewById(R.id.name);
        nameView.setText(movieName);
        TextView descriptionView = (TextView) findViewById(R.id.description);
        descriptionView.setText(description);
        ImageView imageView = (ImageView) findViewById(R.id.moviePoster);
        Picasso.with(this).load(BaseURL+posterUrl).into(imageView);
    }
}


text:
+++
draft = false
date = "2016-12-24T13:28:25-05:00"
title = "Butter Frosting"
description = "Simple, yet delicious vanilla frosting."

+++

## Ingredients

* 6 tbsp butter
* 4 1/2 cups sifted confectioners' sugar (approximate)
* 1/4 cup milk
* 1 tsp vanilla extract
* 1/2 tsp almond extract
* Food coloring (optional)

## Directions

1. In a bowl beat butter or margarine until fluffy.
2. Gradually add 2 cups of the sugar, beating well.
3. Beat in the milk, vanilla, and almond
4. Alternate adding sugar and beating until a good spreading consistency is reached.
5. Tint with food coloring if desired.

## Notes

Be careful adding sugar so that the ratio of sugar : milk : butter doesn't get too out of whack.

redpajama_set_name: RedPajamaGithub


text:
var eoa = require('..')(),
_ = require('underscore');

var characterName = (process.argv[2] ? process.argv[2] : 'squirrel girl');

eoa.characters({name : characterName}, function(err, data){
  if(err) throw new Error(err);
  var characterId = data[0].id;

  eoa.character(characterId, function(err, data){
    if(err) throw new Error(err);

    console.log('name: %s', data[0].name);
    console.log('description: %s', data[0].description)

    // Notice the api functions are reverse from their api url
    // /character/{id}/comics becomes comicsWithCharacterId
    eoa.comicsWithCharacterId(characterId, function(err, data){
      if(err) throw new Error(err);
      console.log('(%d) comics', data.length);
    });

    // with some input args and display
    eoa.comicsWithCharacterId(characterId, {
      format: 'comic',
      noVariants : true,
      orderBy : 'onsaleDate'}, function(err, data){
	if(err) throw new Error(err);
	console.log('(%d) "standard" comics: %s', data.length, ((data.length > 30) ? '(showing 30)' :  ''));
	_.chain(data).first(30).pluck('title').each(function(s, i){ console.log('  %d. %s', (i+1), s) });
      });

    eoa.eventsWithCharacterId(characterId, function(err, data){
      if(err) throw new Error(err);
      console.log('(%d) events', data.length);
    });

    eoa.seriesWithCharacterId(characterId, function(err, data){
      if(err) throw new Error(err);
      console.log('(%d) series', data.length);
    });

    eoa.storiesWithCharacterId(characterId, function(err, data){
      if(err) throw new Error(err);
      console.log('(%d) stories', data.length);
    });

  });

});


text:
package ndkdemo.binea.com.ndkdemo;

import android.app.Application;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.widget.Toast;

/**
 * Created by xubinggui on 1/26/16.
 */
public class CustomApplication extends Application {

    @Override public void onCreate() {
        super.onCreate();

        final PackageManager pm = getApplicationContext().getPackageManager();
        ApplicationInfo info;
        try {
            info = pm.getApplicationInfo(this.getPackageName(), 0);
        } catch (final PackageManager.NameNotFoundException e) {
            info = null;
        }

        final String applicationName = (String) (info != null ? pm.getApplicationLabel(info) : "(unknown)");
        Toast.makeText(getApplicationContext(), applicationName, Toast.LENGTH_SHORT).show();
    }
}


text:
package com.alibaba.fastjson.parser;

@Deprecated
public class JavaBeanMapping extends ParserConfig {

    private final static JavaBeanMapping instance = new JavaBeanMapping();

    public static JavaBeanMapping getGlobalInstance() {
        return instance;
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/footer_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:padding="15dp">

    <TextView
        android:id="@+id/footer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="bottom"
        android:fontFamily="sans-serif-medium"
        android:text="@string/footer"
        android:textAppearance="@style/TextAppearance.AppCompat.Small"
        android:textColorLink="@color/colorOrange" />

</RelativeLayout>


text:
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

/**
 * Handle default routes, and send them to the documentation
 */
Route::any('{docs}', function()
{
	return Redirect::to(Config::get('app.docs_url') . '/v1/docs');
})->where('docs', '(docs|documentation|v1|v1/docs|v1/documentation)?');

// FIXME need to unit test these
Route::group(['prefix' => 'v1'], function()
{
	// Route::group(['middleware' => 'auth'], function()
	// {
		// handle an api request
		Route::any('/{model}/{id?}', 'ApiController@handleRequest');
	// });

	// Global Options Catch
	Route::options('{path?}', function($path) { return Response::make('*', 200); })->where('path', '.+');
});