Skip to content

Instantly share code, notes, and snippets.

View marjinal1st's full-sized avatar
🥃
Master of Ballmer Peak

Ahmet Sezgin DURAN marjinal1st

🥃
Master of Ballmer Peak
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1A8aCiG41NX637UsqKRJcKnVFEmKXNkzFz https://explorer.blockstack.org/address/1A8aCiG41NX637UsqKRJcKnVFEmKXNkzFz
@marjinal1st
marjinal1st / cl
Created April 22, 2016 11:36
Updated clinfo output
Number of platforms 1
Platform Name NVIDIA CUDA
Platform Vendor NVIDIA Corporation
Platform Version OpenCL 1.2 CUDA 7.5.23
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts
Platform Extensions function suffix NV
Platform Name NVIDIA CUDA
Number of devices 1
@marjinal1st
marjinal1st / clinfo.txt
Created April 22, 2016 05:40
OpenCL info
Number of platforms 1
Platform Name NVIDIA CUDA
Platform Vendor NVIDIA Corporation
Platform Version OpenCL 1.1 CUDA 6.5.51
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts
Platform Extensions function suffix NV
Platform Name NVIDIA CUDA
Number of devices 1
@marjinal1st
marjinal1st / gist:0f0f4188e096cce371d6
Created January 4, 2016 14:27 — forked from karpathy/gist:587454dc0146a6ae21fc
An efficient, batched LSTM.
"""
This is a batched LSTM forward and backward pass
"""
import numpy as np
import code
class LSTM:
@staticmethod
def init(input_size, hidden_size, fancy_forget_bias_init = 3):
@marjinal1st
marjinal1st / move_test
Last active August 29, 2015 14:19
Robot
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from robot1_base_02.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<robot name="robot1_xacro" xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller" xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface" xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_footprint">
<visual>
<geometry>
<box size="0.001 0.001 0.001"/>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import cv2
from sensor_msgs.msg import Image
from cv_bridge import *
def callback(msg):
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
from geometry_msgs.msg import Twist
def main():
rospy.init_node("move_test", anonymous=False)
import cv2
camera = cv2.VideoCapture(0)
camera.set(3, 1280)
camera.set(4, 720)
while True:
ret, image = camera.read()
@marjinal1st
marjinal1st / chip8-emu.rb
Created January 3, 2015 14:51
CHIP-8 Ruby Emülatörü
class CHIP8
attr_accessor :memory, :gpio, :display_buffer, :stack,
:key_inputs, :fonts, :opcode, :index, :pc,
:delay_timer, :sound_timer, :should_draw,
:instructions, :vx, :vy
def initialize
@memory = [0] * 4096 # 4096 Baytlık belleğimiz
@gpio = [0] * 16 # 16 tane genel amaçlı register'ı tutan bir dizi
@display_buffer = [0] * 2048 # 64 * 32 = 2048 piksellik ekranımız
Domain Name: BMRF.US
Domain ID: D37352589-US
Sponsoring Registrar: ENOM, INC.
Sponsoring Registrar IANA ID: 48
Registrar URL (registration services): whois.enom.com
Domain Status: clientTransferProhibited
Variant: BMRF.US
Registrant ID: 659C99C8A93B9E50
Registrant Name: Josh Hubi
Registrant Organization: PixelBlast Media