Skip to content

Instantly share code, notes, and snippets.

View ibedwi's full-sized avatar
📚
Learning

Ibe Dwi ibedwi

📚
Learning
View GitHub Profile
@ibedwi
ibedwi / ReactJSLibraryList.md
Last active January 20, 2019 11:00
[ReactJS Library List] List of React JS Library that make your life easier. #react #reactjs #javascript

Init Project

  • ReactJS - Create React apps with no build configuration.
  • Razzle - Create server-rendered universal JavaScript applications with no configuration
  • Next.js - The React Framework

Styling

  • Styled-Component - Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress
  • Animate.css - CSS Animatino Library
"""
@author : Ida Bagus Dwi Satria Kusuma - @dskusuma
Notes :
There are two kind of solutions. The first is solution using the Open-CV's
library. The second is without the library.
"""
import numpy as np
import cv2
"""
@author : Ida Bagus Dwi Satria Kusuma - @dskusuma
Notes :
There are two kind of solutions. The first is solution using the Open-CV's
library. The second is without the library.
"""
import numpy as np
import cv2
@ibedwi
ibedwi / RGBtoBinary.py
Last active October 20, 2020 14:12
RGB to Binary Color Conversion implemented on Python with OpenCV
"""
@author : Ida Bagus Dwi Satria Kusuma - @dskusuma
Notes :
There are two kind of solutions. The first is solution using the Open-CV's
library. The second is without the library.
"""
import numpy as np
import cv2
@ibedwi
ibedwi / noiseGaussian.m
Last active March 12, 2018 08:28
Example of image-noise using MATLAB library.
% Read Image
img = imread('....');
% Create Noise Image
noiseGaussianImage = imnoise(img,'gaussian');
@ibedwi
ibedwi / index.html
Last active March 15, 2018 18:08
Tribute Page - Free Code Camp Project
<body>
<div class="container">
<div class="well">
<h1 class="text-center"> John Lasseter</h1>
<h3 class="text-center"> The Man behind Pixar </h2>
<div class="text-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/1/17/John_Lasseter_2_cropped_2009.jpg" />
</div>
<!-- content goes here -->
<div>
@ibedwi
ibedwi / pythonRoundToMultipleOfNumber.py
Created March 8, 2018 02:10
Round some number into its multiple of number, example round 47 to multiple of 5 will produce 50.
def myround(x, base=5):
return int(base * round(float(x)/base))
@ibedwi
ibedwi / histogramAlgorithm
Created March 1, 2018 02:22
Algorithm for making histogram.
histogram(pic) := | for bright in 0..255
| pixels_at_level_bright = 0
| for x in 0 .. cols(pic) - 0
| for y in 0 .. rows(pic) - 1
| | level = pic(y,x)
| | pixels_at_level(level) = pixels_at_level(level) + 1
| pixels_at_level
@ibedwi
ibedwi / kelompokkanKelasData.m
Created February 28, 2018 06:55
Code matlab untuk mencari data dengan kelas tertentu dari kumpulan data.
% Misal kita memiliki matriks data dengan 3 atribut dan kelas dari data
% Misal nama matriks data adalah 'data_latih'
% matriks data akan berbentuk seperti ini :
% Atribut1 | Atribut2 | Atribut 3| Kelas |
% a1 | a2 | a3 | 0 |
% b1 | b2 | b3 | 0 |
% c1 | c2 | c3 | 0 |
% d1 | d2 | d3 | 1 |
% e1 | e2 | e3 | 1 |
% f1 | f2 | f3 | 2 |
% Get list of all JPG files in this directory
% DIR returns as a structure array. You will need to use () and . to get
% the file names.
imagefiles = dir('*.jpg');
nfiles = length(imagefiles); % Number of files found
for ii=1:nfiles
currentfilename = imagefiles(ii).name;
currentimage = imread(currentfilename);
images{ii} = currentimage;