Skip to content

Instantly share code, notes, and snippets.

View dramforever's full-sized avatar
🖤
dramming

dram dramforever

🖤
dramming
  • Scarlet Devil Mansion, Gensokyo
View GitHub Profile
@dramforever
dramforever / slowvector.hs
Last active August 29, 2015 14:05
slow vector stuff
module Main (main) where
import Sound.Wav
import Data.Int
import qualified Data.ByteString.Lazy as B
import Data.ByteString.Lazy.Builder
import Data.Monoid
import System.Environment
import System.Exit
import System.IO
@dramforever
dramforever / hrevoice.hs
Created August 26, 2014 14:02
hrevoice
module Main where
import Sound.Wav
import Data.Int
import qualified Data.ByteString.Lazy as B
import Data.ByteString.Lazy.Builder
import Data.Monoid
import System.Environment
import System.Exit
import System.IO
#include <cstdio>
#include <climits>
using namespace std;
const int POOL_SIZE = 10000000;
const int QUEUE_SIZE = 10000000;
const int NODES_SIZE = 10000000;
struct edge_node {
int dest;
@dramforever
dramforever / ATP_Song_早八3_王瑞康.md
Last active August 29, 2015 14:05
这就是我的生物作业歌词啊怎么了

这是最终版


更新内容

  • v5 final version
  • v4: 修复了markdown标记
  • v3: 增加了版权说明
  • v2: 增加了前面这堆
@dramforever
dramforever / Flow.hs
Last active August 29, 2015 14:03
Haskell Flow Chart AST
{-# LANGUAGE GADTs #-}
{-# OPTIONS -Wall #-}
module Flow where
data FlowT m a where
Seq :: m a -> FlowT m b -> FlowT m b
Cond :: m Bool -> FlowT m a -> FlowT m a -> FlowT m a
Term :: m a -> FlowT m a
@dramforever
dramforever / Fix-sth.patch
Created June 29, 2014 09:16
wih-annotation 9f06ef
From 9f06ef6f88d2f9d6bfd40988bc7b7e667021f0d9 Mon Sep 17 00:00:00 2001
From: dramforever <catmimiao@me.com>
Date: Sun, 29 Jun 2014 17:11:46 +0800
Subject: [PATCH] Fix sth
---
app/controllers/images_controller.rb | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/app/controllers/images_controller.rb b/app/controllers/images_controller.rb
@dramforever
dramforever / thoughts.txt
Created January 24, 2013 15:33
My thoughts
Every time I browse the gists list, I feel like browsing twitter.
function ul(arr)
{
return "<ul><li>"+arr.join("</li><li>")+"</li></ul>";
}
function ol(arr)
{
return "<ol><li>"+arr.join("</li><li>")+"</li></ol>";
}