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 sublime | |
import sublime_plugin | |
import webbrowser | |
class OpenUrlCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
s = self.view.sel()[0] | |
# Expand selection to possible URL |
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
# Pretty URL (remove last index.html) | |
# usage: {{ post.url | pretty }} | |
module Jekyll | |
module Pretty | |
def pretty(url) | |
if url[-10..-1] == "index.html" | |
url = url[0..-11] | |
end |
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
var gulp = require("gulp"); | |
var gutil = require("gulp-util"); | |
var notify = require('gulp-notify'); | |
var source = require("vinyl-source-stream"); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require("browserify"); | |
var watchify = require("watchify"); | |
var babelify = require("babelify"); | |
var browserSync = require("browser-sync").create(); |
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
using UnityEngine; | |
using UnityEngine.XR; | |
namespace HTC.UnityPlugin.StereoRendering | |
{ | |
public class UnityXRParamFactory : IDeviceParamFactory | |
{ | |
public int GetRenderWidth() | |
{ | |
return XRSettings.eyeTextureWidth; |
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
<!-- Assets/WebGLTemplates/FullWindow あたりに格納して Player Settings で選択 --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>%UNITY_WEB_NAME%</title> | |
<script src="%UNITY_WEBGL_LOADER_URL%"></script> | |
<script> | |
const gameInstance = UnityLoader.instantiate("gameContainer", "%UNITY_WEBGL_BUILD_URL%"); |
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 * as PIXI from 'pixi.js' | |
import backgroundImageURL from '/assets/images/background.jpg' | |
const application = new PIXI.Application() | |
const screenW = 1024 | |
const screenH = 1024 | |
const resize = () => { |
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
def unity = 'C:\\Program Files\\Unity\\Hub\\Editor\\2019.3.0f6\\Editor\\Unity.exe' | |
pipeline { | |
agent any | |
triggers { | |
pollSCM('H/5 * * * *') | |
} | |
stages { |
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: CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
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
public class KonamiCommand | |
{ | |
readonly OVRInput.RawButton[] sequenceButtons = | |
{ | |
OVRInput.RawButton.LThumbstickUp, | |
OVRInput.RawButton.LThumbstickUp, | |
OVRInput.RawButton.LThumbstickDown, | |
OVRInput.RawButton.LThumbstickDown, | |
OVRInput.RawButton.LThumbstickLeft, | |
OVRInput.RawButton.LThumbstickRight, |
OlderNewer