This file contains hidden or 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
| ----------------------------- MODULE BlogSample ----------------------------- | |
| EXTENDS TLC, Integers | |
| VARIABLES f | |
| Init == f = [prof |-> "", num |-> 0] | |
| F == [prof : {"Nine", "Inch", "Nails"}, num: 0..5] | |
| FCreate(p, n) == /\ f.prof = "" |
This file contains hidden or 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
| # create your ami list. Sorted by CreationDate ASC | |
| aws ec2 describe-images --profile <Your Profile> --owners "AMI Owner Id" | jq -r '.Images[] | {imageId: .ImageId, snapshotId: .BlockDeviceMappings[].Ebs.SnapshotId, creationDate: .CreationDate} | [.imageId, .snapshotId, .creationDate] | @csv' | sort -t, -k3 |
This file contains hidden or 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
| name := """Play2MemcachedSample""" | |
| version := "1.0-SNAPSHOT" | |
| lazy val root = (project in file(".")).enablePlugins(PlayJava) | |
| scalaVersion := "2.11.1" | |
| // required to resolve `spymemcached`, the plugin's dependency. | |
| //resolvers += "Spy Repository" at "http://files.couchbase.com/maven2" |
This file contains hidden or 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
| // snip | |
| /*global define*/ | |
| if (typeof define === 'function' && define.amd) { | |
| define(['moment'], factory); // AMD | |
| } else if (typeof exports === 'object') { | |
| // module.exports = factory(require('moment')); // Node | |
| module.exports = factory(require('cloud/moment-with-langs.js')); // modify for Parse.com | |
| } else { | |
| factory(root.moment); // Browser | |
| } |
This file contains hidden or 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 jp.classmethod.colorapp.test.gradientsensor.util; | |
| import java.util.List; | |
| import android.content.Context; | |
| import android.hardware.Sensor; | |
| import android.hardware.SensorEventListener; | |
| import android.hardware.SensorManager; | |
| import android.util.Log; |
This file contains hidden or 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
| Tutorialを参照するときの注意 | |
| http://www.rozengain.com/blog/2011/08/24/rajawali-tutorial-1-basic-setup-a-sphere/ | |
| このままやるとエラーでUnsatisfiedLinkErrorでこけます。 | |
| 1. RajawaliをDL | |
| https://github.com/MasDennis/Rajawali | |
| 2.compiled libraryを利用するときは、現在Nativeのライブラリが足りないので、Sampleから引っ張ってくる |
This file contains hidden or 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
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| import java.nio.FloatBuffer; | |
| import java.util.Random; | |
| import javax.microedition.khronos.egl.EGLConfig; | |
| import javax.microedition.khronos.opengles.GL10; | |
| import jp.classmethod.komuro.openglsurfaceview.R; | |
| import android.content.Context; |