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
class Hanoi | |
def initialize(count) | |
@last_element = nil; | |
@t1 = (1..count.to_i).to_a.reverse | |
@t2 = [] | |
@t3 = [] |
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
body { | |
font-size: 85%; | |
} | |
table { | |
font-size: 1em; | |
} | |
/* Site | |
-------------------------------- */ |
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
#!/bin/bash | |
RUBY_VER="1.9.3-p194" | |
RUBYGEMS_VER="1.8.24" | |
LIBYAML_VER="0.1.4" | |
sudo -v >/dev/null 2>&1 || { echo $(whoami) has no sudo privileges ; exit 1; } | |
echo "This script install Ruby ${RUBY_VER} and Rubygems ${RUBYGEMS_VER}" |
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 <stdio.h> | |
#include <iostream> | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
int fun_positive_and_negative(int, int, int**, int*, int*); |
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 <stdio.h> | |
#include <iostream> | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
int main(void) | |
{ | |
int a[20], n, i, sum = 0, min = 2147483647, min_position = 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
#include <stdio.h> | |
#include <iostream> | |
#include <math.h> | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
int main(void) | |
{ |
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 <stdio.h> | |
#include <iostream> | |
#include <math.h> | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
int main(void) | |
{ |
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
default namespace sa = "http://apstandard.com/ns/1" | |
namespace local = "" | |
grammar { | |
start = Application | |
Application = element application { | |
## Version of APS format used | |
attribute version { "1.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
#include <stdio.h> | |
#include <iostream> | |
#include <math.h> | |
#define _USE_MATH_DEFINES | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
int main(void) |
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
[user] | |
name = Alexander Randa | |
email = randa.alex@active.by | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
ui = true | |
[alias] |
OlderNewer