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
print+(join'',("FizzBuzz"=~/./g)[$_**2%3*4..7-$_**4%5*4])||$_,$/for 1..100; | |
print+($_,'Fizz','Buzz','FizzBuzz')[!($_%3)|!($_%5)<<1].$/for 1..100; | |
print+($_,'Fizz','Buzz','FizzBuzz')[!($_%3)+!($_%5)*2].$/for 1..100; | |
print+($_%15?$_%5?$_%3?$_:'Fizz':'Buzz':'FizzBuzz').$/for 1..100; | |
print+('Fizz')[$_%3].('Buzz')[$_%5]||$_,$/for 1..100; #it may give warnings |
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
print "$_ day",do{'s' if $_!=1} for int(2.2); | |
print "$_ day",$_==1?'':'s' for int(2.2); | |
print"$_ day".'s'x!!($_-1)for int 2.2; | |
print"$_ day",$_-1?'s':''for int 2.2; | |
my $foo = map{"$_ day".($_-1?'s':'')}int 2.2; |
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
alias cat="cat -v" | |
alias ls="ls -AF --color" | |
alias rm="rm -I" | |
alias mv="mv -i" | |
alias cp="cp -i" | |
alias less="less -iR" | |
alias grep="grep --color=auto -n" | |
alias g="grep -ri" | |
alias f="find|`which grep` --color=auto -Pi" | |
alias df="df -h" |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | |
<title>Pseudo-fluid</title> | |
<style type="text/css"> | |
* { | |
margin: 0; | |
padding: 0; | |
} |
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
" Improve move speed | |
let g:boostmove=0 | |
set updatetime=500 | |
au CursorMoved * call BoostMoveON() | |
au CursorMovedI * call BoostMoveON() | |
au CursorHold * call BoostMoveOFF() | |
au CursorHoldI * call BoostMoveOFF() | |
function BoostMoveON() | |
if (winline() != line('$')) && (line('.') != 1) | |
if (winline() == winheight('.')) || (winline() == 1) |
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
float s = gl_TexCoord[0].s; | |
//sine | |
gl_FragColor.rgb = clamp(vec3(cos(s*pi*2)+0.5,cos(s*pi*2-pi*(2.0/3.0))+0.5,cos(s*pi*2+pi*(2.0/3))+0.5),0,1)*gl_TexCoord[0].t; | |
//linear | |
gl_FragColor.rgb = clamp(vec3(abs(6*s-3)-1,2-abs(6*s-2),2-abs(6*s-4)),0,1)*gl_TexCoord[0].t; |
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
#include <iostream> | |
#include <typeinfo> | |
class Foo { | |
private: | |
const std::type_info &info; | |
public: | |
Foo(const std::type_info &i):info(i){pepe(info);} | |
void pepe(const std::type_info &info){std::cout << info.name() << "__\n";} | |
}; |
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
** Discriminant ** | |
D001 LBL D | |
D002 RCL B | |
D003 x² | |
D004 4 | |
D005 RCL A | |
D006 RCL C | |
D007 * | |
D008 * |
NewerOlder