Skip to content

Instantly share code, notes, and snippets.

View indrabinridwan's full-sized avatar
🌴
On vacation

Indra Susila indrabinridwan

🌴
On vacation
  • Jakarta, Indonesia
View GitHub Profile
@indrabinridwan
indrabinridwan / index.html
Last active September 17, 2017 06:06
sample svgku
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene3" height="230">
@indrabinridwan
indrabinridwan / index.html
Last active September 17, 2017 13:43
baper follback
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:750px; max-height:750px; -webkit-transform:rotate(0deg)">
<scene id="scene1" height="350" width="350">
<drawing t="translate(1,52) rotate(2)" pose="2,10">
/*
* Steps
* 1. Rename your gulpfile.js to gulpfile.babel.js
* 2. Add babel to your package.json (npm install -D babel)
* 3. Start writing ES6 in your gulpfile!
*/
import gulp from 'gulp'; // ES6 imports!
import sass from 'gulp-sass';
/*
* Steps
* 1. Rename your gulpfile.js to gulpfile.babel.js
* 2. Add babel to your package.json (npm install -D babel)
* 3. Start writing ES6 in your gulpfile!
*/
import gulp from 'gulp'; // ES6 imports!
import sass from 'gulp-sass';
function varTest() {
var x = 1;
if (true) {
var x = 2; // same variable!
console.log(x); // 2
}
console.log(x); // 2
}
function letTest() {
@indrabinridwan
indrabinridwan / arrows.js
Last active August 28, 2016 15:30
arrows js compiled with babel
"use strict";
var angka = [1, 2, 3, 4, 5];
var kalikanDua = angka.map(function (n) {
return n * 2;
});
console.log(kalikanDua); // akan menampilkan [2,4,6,8,10]
@indrabinridwan
indrabinridwan / arrows.js
Last active August 28, 2016 15:30
example arrows ES6
var angka = [1,2,3,4,5];
var kalikanDua = angka.map(n => n * 2);
console.log(kalikanDua); // akan menampilkan [2,4,6,8,10]
@indrabinridwan
indrabinridwan / .babelrc
Created August 28, 2016 14:46
babelrc example
{
"presets": ["es2015"]
}
@indrabinridwan
indrabinridwan / dot.vimrc
Created August 9, 2016 07:44
Vim Conviguration for rails development
This file has been truncated, but you can view the full file.
"######################################################################
" Vim-Plug for plugin managemen
"######################################################################
call plug#begin('~/.config/nvim/plugged')
"Vim Nerdtree
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" The sparkup vim script is in a subdirectory of this repo called vim.
@indrabinridwan
indrabinridwan / indra_tmux.conf
Created August 9, 2016 07:37
my tmux configuration file
############### Kill status tmux, its bad!
set -g status off
############### Use UTF 8
set status-utf8 on
set utf8 on
set-window-option -g utf8 on