Skip to content

Instantly share code, notes, and snippets.

openapi-generator generate \
-i ./doc/swagger_spec.yaml \
-g typescript-axios \
-o ./client/ \
-c ./swagger/web/config.json \
-t ./swagger/web/template
@itoz
itoz / gist:76ba6783fa1540accac09c7664dda8e3
Created January 31, 2020 07:27
.vscode/extentions.json for nuxt
{
"recommendations": [
"jakob101.relativepath",
"eamodio.gitlens",
"wayou.vscode-todo-highlight",
"octref.vetur",
"dbaeumer.vscode-eslint"
],
"unwantedRecommendations": []
}
@itoz
itoz / gist:0fc7ef712251c1e149264676b2363b6f
Created January 31, 2020 07:22
eslintrc.js for nuxt
module.exports = {
plugins: [
"vue"
],
extends: [
'@nuxtjs',
'plugin:nuxt/recommended',
'plugin:vue/recommended',
],
rules: {
@itoz
itoz / gist:eea1218ea83f7b4f0733
Created September 19, 2014 08:21
[objc] ダブルクォートをシングルクォートにし、改行をとる JSにOBJECTテキスト渡すときとかにつかう
//ダブルクォートをシングルクォートにし、改行をとる
NSStirng * string = @"hogehoge";
string = [string stringByReplacingOccurrencesOfString:@"\"" withString:@"\'"];
string = [string stringByReplacingOccurrencesOfString:@"\n" withString:@""];
@itoz
itoz / file0.m
Created April 9, 2014 02:08
[objc][memo] BundleのJSONを読み込んでNSArrayにする ref: http://qiita.com/itoz/items/62a45eca3d59e0d60ded
//------------------------------
// JSONを読み込む
//------------------------------
NSError *error0 = nil;
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"local" ofType:@"json"];
NSString *jsonString = [[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error: &error0];
NSData *jsonData = [jsonString dataUsingEncoding:NSUnicodeStringEncoding];
if(error0){NSLog(@"よみこみえらー");}
@itoz
itoz / file0.xml
Created June 25, 2012 17:59
FDT5.5 で AIR3.3 iOS USBデバッグするためのANTテンプレート ref: http://qiita.com/items/0bb69a83781b48707aec
<?xml version="1.0" encoding="UTF-8"?>
<project name="**********">
<!-- =====================================================================================
FDT5.5 で AIR3.3 iOS USBデバッグするためのANTテンプレート
-->
<property name="PROJ_NAME" value="**********"></property>
@itoz
itoz / file0.txt
Created June 20, 2012 12:00
[AIR] ローカルに画像保存 ref: http://qiita.com/items/7ba6dcd5fe6ecbe6e196
/**
* copyright (c) 2012 www.itoz.jp
* @author itoz
* @since 2012/06/20 19:55:22
*/
package jp.itoz.air.util
{
import flash.events.ErrorEvent;
import flash.filesystem.File;
import flash.filesystem.FileMode;
@itoz
itoz / ClothMotion.as
Created February 29, 2012 09:07
Away3D 4.0 beta PlaneGeometryの頂点を移動し、布のゆらぎを表現 ref: http://qiita.com/items/2895
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
*/
package
{
import away3d.containers.View3D;
import away3d.core.base.SubGeometry;
import away3d.debug.AwayStats;
import away3d.entities.Mesh;
@itoz
itoz / RandomMoveVertex.as
Created February 29, 2012 07:44
Away3d 4.0 beta Planeの頂点をランダムに移動し、地面ぽくする ref: http://qiita.com/items/2894
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
*/
package
{
import away3d.containers.View3D;
import away3d.core.base.SubGeometry;
import away3d.debug.AwayStats;
import away3d.entities.Mesh;
@itoz
itoz / CameraLookAt.as
Created February 29, 2012 06:08
Away3D 4.0 beta カメラの注視点を指定 ref: http://qiita.com/items/2892
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
*/
package
{
import flash.geom.Vector3D;
import away3d.debug.AwayStats;
import away3d.containers.View3D;