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 <boost/filesystem.hpp> | |
#include <boost/lexical_cast.hpp> | |
using namespace boost::filesystem; | |
using boost::lexical_cast; | |
//std | |
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <map> |
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
for (unsigned int a = 0; a < 10; ++a) { | |
for (unsigned int b = 0; b < 10; ++b) { | |
for (unsigned int c = 0; c < 10; ++c) { | |
for (unsigned int d = 0; d < 10; ++d) { | |
for (unsigned int e = 0; e < 10; ++e) { | |
if (a*b == 24 && d == b/2 && d+e == a+c && a+b+c+d+e == 26) { | |
cout << a << b << c << d << e << endl; | |
} | |
} | |
} |
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
public class Triangle{ | |
private static void g1(int n1){for(int n3=0;n3<n1;n3++){g2(n1-n3-1,' '); g2(n3*2+1,'x');g3();}} | |
private static void g2(int n1, char n2){for(int n3=0;n3<n1;n3++){System.out.print(n2);}} | |
private static void g3(){System.out.println();} | |
public static void main(String[] args){g1(4);} | |
} |
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 <algorithm> | |
#include <ctime> | |
#include <random> | |
using namespace std; | |
size_t const s = 0x1000000; | |
size_t a[s]; | |
template <typename T> | |
void test(T f) { | |
clock_t c1 = clock(); |
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 <ctime> | |
#include <cstring> | |
using namespace std; | |
const size_t s = 0x100; | |
const size_t ss = s * s; | |
size_t * p; | |
bool t[ss] = {}; | |
void prepare() { | |
for (size_t i = 2; i < s; ++i) if (!t[i]) for (size_t j = i * i; j < ss; j += i) t[j] = true; |
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 <fstream> | |
#include <filesystem> | |
#include <cstdint> | |
using namespace std; | |
using namespace std::tr2::sys; | |
size_t const msize = 0x100000; | |
void bf(path name, path input, path output) { | |
ifstream file(name, ios::binary); | |
ifstream inf(input, ios::binary); |
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
////////////////////////////////////////////////////////////////////////// | |
// Copyright 2012 Peter Atechian (Retep998) // | |
////////////////////////////////////////////////////////////////////////// | |
// This file is part of the NoLifeStory project. // | |
// // | |
// NoLifeStory is free software: you can redistribute it and/or modify // | |
// it under the terms of the GNU General Public License as published by // | |
// the Free Software Foundation, either version 3 of the License, or // | |
// (at your option) any later version. // | |
// // |
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
[SIZE=4]Background[/SIZE] | |
A group of developers want to create a better TitanMS core. I have tried to contact koolk so that he would let us have a repository and a bug tracking system, but he haven't replied. So we decided to take it upon ourselves to fork and develop a better TitanMS. At the same time, MooMoo opened his/her [URL="http://"http://dev.chiasoft.net""]development forum[/URL] so we took that as our base. The core developers of Vana are project leaders there. | |
[SIZE=4]Why "Vana"?[/SIZE] | |
When we decided that we want to fork, we need a name. I suggested that we take the name "Vana", from "Vanadium" which is "Titanium"+1 in the periodic table of elements. | |
[SIZE=4]What is a fork?[/SIZE] | |
See: [URL="http://en.wikipedia.org/wiki/Fork_(software_development)"]Fork (software development - Wikipedia, the free encyclopedia)[/URL] | |
[SIZE=4]Credits[/SIZE] |
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 <cmath> | |
#include <cstdint> | |
#include <memory> | |
#include <vector> | |
#include <chrono> | |
#include <thread> | |
using namespace std; | |
using namespace std::chrono; | |
using namespace std::this_thread; |
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
public void copyFrom(int par1, int par2, Texture par3Texture, boolean par4) | |
{ | |
if (this.textureTarget != 32879) | |
{ | |
ByteBuffer bytebuffer = par3Texture.getTextureData(); | |
this.textureData.position(0); | |
bytebuffer.position(0); | |
/* Forge: | |
* |
OlderNewer