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
Shader "Mochi/Snow" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (0.5,0.8,1,1) | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Transparent" "Queue"="Transparent" "LightMode"="ForwardBase" "DisableBatching"="True" } | |
LOD 100 |
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
// dokka kara totte kita | |
function dataURItoBlob(dataURI) { | |
// convert base64/URLEncoded data component to raw binary data held in a string | |
var byteString; | |
if (dataURI.split(',')[0].indexOf('base64') >= 0) | |
byteString = atob(dataURI.split(',')[1]); | |
else | |
byteString = unescape(dataURI.split(',')[1]); | |
// separate out the mime component |
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
<!DOCTYPE html> | |
<head> | |
<title>test</title> | |
<script type="text/javascript"> | |
var cvs2,ctx2; | |
var cvs,ctx; | |
var cnt = 0; | |
function render(){ | |
ctx.fillStyle = "rgb(255,255,255)"; |
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 Prelude hiding (lines) | |
import System.Console.Haskeline | |
import System.Directory | |
import System.Process | |
import Data.List hiding (lines) | |
import Data.Maybe (fromMaybe) | |
import Data.Conduit hiding (mapM_) | |
import Data.Conduit.List (sourceList,consume) | |
import Data.Conduit.ProcessOld | |
import Data.ByteString.Char8 (ByteString,pack,unpack,lines) |
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
{-# LANGUAGE Rank2Types #-} | |
newtype List a = List (forall r. (a -> r -> r) -> r -> r) | |
instance Show a => Show (List a) where | |
show (List xs) = show $ xs (:) [] | |
nil :: List a | |
nil = List $ \f x -> x | |
cons :: a -> List a -> List a |
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
module logic_practice where | |
infixr 0 _$_ | |
infixl 10 _⇒_ _⇔_ | |
infixl 20 _∨_ _∧_ | |
infix 30 ¬_ | |
_$_ : {A B : Set} → (A → B) → A → B | |
_$_ f = f |
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
function *f(){ | |
var a = yield "Arg1"; | |
var b = yield "Arg2"; | |
return a+b; | |
} | |
function *add(g1,g2){ | |
var x = yield* g1; | |
var y = yield* g2; | |
return x+y; |
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
{-# LANGUAGE TupleSections #-} | |
import qualified Data.Map as M | |
import qualified Data.Set as S | |
import Data.List | |
import Data.Function | |
import System.IO | |
import Control.Monad | |
data C = O | I deriving (Eq, Ord, Enum, Show) |
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
{-# LANGUAGE TupleSections #-} | |
import Control.Applicative | |
import Control.Arrow | |
import Control.Lens hiding (Empty) | |
import Control.Monad | |
import Control.Monad.Trans.Class | |
import Control.Monad.State.Lazy hiding (State) | |
import Data.Char | |
import Data.Monoid |
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 Data.Monoid | |
import Data.List | |
import Data.Array | |
import Data.PriorityQueue.FingerTree | |
import Control.Lens | |
import Control.Applicative | |
import Control.Monad | |
import Control.Monad.State | |
import Math.NumberTheory.Primes |