Installing Supervisor on OS X is simple:
sudo pip install supervisor
This assumes you have pip. If you don't:
| package main | |
| import ( | |
| "bytes" | |
| "code.google.com/p/go.crypto/openpgp" | |
| "encoding/base64" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| ) |
RecyclerView does not have an OnItemClickListener like it's predecessor, ListView. However, detecting item clicks is pretty simple.
Set an OnClickListener in your ViewHolder creation:
private class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
public static class ViewHolder extends RecyclerView.ViewHolder| hhvm.server.type = fastcgi | |
| hhvm.server.file_socket = /run/shm/hhvm.sock | |
| hhvm.server.apc.enable_apc = true | |
| hhvm.server.apc.table_type = concurrent | |
| hhvm.server.apc.expire_on_sets = true | |
| hhvm.server.apc.purge_frequency = 4096 | |
| hhvm.eval.jit = true | |
| hhvm.eval.jit_warmup_requests = 50 |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| /// <reference path="angular.d.ts" /> | |
| /// <reference path="angular-resource.d.ts" /> | |
| interface IEmployee extends ng.resource.IResource<IEmployee> | |
| { | |
| id: number; | |
| firstName : string; | |
| lastName : string; | |
| } | |
| interface IEmployeeResource extends ng.resource.IResourceClass<IEmployee> |
| <?php | |
| require 'vendor/autoload.php'; | |
| $transport = Swift_SmtpTransport::newInstance('localhost', 25); | |
| $mailer = Swift_Mailer::newInstance($transport); | |
| // DKIM 用の Signer を作成する | |
| $privateKey = file_get_contents('./default.private'); | |
| $domainName = 'example.com'; |
| # Change YOUR_TOKEN to your prerender token | |
| # Change example.com (server_name) to your website url | |
| # Change /path/to/your/root to the correct value | |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /path/to/your/root; | |
| index index.html; |
| # Change YOUR_TOKEN to your prerender token | |
| # Change http://example.com (at the end of the last RewriteRule) to your website url | |
| <IfModule mod_headers.c> | |
| RequestHeader set X-Prerender-Token "YOUR_TOKEN" | |
| </IfModule> | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On |
| <?php | |
| /** | |
| * Use Redux Framework with Timber | |
| * | |
| * Use this class like you would Redux Framework. All options are automatically | |
| * made available in your Timber template context (by default as 'options'). | |
| * | |
| * Extra optional arguments in the $args array: | |
| * - 'timber_context' (string) Name of the variable in template context. |