Skip to content

Instantly share code, notes, and snippets.

View Pctg-x8's full-sized avatar
:octocat:
にゃーん

S.Percentage Pctg-x8

:octocat:
にゃーん
View GitHub Profile
@Pctg-x8
Pctg-x8 / build.hs
Created September 2, 2017 08:06
HLSL Shader BuildBot in Haskell
#!/usr/bin/env stack
-- stack --resolver=lts-8.10 runghc --package=yaml --package=fsnotify --package=system-filepath --package=turtle
{-# LANGUAGE OverloadedStrings #-}
-- HLSL Shader BuildBot in Haskell
import Prelude hiding (FilePath)
import System.FSNotify (withManagerConf, watchDir, Event(..), eventPath, WatchConfig(WatchConfig), confPollInterval, confUsePolling, Debounce(Debounce), defaultConfig)
import Filesystem.Path (dropExtension, replaceExtension, extension)
import qualified Filesystem.Path.CurrentOS as FilePath2
import Control.Concurrent (threadDelay)
@Pctg-x8
Pctg-x8 / ppfx.h
Created December 23, 2016 15:12
PracticalPixelEffect Headers
#pragma once
/*
The MIT License (MIT)
Copyright (c) 2016 S.Percentage
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
@Pctg-x8
Pctg-x8 / Main.cpp
Created January 14, 2016 15:38
PracticalPixelEffects Test
#include <Siv3D.hpp>
// PracticalPixelEffects: Wrapper classes for Pixel Shader things(Complex PostEffect/GPU-Accelerated Procedural Texture Generation)
// Accelerated(GPU) Texture Generator Base
class AcceleratedGeneratorBase
{
struct TextureInfoBuffer
{
float width, height, aspect_wh, pad;
@Pctg-x8
Pctg-x8 / .nyagos
Last active August 26, 2015 14:30
nyagos customize script(gitのステータスと作業ブランチ名、あと直前のコマンドの状態によって顔文字が変化する)
-- nyagos prompt customize script --
-- ref
---- https://github.com/zetamatta/nyagos/pull/26
---- http://ascii-table.com/ansi-escape-sequences.php
---- http://qiita.com/JugnautOnishi/items/551d040cd81a77c28739
---- http://qiita.com/zetamatta/items/c08586c85fa73c182a7a
---- http://qiita.com/kubosho_/items/c200680c26e509a4f41c
---- http://qiita.com/nocd5/items/b9a149c69416da9cddec
---- http://unko.client.jp/AA/fgiko1.html
@Pctg-x8
Pctg-x8 / ScriptEngine.cpp
Last active August 29, 2015 14:24
ScriptEngine: Sample AngelScript Compact Loader/Runtime
#include "ScriptEngine.h"
// place AngelScript include files into "as" directory
// and place add-ons folder into "as/addons" directory
#include "as/addons/scriptstdstring/scriptstdstring.h"
// AngelScript Runtime/Loader
#ifdef _DEBUG
class A
{
int d;
}
class B : A
{
int a;
}
struct P(Type)
{
@Pctg-x8
Pctg-x8 / AnimationManagerMain.cpp
Created January 29, 2015 18:43
AnimationManager: classes which provide simply easing animations on Siv3D(January 2015)
#include <Siv3D.hpp>
/// AnimationManagerおよび関係クラス ///
/// AnimationManager: Siv3D January 2015より追加されたEasing名前空間のものをより扱いやすくする補助クラスです。
class IAnimationParameter
{
// テンプレートの情報を消すための下駄
friend class AnimationManager;
virtual void process(double t) = 0;