- Google Cloud Dataflow で Google BigQuery へストリーミング ETL するの巻
- Stackdriver Logging(Log Viewer)で見た目の良いログを出力するためのあれこれ
void setup() { | |
Serial.begin(9600); | |
pinMode(0, INPUT); | |
} | |
bool on = false; | |
bool keep = false; | |
void loop() { | |
int val = analogRead(A0); |
int BUTTON_PIN = 0; | |
int MAX_NUM_PIN = A0; | |
int OUTPUT_PIN = 5; | |
int button = LOW; | |
bool started = false; | |
bool end = false; | |
int max = 6; | |
int count = 0; | |
int value = 0; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/usr/bin/python -u | |
import sys | |
import os | |
import getopt | |
from supervisor import childutils | |
from datetime import datetime | |
class ProcessStateNotifier: |
using UnityEngine; | |
using UnityEditor; | |
[CustomEditor(typeof(MeshFilter))] | |
public class MeshInformation : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
var filter = target as MeshFilter; | |
string message = "Triangles: " + filter.sharedMesh.triangles.Length / 3 + " Vertices: " + filter.sharedMesh.vertices.Length; |
using UnityEngine; | |
using System.Linq; | |
public static class GizmosArrowDrawer | |
{ | |
public static void Draw(Vector3 pos, Vector3 direction, float arrowHeadLength = 0.25f, float arrowHeadAngle = 20.0f) | |
{ | |
Gizmos.DrawRay(pos, direction); | |
Vector3 right = Quaternion.LookRotation(direction) * Quaternion.Euler(0, 180 + arrowHeadAngle, 0) * new Vector3(0, 0, 1); |
au BufNewFile,BufRead *.rb,*.haml,*.erb,*.slim set nowrap tabstop=2 shiftwidth=2 | |
au BufNewFile,BufRead *.cpp,*.h,*.hpp,*.cc set nowrap tabstop=4 shiftwidth=4 |