Skip to content

Instantly share code, notes, and snippets.

View gozzoo's full-sized avatar

Evgeni Milev gozzoo

  • Smartmedia
  • Sofia, Bulgaria
View GitHub Profile
на github
1. изтриване на проетка
2. създавене на private проект със същото име
3. добавяне на gozzoo като colraborator
4. копираш урл-а; _git_project_url_
локално
1. изтриване на директорията .git
import os, strutils
proc max(a, b: int): int =
if a > b:
return a
return b
proc fannkuchredux(n: int): int =
var perm = newSeq[int](n)
var perm1 = newSeq[int](n)
@gozzoo
gozzoo / fannkuchredux.js
Created July 5, 2012 07:47
annkuchredux benchmark implementation in javascript
function fannkuchredux(n) {
var perm = new Array(n);
var perm1 = new Array(n);
var count = new Array(n);
var maxFlipsCount = 0;
var permCount = 0;
var checksum = 0;
var i;
for (i = 0; i < n; i++)
@gozzoo
gozzoo / Fannkuchredux.java
Last active October 6, 2015 20:58
fannkuchredux benchmark implementation in java
public class Fannkuchredux {
static int fannkuchredux(int n) {
int[] perm = new int[n];
int[] perm1 = new int[n];
int[] count = new int[n];
int maxFlipsCount = 0;
int permCount = 0;
int checksum = 0;
int i;
@gozzoo
gozzoo / fannkuchredux.dart
Created July 5, 2012 07:20
fannkuchredux benchmark implementation in dart
#import('dart:core');
class FannkuchreduxTest {
static int fannkuchredux(int n) {
var perm = new List(n);
var perm1 = new List(n);
var count = new List(n);
int maxFlipsCount = 0;
int permCount = 0;
@gozzoo
gozzoo / fannkuch-redux.go
Created August 10, 2011 09:30
fannkuch-redux Go program source code
package main
import (
"fmt"
"os"
"strconv"
)
func max(a, b int ) int {
if a > b {