Skip to content

Instantly share code, notes, and snippets.

View rettuce's full-sized avatar

you tanaka rettuce

View GitHub Profile
@rettuce
rettuce / jsonSave.ts
Last active October 20, 2022 07:52
File System Access API を使って Vue.js でObjectをjsonファイルにローカル保存。
fileSave( output_obj:Object ) {
let saveFileOptions = {
suggestedName: "xxxxxx.json",
types: [
{
description: "JSON Files",
accept: {
"application/json": [".json"],
},
},
@rettuce
rettuce / memo.md
Created October 20, 2017 16:55
first React.js + TypeScript

環境

とりあえずこの辺り使ってやってみたいなと思ったのをざっと書き出し。

  • webpack
  • yarn
  • react
  • typescript
  • scss
@rettuce
rettuce / DrawingTest VBO + InterleavedArrays
Last active April 7, 2016 01:54
VBO + InterleavedArrays Drawing Test. use openFrameworks.
#include "ofMain.h"
#include "BuildSetting.h"
#define BUFFER_OFFSET(bytes) ((GLubyte *)NULL + (bytes))
#define countof(array) (sizeof(array)/sizeof((array)[0]))
class ofApp : public ofBaseApp
{
GLuint buffers[2]; // vert+normal+texcord, index
@rettuce
rettuce / osxSetup.command
Created January 20, 2016 16:05
osx setup command. use com.apple.dock.plist
#!/bin/sh
### Desktop & Screen Saver
# Desktopを黒に
echo "Change Desctop Pictures"
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Pro Ultra Dark.png"'
# ScreenSaver Kill
echo "Disable screensaver"
@rettuce
rettuce / Sketch_GoogleCloudVision
Created January 13, 2016 11:54
GoogleCloudVision Sketch for openFrameworks.
#include "ofMain.h"
#include "ofxJSON.h"
#include "ofxHttpUtils.h"
struct GData{
public:
string description;
float score;
};
@rettuce
rettuce / Multi Thread Sequence Exporter
Last active August 29, 2015 14:27
openFrameworks ofxSequenceExport.h / Multi Thread Sequence Exporter.
#include "ofMain.h"
#include "ofxSequenceExport.h"
const unsigned int WIDTH = 1920;
const unsigned int HEIGHT = 1080;
class ofApp : public ofBaseApp
{
ofxSequenceExport expo;
@rettuce
rettuce / oF SimpleSyphon.app
Last active August 29, 2015 14:14
openFrameworks SimpleSyphon.app / output Full HD Size webcam.
#include "ofMain.h"
#include "ofxSyphon.h"
const unsigned int WIDTH = 1920;
const unsigned int HEIGHT = 1080;
class ofApp : public ofBaseApp
{
ofVideoGrabber video;
ofxSyphonServer mainOutputSyphonServer;
#include "testApp.h"
#include "ofxUI.h"
#include "ofxOpenCv.h"
#define TITLE "sketch wonderful ver.000"
ofVideoPlayer video;
ofxCvColorImage ofxSrcVid,ofxDstVid; // 画像取得用、描画用
IplImage *srcVid, *dstVid, *markersVid;