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 MACD(Indicator): | |
def __init__(self, strategy, pair, short_period=12, long_period=26, weight_period=9): | |
self._weight_period = weight_period | |
self._weight = 2.0 / (weight_period + 1.0) | |
self._short_ema = EMA(strategy, pair, period=short_period) | |
self._long_ema = EMA(strategy, pair, period=long_period) | |
self._data = pandas.DataFrame(columns=['Value', 'MACD_line', 'Signal_line']) | |
super(MACD, self).__init__("MACD", strategy, pair) |
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
public class MyUtils { | |
private static String Isearch; | |
public static void seqSearch(Book[] pin, int key){ | |
for(int i=0; i<pin.length ;i++){ | |
if(key==1){ | |
if(Isearch==pin[i].getISBN()){ | |
} |
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
Book pin[]=new Book[10]; | |
int ep=0; | |
int i=0; | |
boolean flag=true; | |
for( ;flag ; ) | |
{ | |
System.out.println(" Λίστα Επιλογών"); | |
System.out.println("1. Εισαγωγή στοιχείων βιβλίου"); |
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
data:text/html, | |
<style type="text/css"> | |
#e { | |
position:absolute; | |
top:0; | |
right:0; | |
bottom:0; | |
left:0; | |
font-size:16px; | |
} |
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
void save_puzzle(unsigned char board[][9]) | |
{ | |
int i, j, k; | |
char path[50]; | |
FILE *file; // Ante epidi thelis k C89 :P | |
clrscr(); | |
printf("Insert the name of the file you want to save your sudoku puzzle \n"); | |
scanf("%s", path); | |
k = strlen(path); | |
// OPTION 1 |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int foo(int a[], int iter) { | |
int current = a[iter]; | |
if(iter == 9) return current; | |
int restMin = foo(a, iter + 1); | |
if(current < restMin) { |