Skip to content

Instantly share code, notes, and snippets.

Avatar
🥃
Master of Ballmer Peak

Ahmet Sezgin DURAN marjinal1st

🥃
Master of Ballmer Peak
View GitHub Profile
View gist:0881de7135c5dbde632c208c17d1eb9c
Verifying my Blockstack ID is secured with the address 1A8aCiG41NX637UsqKRJcKnVFEmKXNkzFz https://explorer.blockstack.org/address/1A8aCiG41NX637UsqKRJcKnVFEmKXNkzFz
@marjinal1st
marjinal1st / cl
Created Apr 22, 2016
Updated clinfo output
View cl
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
View clinfo.txt
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
View gist:0f0f4188e096cce371d6
"""
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):
View move_test
<?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"/>
View gist:d8a4d31777ec3ddad643
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import cv2
from sensor_msgs.msg import Image
from cv_bridge import *
def callback(msg):
View gist:17a114c081dbadf3b2f2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
from geometry_msgs.msg import Twist
def main():
rospy.init_node("move_test", anonymous=False)
View opencv-camera-test
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 Jan 3, 2015
CHIP-8 Ruby Emülatörü
View chip8-emu.rb
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
View gist:c6e9330e7ccf76ead986
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