Skip to content

Instantly share code, notes, and snippets.

View berkedel's full-sized avatar

Akhmad Syaikhul Hadi berkedel

View GitHub Profile
/**
* Add -lupm-ldt0028 flag
*/
#include <iostream>
#include <iomanip>
#include <cmath>
#include <mraa.hpp>
#include <upm/ldt0028.h>
using namespace std;
@berkedel
berkedel / SmartTable.cpp
Created October 18, 2015 00:52
Smart Table
#include <iostream>
#include <cmath>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <mraa.hpp>
@berkedel
berkedel / gist:04f6c5497362f267bf31
Created December 11, 2015 14:57
Android Library Curator
loadtoast :: https://github.com/code-mc/loadtoast
Pretty material design toasts with feedback animations
recyclerview-animators :: https://github.com/wasabeef/recyclerview-animators
An Android Animation library which easily add itemanimator to RecyclerView items.
LinearListView :: https://github.com/frankiesardo/LinearListView
Android library that allows you to bind a LinearLayout with a ListAdapter.
FakeSearchView :: https://github.com/leonardoxh/FakeSearchView
@berkedel
berkedel / Visualize Git Cheatsheet.md
Last active October 18, 2022 11:19
Visualize Git Cheatsheet

Visualize Git Cheatsheet

Git Cheatsheet, (c) 2009-2012, Andrew Peterson

Stash

A place to hide modifications made to the workspace, while working on something else. (The stash area is not required in a “normal” workflow.)

Stash

@berkedel
berkedel / Test WebRTC Pake USB Camera Di Rasberry Pi 2.md
Last active February 6, 2018 13:38
Test WebRTC Pake USB Camera Di Rasberry Pi 2

Test WebRTC Pake USB Camera Di Rasberry Pi 2

Ini adalah catatan pribadi ketika mencoba memasang WebRTC server di raspberry pi 2 dengan usb camera bukan raspicam. Bagi yang menggunakan raspicam silahkan simak di sini

Persiapan kali ini, saya menggunakan spesifikasi sebagai berikut,

  1. Raspberry Pi 2 dengan OS Raspbian Wheezy
  2. Logitech HD Webcam C525

Ada baiknya sebelum membeli USB camera, sebaiknya melihat list kompatibilitas driver uvc di sini. Apa itu uvc? Adalah kependekan dari USB Video Class yang merupakan semacam spesifikasi yang mengatur standarisasi webcams, digital camcorders, analog video converters, analog and digital television tuners, dan still-image cameras untuk streaming video maupun audio agar mudah diakses di linux.

@berkedel
berkedel / Install Latest Node.js On Raspberry Pi 2.md
Created February 4, 2016 12:42
Install Latest Node.js On Raspberry Pi 2

Install Latest Node.js On Raspberry Pi 2.md

Open terminal, and download Node.js package for arm processor. Curently the latest version is v5.5.0.

$ wget https://nodejs.org/dist/v5.5.0/node-v5.5.0-linux-armv7l.tar.gz

Uncompressed the package to any folder. It will create a new folder named node-v4.0.0-linux-armv7l.

$ tar -xvf node-v4.0.0-linux-armv7l.tar.gz
@berkedel
berkedel / Install Synapse On Raspbian Wheezy.md
Last active March 4, 2020 23:08
Install Synapse On Raspbian Wheezy

Install Synapse On Raspbian Wheezy

Before processing on installing Synapse, make sure you have already installed all dependecies of Synapse. By default, we only need to install python development and libffi. Open your terminal and execute the command below.

$ sudo apt-get install python2.7-dev libjpeg8-dev libffi-dev

We use virtualenv. If you did not installed yet, install first.

@berkedel
berkedel / Enable Soundcard Di Raspberry Pi 2.md
Created February 15, 2016 04:22
Enable Soundcard Di Raspberry Pi 2

Enable Soundcard Di Raspberry Pi 2

Mungkin sebagian pada bingung, bisa streaming video tapi koq tidak muncul suaranya ya? Karena secara default driver soundcard yang berasal dari USB webcam tidak terindeks di konfigurasi ALSA. Maka dibutuhkan untuk muncul diindeks. Sebelumnya bisa dicek dengan perintah

$ arecord -l

Tampilan outputnya akan nampak seperti berikut

**** List of CAPTURE Hardware Devices ****
card 0: C525 [HD Webcam C525], device 0: USB Audio [USB Audio]
@berkedel
berkedel / Jenkins on OSX.md
Created February 17, 2016 05:17
Jenkins on OSX

Installation

To install Jenkins, run command below in terminal.

$ brew install jenkins

Run

To run manually,

@berkedel
berkedel / Redbear Duo - DFU Installation.md
Last active February 17, 2016 14:12
Redbear Duo - DFU Installation

DFU Installation Guide

dfu-util is a tool for Device Firmware Upgrade to the Duo via the USB port.

Enter DFU Mode

  • Connect the Duo to your computer via the USB port.

  • Press and hold the 'SETUP' button and then press the 'RESET' button, release the 'SETUP' button once you see the RGB is flashing in yellow color.