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
package com.aero.Math; | |
import java.math.BigInteger; | |
public abstract class BinaryModularExponentiation | |
{ | |
public static BigInteger ModPower(BigInteger m, BigInteger e, BigInteger n) | |
{ | |
BigInteger c; | |
// Mesajın bit dizisine dönüştürülmesi; |
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
using System; | |
public class BigInteger | |
{ | |
// maximum length of the BigInteger in uint (4 bytes) | |
// change this to suit the required level of precision. | |
private const int maxLength = 70; |
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
class MillerRabinThread extends Thread | |
{ | |
public MillerRabinThread() | |
{ | |
super(n); | |
} | |
@Override | |
public void run() | |
{ |
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
basla load n | |
sub 50 | |
ifpos bitir | |
load 3 | |
store i | |
isPrime load n | |
mod 2 | |
ifzero false | |
load n | |
sub i |
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
''' | |
Created on 12 Ekim 2014 | |
@author: Ahmet Ertugrul Ozcan | |
''' | |
# -*- coding: utf-8 -*- | |
import json |
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
''' | |
Created on 14 Ekim 2014 | |
@author: Ahmet Ertugrul Ozcan | |
''' | |
# -*- coding: cp1254 -*- | |
from builtins import str |
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
static void Main(string[] args) | |
{ | |
var words = new Dictionary<string, Dictionary<string, string[]>> | |
{ | |
{ | |
"TR", | |
new Dictionary<string, string[]> | |
{ | |
{"names", new string[] { "isim1", "isim2", "isim3" }}, | |
{"adjectives", new string[] { "sifat1", "sifat2", "sifat3" }} |
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
<html> | |
<head> | |
<title> | |
JavaScript Test | |
</title> | |
</head> | |
<body> | |
<pre> | |
<script language="Javascript"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var randomName = []; |
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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" | |
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> | |
<Button | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" |
OlderNewer