Skip to content

Instantly share code, notes, and snippets.

View meriororen's full-sized avatar
🎯
Focusing

Isa Ansharullah meriororen

🎯
Focusing
  • PT Hardtmann Mekatroniske Indonesia
  • Jakarta, Indonesia
View GitHub Profile
@meriororen
meriororen / fpga_sdram_pin_location.tcl
Last active August 29, 2015 13:57
FPGA SDRAM Cyclone V DevKit Pin Location
# Pin & Location Assignments
# -----------------------------
# Created by: Isa Ansharullah (Alab inc.)
set_location_assignment PIN_AJ14 -to fpga_sdram_memory_mem_a[0]
set_location_assignment PIN_AK14 -to fpga_sdram_memory_mem_a[1]
set_location_assignment PIN_AH12 -to fpga_sdram_memory_mem_a[2]
set_location_assignment PIN_AJ12 -to fpga_sdram_memory_mem_a[3]
set_location_assignment PIN_AG15 -to fpga_sdram_memory_mem_a[4]
set_location_assignment PIN_AH15 -to fpga_sdram_memory_mem_a[5]
<!DOCTYPE html>
<meta charset="utf-8">
Hello, world!
@meriororen
meriororen / index.html
Last active August 29, 2015 14:17
Segitiga
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<svg width="500px" height="500px"></svg>
<script>
var g = [{x:10, y:10}, {x:20, y:20}, {x:30, y:30}];
var svg = d3.select("svg");
var svgAll = svg.selectAll("circle");
@meriororen
meriororen / mr_status_bar_app.rb
Created May 17, 2012 16:41 — forked from rubiojr/mr_status_bar_app.rb
MacRuby StatusBar Application
#
# Initialize the stuff
#
# We build the status bar item menu
def setupMenu
menu = NSMenu.new
menu.initWithTitle 'FooApp'
mi = NSMenuItem.new
mi.title = 'Hellow from MacRuby!'
mi.action = 'sayHello:'
@meriororen
meriororen / capybara cheat sheet
Created June 27, 2012 03:24 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@meriororen
meriororen / config.h
Created October 30, 2013 03:40
Config.h for my dwm
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#005577";
static const char selbgcolor[] = "#005577";
static const char selfgcolor[] = "#eeeeee";
@meriororen
meriororen / cubie2-kvm-config
Last active December 30, 2015 21:19
Cubieboard2 configuration to run kvm
# Use kernel jwrdegoede/linux-sunxi sunxi-test (3.13)
#
# ----
#
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.13.0-rc2 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_MIGHT_HAVE_PCI=y
@meriororen
meriororen / guest-cb2-config-kvmtool
Created December 10, 2013 07:28
Guest config for running kvm guest on cubie2 with kvmtool
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.12.0-rc1 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_NO_IOPORT=y
CONFIG_STACKTRACE_SUPPORT=y
`timescale 1ns / 1ps
module testbench_lms ();
reg reset_p;
reg lms_clk;
initial begin
lms_clk = 0;
reset_p = 1;
@meriororen
meriororen / i2c.py
Created June 15, 2017 05:27
i2c setting for adau1361 on rpi
#!/usr/bin/env python
import smbus
import time
address = 0x38
bus = smbus.SMBus(1)
def set_value(reg, value):
reg_val = [ reg, value ]