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 <stdlib.h> | |
#include <stdio.h> | |
#include "linear_sequence.h" | |
#define ITER(it) ((ItHandle)it) | |
#define SEQ(seq) ((SeqHandle)seq) | |
#define Deref LSQ_DereferenceIterator | |
typedef struct{ | |
LSQ_BaseTypeT *items; |
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/perl | |
use warnings; | |
use strict; | |
sub write_file{ | |
my $fname = $_[0]; | |
print "%%%%% WANNA $fname?\n"; | |
open my $f, "< $fname"; | |
my @file = <$f>; | |
close $f and return 1 unless grep m/^\ \ /, @file; |
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 <cstdio> | |
#include <iostream> | |
#include "hash.h" | |
#include "stdhashf/string.h" | |
using namespace Homeworks; | |
using namespace std; | |
int testNum; |
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 <cstddef> | |
#include <cassert> | |
#include <map> | |
#include <vector> | |
namespace Homeworks{ | |
#define RELEASEVAR(x) ((delete (x)), x = NULL) | |
#define RELEASEBUF(b) ((delete[] (b)), b = NULL) | |
namespace TrieTraits{ |
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 <cstdlib> | |
#include <vector> | |
#include <algorithm> | |
#include <cstdio> | |
using namespace std; | |
struct Line{ | |
int x1, y1, x2, y2; |
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
/* [wxMaxima batch file version 1] [ DO NOT EDIT BY HAND! ]*/ | |
/* [ Created with wxMaxima version 11.08.0 ] */ | |
/* [wxMaxima: input start ] */ | |
load(draw)$ | |
Lagrange(x, fn, X, N) := | |
sum( | |
fn(X[i]) * product( | |
if equal(i, j) | |
then 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
#include <cstdio> | |
#include <cstdlib> | |
#include <cmath> | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
typedef double Scalar; |
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 <map> | |
#include <vector> | |
#include <algorithm> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <string> | |
using namespace std; |
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
# Check for an interactive session | |
[ -z "$PS1" ] && return | |
stty stop undef | |
alias ls='ls --color=auto' | |
alias l='ls' | |
alias ll='ls -lh' | |
alias la='ls -a' | |
alias lla='ls -la' |
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 <cstdio> | |
#include <cstring> | |
#include <cstdlib> | |
#include <cmath> | |
#include <vector> | |
#include <map> | |
#include <utility> | |
#include <algorithm> | |
#include <iostream> |
OlderNewer