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
source "https://rubygems.org" | |
gem "csp-solver" | |
gem "terminal-table" |
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
program SQLWorkbenchExplain; | |
{$APPTYPE CONSOLE} | |
uses | |
SysUtils, Classes, JclSysUtils, IniFiles; | |
type | |
TConfig = record | |
LogFile: string; |
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
### Keybase proof | |
I hereby claim: | |
* I am nurettin on github. | |
* I am nurettin (https://keybase.io/nurettin) on keybase. | |
* I have a public key whose fingerprint is 7687 787E A662 029F 2DD6 94CF 9B86 DFB2 25ED E4CB | |
To claim this, I am signing this object: |
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
buildscript { | |
... | |
} | |
... | |
android { | |
... | |
} | |
dependencies { |
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 <fann.h> | |
#include <fann_cpp.h> | |
void prepare_data(std::string const &name){ | |
std::ofstream file(name+ ".data", std::ios::trunc); | |
file<< "4 2 1\n" | |
<< "0 0\n0\n" | |
<< "0 1\n1\n" | |
<< "1 0\n1\n" | |
<< "1 1\n0\n"; |
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 Hst | |
attr_reader :version | |
attr_reader :copyright | |
attr_reader :symbol | |
attr_reader :period | |
attr_reader :digits | |
attr_reader :timesign | |
attr_reader :lastsync | |
def initialize(file) |
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 <iostream> | |
#include <ode/ode.h> | |
#include <SDL.h> | |
#include <SDL2_gfxPrimitives.h> | |
dWorldID earth; | |
dJointGroupID contact_joint_group; | |
std::size_t const max_contacts = 10; | |
dContact contact[max_contacts]; |
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 <ios> | |
#include <fstream> | |
#include <vector> | |
#include <fann.h> | |
#include <fann_cpp.h> | |
void prepare_data(std::string const &name){ | |
std::ofstream file(name+ ".data", std::ios::trunc); | |
file<< "4 2 1\n" | |
<< "0 0\n0\n" |
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
I thought about posting this in the "mathematics of sudoku" forum, but really what it is is | |
a statement of the common (and maybe not so common) rules for solving Sudoku, both in plain | |
English and in logical notation. If you are just interested in solving Sudoku, ignore the | |
funny notation; if you are interested in the mathematics, enjoy the symmetry. | |
I suggest that the following set of rules may constitute the entire set of | |
"standard" methods (not including simple chain-based logic) used to solve Sudoku puzzles. | |
Included here are: |
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
browser= Mechanize.new do |m| | |
m.history.max_size= 1 | |
end | |
@mech.get "https://www.google.com" | |
@mech.history.clear | |
GC.start |