Skip to content

Instantly share code, notes, and snippets.

View FooBarrior's full-sized avatar

Nikita Malyavin FooBarrior

  • Far Eastern Federal University
  • Spain
  • 22:10 (UTC +02:00)
View GitHub Profile
-DMYSQL_MAINTAINER_MODE=OFF
-DWITH_VALGRIND=0
-DWITH_ASAN=0
-DWITH_TSAN=0
-DWITH_EMBEDDED_SERVER=0
-DCMAKE_BUILD_TYPE=Debug
-DWITH_UNIT_TESTS=0
-DWITH_UNITTEST=0
-DSECURITY_HARDENED=0
-DWITH_SAFEMALLOC=0
package com.example.nikit.compass;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
@FooBarrior
FooBarrior / hk.cpp
Created July 9, 2012 12:22
advanced algorithms summer 2012
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <utility>
#include <algorithm>
#include <iostream>
@FooBarrior
FooBarrior / .bashrc
Created July 2, 2012 04:49
.vimrc and .bashrc
# 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'
#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <string>
using namespace std;
@FooBarrior
FooBarrior / gist:2762881
Created May 21, 2012 15:20
кранк-никлсон
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef double Scalar;
@FooBarrior
FooBarrior / Lagrange.wxm
Created October 26, 2011 15:19
NM expirement. Author: Pousqie
/* [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
@FooBarrior
FooBarrior / C.cpp
Created October 23, 2011 16:44
south-2011:C. Doesn't work.
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cstdio>
using namespace std;
struct Line{
int x1, y1, x2, y2;
#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{
@FooBarrior
FooBarrior / hash.cpp
Created October 15, 2011 14:33
hashes writen off from megachuhancer
#include <cstdio>
#include <iostream>
#include "hash.h"
#include "stdhashf/string.h"
using namespace Homeworks;
using namespace std;
int testNum;