Skip to content

Instantly share code, notes, and snippets.

View bguzryanto's full-sized avatar
🎯
Focusing

Bagus Rianto bguzryanto

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bguzryanto on github.
  • I am bagus (https://keybase.io/bagus) on keybase.
  • I have a public key whose fingerprint is 3B84 ADE5 BC36 9802 219C F604 18FD 40F5 E2E3 CD30

To claim this, I am signing this object:

@bguzryanto
bguzryanto / index.html
Created December 31, 2015 21:34
D3-Scale Example with React and NPMCDN
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://npmcdn.com/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]/dist/react.js"></script>
<script src="https://npmcdn.com/[email protected]/dist/react-dom.min.js"></script>
<script src="https://d3js.org/d3-array.v0.6.min.js"></script>
<script src="https://d3js.org/d3-color.v0.3.min.js"></script>
@bguzryanto
bguzryanto / notebook.ipynb
Created December 31, 2015 15:03
Sentiment Analisis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Install MAMP Development stack on Mountain Lion using MacPorts

NOTE: I like to prepend some of the commands with time just for curiosity’s sake to see how long it takes.

Turn off the built-in Apache

Go to System Preferences -> Sharing -> uncheck the Personal Web sharing. You will never turn Apache on/off here again.

Install Xcode via Mac App Store

Install MAMP Development stack on Mountain Lion using MacPorts

NOTE: I like to prepend some of the commands with time just for curiosity’s sake to see how long it takes.

Turn off the built-in Apache

Go to System Preferences -> Sharing -> uncheck the Personal Web sharing. You will never turn Apache on/off here again.

Install Xcode via Mac App Store

@bguzryanto
bguzryanto / sieve.rb
Last active December 17, 2015 16:29
Sieve
def sieve(to)
n = Array.new(to, true)
for i in 2..Math.sqrt(to) do
if n.at(i) == true
j = i;
while j*i < to do
n[i*j] = false
j += 1
end
@bguzryanto
bguzryanto / HashTable.cpp
Last active December 10, 2015 11:48
Hashtable in c++ language, procedural.
/**
* Program Hashtable dengan OpenAddressing
* Penampung data menggunakan array
* Tiga Implementasi menggunakan Linear Probing, Quadric Probing, Double Hashing
* Populasi data menggunakan fungsi random
*/
#include "stdio.h"
#include "math.h"
#include "iostream"
@bguzryanto
bguzryanto / TugasBST.java
Created December 3, 2012 10:44
Tugas BST With Java
/**
*
* @author bagusrianto
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class NodeTree{