Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ozcanesen on github.
  • I am ozcan (https://keybase.io/ozcan) on keybase.
  • I have a public key whose fingerprint is B342 BA92 C88D 0054 67D4 78A3 6ACC 7C3A 4701 F516

To claim this, I am signing this object:

@ozcan
ozcan / gist:1dd0d81aef92526dadc6
Created January 6, 2015 22:56
spotify play song with dbus
import dbus
bus = dbus.SessionBus()
spotify = bus.get_object('com.spotify.qt', '/')
player = dbus.Interface(spotify, 'org.freedesktop.MediaPlayer2')
player.OpenUri('spotify:track:1inG2cgfeGVBsTCcmMIv0e')
<script type="text/javascript" src="https://code.jquery.com/color/jquery.color-2.1.2.min.js"></script>
var bg_color = $('tr[bin-id=' + bin_id + ']').css('backgroundColor');
$('tr[bin-id=' + bin_id + ']').animate({backgroundColor: "#F3A2AD"}, 250).animate({backgroundColor: bg_color}, 250);
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
setup(
cmdclass = {'build_ext': build_ext},
@ozcan
ozcan / a.php
Created September 14, 2015 12:34
<?php
$base = '/var/www/upload';
$name = $_POST['name'];
$surname = $_POST['surname'];
$path = $base . '/' . $name;
if (!file_exists($path))
mkdir($path);
from libpebble2.communication import PebbleConnection
from libpebble2.communication.transports.serial import SerialTransport
from libpebble2.services.appmessage import *
from libpebble2.protocol import *
from libpebble2.exceptions import *
import os
pebble = PebbleConnection(SerialTransport("/dev/cu.PebbleTime189F-SerialPo"))
pebble.connect()
pebble.run_async()
import json
import urllib2
import os
import time
import telegram
kripton_people = ['kadertarlan', 'yeliztaneroglu', 'ozcanesen', 'aybuke', 'gulsahkose']
bot = telegram.Bot(token='TOKEN')
params = list(map(int, input().strip().split(" ")))
m, n, r = params[0], params[1], params[2]
matrix = []
outmatrix = []
for i in range(m):
matrix.append(list(map(int, input().strip().split(" "))))
outmatrix.append([0] * n)
output = ""
class Anvio < Formula
include Language::Python::Virtualenv
desc "Analysis and visualization platform for ‘omics data."
homepage "http://merenlab.org/projects/anvio/"
url "https://pypi.python.org/packages/99/bc/f85a61d914cdc19ada9dc53bda2e534cd6d44bbd4b26e236f91adae4520f/anvio-2.2.0.tar.gz"
sha256 "1016fe695134aa2d8e20202c08f4a95757d52406cd5340602e2f83aabcdb2c6b"
head "https://github.com/merenlab/anvio.git"
# doi "10.7717/peerj.1319"
# tag "bioinformatics"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.