Skip to content

Instantly share code, notes, and snippets.

View rosdyana's full-sized avatar
💭
I may be slow to respond.

Rosdyana Kusuma rosdyana

💭
I may be slow to respond.
View GitHub Profile
@rosdyana
rosdyana / getYahooStock.R
Last active May 25, 2017 06:15
Yahoo market data download - R
require(data.table)
yahoo_downloader_env <- new.env()
.get_yahoo_curl = function(symbol) {
curl = RCurl::getCurlHandle( cookiejar = '' )
html = RCurl::getURL( paste0('https://finance.yahoo.com/quote/',symbol,sep=""), curl = curl )
crumb = gsub( '^.*crumb":"\\s*|".*', '', html )
assign( 'crumb', crumb, envir = yahoo_downloader_env )
assign( 'curl' , curl , envir = yahoo_downloader_env )
@rosdyana
rosdyana / generate5gram.R
Last active June 8, 2017 07:32
generate 5 gram
require(data.table)
amino = c("A","R","N","D","C","Q","E","G","H","I","L","K","M","F","P","S","T","W","Y","V")
df_total = data.frame()
for(a in amino){
for(b in amino){
for(c in amino){
for(d in amino){
for(e in amino){
@rosdyana
rosdyana / jupyter config
Last active July 4, 2017 06:52
jupyter config
jupyter notebook --generate-config
/home/ros/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
@rosdyana
rosdyana / note27072017.md
Last active July 27, 2017 12:53
note 27/07/2017

Install Tensoforflow + PyTorch in Windows platform using miniconda

composer create-project --prefer-dist laravel/laravel deepefflux
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
cp .env.example .env
php artisan key:generate
mkdir deepefflux_task
cd deepefflux_task
npm init
npm install --save async knex moment mysql socketio
npm install --save-dev nodemon
// package.json
"scripts": {
"dev": "nodemon server.js"
},
.httacces
===
DirectoryIndex index.php
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
@rosdyana
rosdyana / HyperledgerFabric.md
Created November 13, 2017 08:31
Hyperledger Fabric

What is Hyperledger Fabric

  • Hyperledger Fabric is enterprise grade distributed ledger based on blockchain technology that use smart contract to enforce trust between parties.
  • start from IBM, opensource.
  • hyperledger based on blockchain, but hyperledger isn't cryptocurrency, there's no mining in hyperledger.
  • hyperledger using blockchain without being cryptocurrency.
  • hyperledger keep good props of cryptocurrency blockchain like block imutable, all operation determination, etc.
  • ex : etherium - a thousand transaction per minute, hyperledger easily can operate half million of transaction per minute
  • hyperledger is distributed by design, it's not decentralized database.
  • data -> blockchain data -> imutable
@rosdyana
rosdyana / fork_remote.md
Created December 3, 2017 05:20
Keep fork repo up2date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@rosdyana
rosdyana / Slic3r_how.MD
Last active December 22, 2017 09:25
Step by step installation of Slic3r in W10

Step by step installation of Slic3r in W10

Install the perl

Slic3r Perl

  • Download Slic3r Perl.
  • Install it, following the on screen instruction. Basically that means keep clicking Next.

Installing the dependencies

Installing the Boost libraries

Slic3r is known to work with Boost 1.63.0. Note: Dev version prior to 27/03/2017 worked ok with boost 1_59_0. If you have that installed, you need to erase the folder c:\dev\boost_1.59_0\ and then install and compile the new boost libraries, following the next instructions