This file contains 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
#!/usr/bin/gnuplot | |
## define cone function | |
cone(x,y,cx,cy) = 1 - sqrt((x-cx)**2+(y-cy)**2) | |
## set hidden line removal | |
set hidden3d | |
## set view | |
set view 0,0 |
This file contains 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<cstdio> | |
class RootedTree { | |
int** tree; | |
public: | |
RootedTree(int s) { | |
tree = new int*[3]; | |
tree[0] = new int[s](); // pointer to parent | |
tree[1] = new int[s](); // pointer to first child |
This file contains 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 <vector> | |
#include <algorithm> | |
using std::vector; | |
using std::swap; | |
class easyHeap { | |
int numel; | |
vector<int> mem; |
This file contains 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
:あきゅーと Á アルファベット | |
:あきゅーと á アルファベット | |
:あきゅーと É アルファベット | |
:あきゅーと é アルファベット | |
:あきゅーと Í アルファベット | |
:あきゅーと í アルファベット | |
:あきゅーと ń アルファベット | |
:あきゅーと Ń アルファベット | |
:あきゅーと Ó アルファベット | |
:あきゅーと ó アルファベット |
This file contains 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
#!/usr/bin/octave | |
function [val lev] = parsecontour(cnt) | |
npar = 0; ptr = 0; N = size(cnt,2); | |
while(ptr < N) | |
npar++; ptr++; | |
lev{npar} = cnt(1,ptr); | |
n = cnt(2,ptr); | |
val{npar} = cnt(:,((ptr+1):(ptr+n)))'; | |
ptr+=n; |
This file contains 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 x1 = mh(x0,func,xgen) | |
## input: | |
## x0 - input distribution | |
## func - target distribution function | |
## xgen - random generator for next step | |
## output: | |
## x1 - resultant distribution | |
xp = xgen(x0); | |
y0 = func(x0); y1 = func(xp); | |
a = y1./(y0+(y0==0)) + (y0==0); |
This file contains 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
diff --git a/deluxetable.sty b/deluxetable.sty | |
index *******..******* ****** | |
--- a/deluxetable.sty | |
+++ b/deluxetable.sty | |
@@ -127,7 +127,10 @@ | |
\pt@ncol=#1\relax | |
\global\let\pt@addcol\@empty | |
}% | |
-\newcommand\tablecaption[1]{\gdef\pt@caption{#1}}% | |
+\newcommand\tablecaption[1]{% |
This file contains 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
SOURCE := $(wildcard *.eps) | |
TARGET := $(patsubst %.eps,%.png,$(SOURCE)) | |
.SUFFIXES: .png .eps | |
all: $(TARGET) | |
%.png: %.eps | |
gs -dBATCH -sDEVICE=png16m -dNOPAUSE -r1200 -dEPSCrop -sOutputFile=$@ -f $< | |
mogrify -geometry 800x $@ |
This file contains 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
#!/bin/bash | |
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger touch" Touch off | |
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger pad" Button 1 "key shift" | |
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger pad" Button 3 "key shift equal" | |
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger pad" Button 8 "key minus" | |
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger pad" Button 9 "key ctrl z" |
This file contains 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
diff --git a/deluxetable.sty b/deluxetable.sty | |
index *******..******* ****** | |
@@ -127,7 +127,13 @@ | |
\pt@ncol=#1\relax | |
\global\let\pt@addcol\@empty | |
}% | |
-\newcommand\tablecaption[1]{\gdef\pt@caption{#1}}% | |
+\newcommand\tablecaption[1]{% | |
+ \gdef\pt@caption{#1}% | |
+ \gdef\pt@short@caption{#1}% |
OlderNewer