AWSのLambda 実行環境と利用できるライブラリで確認する。
2015年12月現在では、 AMI ID: アジアパシフィック(東京) リージョンの ami-cbf90ecb を使っている。
| import java.util.List; | |
| public class TestClass { | |
| public void ProcessInfo(List<InfoBase> infoList) { | |
| StringBuilder result = new StringBuilder(); | |
| for (int i = 0; i < infoList.size(); i++) { | |
| InfoBase info = infoList.get(i); | |
| if (this.Validate(info)) { | |
| StringBuilder infoData = this.ExtractData(info); |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
AWSのLambda 実行環境と利用できるライブラリで確認する。
2015年12月現在では、 AMI ID: アジアパシフィック(東京) リージョンの ami-cbf90ecb を使っている。
| # Add this to your nginx.conf under http { } | |
| server { | |
| listen 843; | |
| server_name localhost; | |
| location / { | |
| rewrite ^(.*)$ /crossdomain.xml; | |
| } |
| defmodule Pibblex.ErrorView do | |
| use Pibblex.View | |
| def render("404.json", _assings) do | |
| %{errors: [%{message: "Not Found", code: :not_found}]} | |
| end | |
| def render("404.html", _assigns) do | |
| %{errors: [%{message: "Not Found", code: :not_found}]} | |
| end |
| -module(date_util). | |
| -compile(export_all). | |
| epoch() -> | |
| now_to_seconds(now()) | |
| . | |
| epoch_hires() -> | |
| now_to_seconds_hires(now()) | |
| . |
| #!/bin/bash | |
| ## uploading to google | |
| ## rev: 22 Aug 2012 16:07 | |
| det=`date +%F` | |
| browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1" | |
| username="[email protected]" | |
| password="password" | |
| accountype="HOSTED" #gooApps = HOSTED , gmail=GOOGLE |
Follow these steps to install Graphite on a fresh Ubuntu 12.04 instance. Make sure you read and understand the commands because by the time you read this, things could be outdated.
# apt-get install libpq-dev
# apt-get install python-dev python-pip python-cairo python-psycopg2
# apt-get install python-django python-django-tagging
| -module(gs_up). | |
| -export([init/1, handle_call/3, terminate/2]). | |
| -record(state, { | |
| own_fields, | |
| field1, | |
| field2, | |
| field3 | |
| }). |