Skip to content

Instantly share code, notes, and snippets.

View tetsugps's full-sized avatar
🎯
Focusing

tetsugps tetsugps

🎯
Focusing
View GitHub Profile
@AnsisMalins
AnsisMalins / index.html
Last active June 4, 2021 07:04
Unity WebGL template that fills the viewport
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>%UNITY_WEB_NAME%</title>
<style>
body {
margin: 0;
}
@JohannesDeml
JohannesDeml / README.md
Last active September 16, 2023 01:55
Remove Unity mobile notification warning for WebGL builds

Remove warning

Unity shows the following warning on mobile devices up to Unity 2019.4: "Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway." This script helps you remove this warning

Live example

To see live examples see Unity Web GL Loading Test

Logic

The script will run after the build has completed and replace the checks from all generated javascript files.

Support

@korakot
korakot / sheet_df.py
Last active March 29, 2024 23:33
Save dataframe to Google Sheet from Colab
# authenticate
from google.colab import auth
auth.authenticate_user()
import gspread
from oauth2client.client import GoogleCredentials as GC
gc = gspread.authorize(GC.get_application_default())
# create, and save df
from gspread_dataframe import set_with_dataframe
title = 'New Sheet'
gc.create(title) # if not exist
@nkjzm
nkjzm / DebugMover.cs
Created June 17, 2019 10:53
Oculus Questで空間を自由に移動するデバッグ用スクリプト
using UnityEngine;
public class DebugMover : MonoBehaviour
{
[SerializeField]
Transform Head = null;
const float Angle = 30f;
const float DashSpeed = 5f;
const float SlowSpeed = 0.2f;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SakaITa
SakaITa / SharderReplacer.cs
Created February 3, 2019 12:19
Assets内の全MaterialのShaderを一括で置換するUnity Editor拡張
/*
* Assets内の全MaterialのShaderを一括で置換するEditor拡張
* 使い方
* 1.Editorディレクトリ配下にScriptを配置
* 2.AssetsにShaderReplaceが追加されるので、それを選択するとWindowsが開く
* 3.Beforeに置換前のShader、Afterに置換後のShaderを選択
* 4.Replaceボタンを押すと全部のMaterialでShaderを置換
*/
using System.Linq;
@ahmedengu
ahmedengu / driverless_ai.ipynb
Last active February 14, 2020 04:13
Installing and running H2O Driverless AI on google colab and access it using ngrok
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeromecoupe
jeromecoupe / webstoemp-gulpfile.js
Last active January 21, 2024 16:28
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@steven2358
steven2358 / ffmpeg.md
Last active May 1, 2024 23:11
FFmpeg cheat sheet
@Prasad9
Prasad9 / annotation.xml
Created November 6, 2017 13:54
A sample XML annotation file based on Pascal VOC format.
<annotation>
<folder>GeneratedData_Train</folder>
<filename>000001.png</filename>
<path>/my/path/GeneratedData_Train/000001.png</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>224</width>
<height>224</height>