Skip to content

Instantly share code, notes, and snippets.

View emre's full-sized avatar
🎯
Focusing

Emre Yılmaz emre

🎯
Focusing
View GitHub Profile
@emre
emre / qrkinstall.sh
Last active January 1, 2016 01:39
qrk installer script for windows azure instances (ubuntu 13.10)
#!/bin/bash
read -p "enter your wallet address: " WALLETID
sudo apt-get update
sudo apt-get install -y git automake g++ build-essential libcurl4-openssl-dev libjansson4 libjansson-dev
if [ -d $(pwd)/quarkcoin-cpuminer ]; then
rm -r $(pwd)/quarkcoin-cpuminer
fi
git clone https://github.com/uncle-bob/quarkcoin-cpuminer
cd quarkcoin-cpuminer
./autogen.sh
@emre
emre / dogecoin
Created December 19, 2013 10:57
doge mine
https://bitcointalk.org/index.php?topic=55038.0
pool dogecoinpool.com
@emre
emre / xpm.sh
Created December 13, 2013 09:42
xpm.
apt-get update && apt-get install -y git make g++ build-essential libminiupnpc-dev && apt-get install -y libdb++-dev libgmp-dev libssl-dev dos2unix && apt-get install -y libboost1.49-all libboost-chrono1.49-dev && git clone https://github.com/thbaumbach/primecoin && cd primecoin/src && make -f makefile.unix
@emre
emre / clip.js
Last active December 29, 2015 12:59
kindle clippings
[{
'content': 'Good cooking takes time. If you are made to wait, it is to serve you better, and to please you.',
'meta': {
'type': 'Highlight',
'page': None,
'location': '181-182'
},
'author': 'Frederick P. Brooks',
'added_on': datetime.datetime(2013, 11, 19, 13, 23, 50),
'title': 'The Mythical Man Month '
@emre
emre / import_cities.py
Created October 24, 2013 12:53
import cities
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
from main.models import Cities
from mongoengine.queryset import DoesNotExist
CITY_LIST = [
('01', u'Adana'),
('02', u'Adıyaman'),
('03', u'Afyon'),
@emre
emre / asdsad.go
Last active December 23, 2015 04:39
asdsadssad
package main
import (
"errors"
"fmt"
"reflect"
"sync"
)
type List struct {
@emre
emre / golang_binary_search.go
Last active October 13, 2020 23:10
binary search implementation on golang slices
package main
import (
"fmt"
)
func BinarySearch(target_map []int, value int) int {
start_index := 0
end_index := len(target_map) - 1
@emre
emre / pointers.go
Created August 22, 2013 11:02
golang pointers
package main
import "fmt"
func swap(x *int, y *int) {
*x, *y = *y, *x
}
@emre
emre / bubbesort.go
Created August 21, 2013 12:41
bubblesort in golang
package main
import "fmt"
func main() {
x := []int{
48, 96, 86, 68,
57, 82, 63, 70,
37, 34, 83, 27,
@emre
emre / EvenFibonacci.java
Created August 13, 2013 07:58
Even Fibonacci numbers
/*
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
*/