markdown沙盒

Viewed 5447

大家可以在这里实验Markdown的各种语法。

markdown 沙盒
我们的目标是 把SegmentFault玩坏~

                                        
                                                                
                                                                
                                                                

no-highlight (x) -> x + 1

>< weakish搞个答案回答嘛~一修改我们楼下都被广播通知到了~O_O~

okay ~

6 Answers
~ ~
 
 ^
                                  
~ ~
· ·
 O
                                  

233333

                                
                                  
                                
                                  
                        


小塔楼
                                                  
                                                  
                                                  
                                        
                                        
                                        
                                        
                                        
                                        
                                        
                                        
                                                                
                                                                
                                       
                                       
                                       
                                        
                                        
                                                
                                                
                                                

Sorry, but princess peach is in another castle

看到你的评论才想起水管工……

占位测试测试


栏数较多的表格

Software Maintainer Development status Repository model Concurrency model License Platforms supported Cost
AccuRev SCM AccuRev, Inc. actively developed Client–server Merge or lock Proprietary Most Java Platforms (Unix-like, Windows, OS X) Non-free Quoted on an individual basis.
GNU Bazaar Canonical Ltd. actively developed Distributed[nb 1] Merge GNU GPL Unix-like, Windows, OS X Free
BitKeeper BitMover Inc. actively developed Distributed Merge Proprietary Unix-like, Windows, OS X Non-free Quoted on an individual basis.
CA Software Change Manager CA Technologies[1] actively developed Client-server Merge or Lock Proprietary Unix, Linux, Windows, i5/OS Non-free Named licenses available with volume discounts available
ClearCase IBM Rational actively developed Client–server Merge or lock[nb 2] Proprietary Linux, Windows, AIX, Solaris, HP UX, i5/OS, OS/390, z/OS, Non-free $4600 per floating license (held automatically for 30-minutes minimum per user, can be surrendered manually)
Code Co-op Reliable Software actively developed Distributed Merge Proprietary Windows Non-free $150 per seat
Codeville Ross Cohen official site offline; latest release July 13, 2007 (2007-07-13) Distributed precise codeville merge BSD Unix-like, Windows, OS X Free
CVS The CVS Team[2] maintained but new features not added Client–server Merge GNU GPL Unix-like, Windows, OS X Free
CVSNT March Hare Software[3] and community members maintained and new features under development Client–server Merge or lock GPL or proprietary Unix-like, Windows, OS X, i5/OS Free (with £425 distribution fee) for older version or £85 commercial license for latest version of CVS Suite or Change Management Server
darcs The Darcs team actively developed Distributed Merge GNU GPL Unix-like, Windows, OS X Free
Fossil D. Richard Hipp actively developed Distributed Merge BSD POSIX, Windows, OS X, Other Free
Git Junio Hamano actively developed Distributed Merge GNU GPL POSIX, Windows, OS X Free

objective-c

objectivec正常

-(void)animationFrame
{
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:5];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];// 动画相对速度,开始和结束的时候慢,中间快
    view.center = CGPointMake(0,0);
    [UIView commitAnimations];
}

objective-c不正常

```objective-c

-(void)animationAlpha
{
[UIView beginAnimations:nil context:NULL];// 需要设置代理时
[UIView setAnimationDuration:1];// 动画的持续时间
[UIview setAnimationDelay:1];// 动画延迟时间
view2.apleha = 0.0;
[UIView commitAnimations];// 标记着动画块的结束
}


不加关键字自动判断正常


https://gist.github.com/8322802

http://jsfiddle.net/7g5JP/

WEAKISH!!!出来!!!

WEAKISH!!!说你呢!!!

怎么说呢……哎……你跑哪去了!!!

今天的 markdown 里的 code 似乎不会换行了?

def say_yes!
    puts "Yes!"
end

最近在写光线跟踪程序,想实现一个n-Rook采样器。原理是是先在一个单位正方形的对角线上放置n个点,然后随机的将这n个点的x坐标打乱,从而保证:

  1. n个点均匀的分布在单位正方形上
  2. 如果将正方形分成n*n个小正方形,那么每个大正方形的每行每列都只有一个元素。

现在,我用C++将上面的思想实现出来,得出的结果是这样的
完美洗牌算法是参照Matrix87大神的文章实现的http://www.matrix67.com/blog/archives/879

主要的代码有:

NRook::NRook(int num) :Sampler(num)
{
    for (int i = 0; i < num; i++)
    {
        sampleList[i].x = 1.f*(i) / numSample;
        sampleList[i].y = 1.f*(i) / numSample;
    }
}

void NRook::shuffle()
{
    for (int i = 0; i < numSample; i++)
    {
        int targetX = randomGen.getRandomI(i, numSample);
        std::swap(sampleList[i].x, sampleList[targetX].x);
    }
}

struct RandomGen{
    virtual float getRandomF(){
        return static_cast <float>(rand()) / static_cast <float>(RAND_MAX);
    }
    virtual float getRandomF(float a, float b) { return (b - a)*getRandomF() + a; }
    virtual int getRandomI(){ return rand(); };
    virtual int getRandomI(int a, int b){ return a + getRandomI() % (b - a); }
};

请问这是选择算法的问题还是实现的问题

如果用3反撇号(backtick)做的代码,似乎换行有问题:

<?php
phpinfo();

用4空格缩进做的代码似乎就没事

<?php
phpinfo();

作为3反撇号的惯用者表示(╯°口°)╯(┴—┴!!!

反撇号带语言名就会出问题 http://segmentfault.com/q/1010000000400283

Related Questions