Skip to content

Instantly share code, notes, and snippets.

View adisuryadi's full-sized avatar

Adi Luhung Suryadi adisuryadi

View GitHub Profile
@adisuryadi
adisuryadi / dabblet.css
Created May 20, 2013 03:50
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#input_2 { visibility: hidden; }
#textarea_1 { visibility: hidden; }
@adisuryadi
adisuryadi / Gemfile
Created June 12, 2013 09:46
Working Spree 2 Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
@adisuryadi
adisuryadi / fix-natural-scroll.sh
Created June 13, 2013 11:30
Fix natural scrolling on ubuntu (nautilus)
xinput list|grep Synaptics
xinput list-props 11 | grep "Scrolling Distance"
#!/bin/sh
xinput set-prop 11 288 -106 -106
nautilus -q
nautilus -n &
@adisuryadi
adisuryadi / sublime-keymap.json
Created June 21, 2013 04:27
windows sublime keymap
[
{ "keys": ["ctrl+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["ctrl+alt+t"], "command": "read_tweets" },
{ "keys": ["ctrl+shift+."], "command": "erb", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee" }
]
},
{ "keys": ["super+alt+p"], "command": "show_scope_name" },
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}},
@adisuryadi
adisuryadi / HTML.tmLanguage
Created June 28, 2013 02:44
this file makes us able to use zencoding/emmet in script text/template context
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>html</string>
<string>htm</string>
<string>shtml</string>
<string>xhtml</string>
body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
#HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; }
#HTMLReporter a { text-decoration: none; }
#HTMLReporter a:hover { text-decoration: underline; }
#HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; }
#HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; }
#HTMLReporter #jasmine_content { position: fixed; right: 100%; }
#HTMLReporter .version { color: #aaaaaa; }
#HTMLReporter .banner { margin-top: 14px; }
set guifont=essential_pragmatapro:h10
set backspace=2
set guioptions-=T
set guioptions-=L
set guioptions-=r
@adisuryadi
adisuryadi / config.xml
Created July 28, 2013 23:46
Console2 with MinGW bash
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="25" columns="80" buffer_rows="500" buffer_columns="0" shell="c:\msysgit\msysgit\msys.bat /bin/bash -l" init_dir="" start_hidden="0" save_size="0">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
@adisuryadi
adisuryadi / uninstall-gems.sh
Created December 27, 2014 03:39
Uninstall all ruby gems
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
@adisuryadi
adisuryadi / compile.sh
Last active November 28, 2021 00:16
Run ES6/ES2016/ES2017 in Coderunner (using babel)
#!/bin/bash
#
# This script will transplie our code using babel and evaluates it using node.js
#
# Steps:
# 1) Install babel globally:
# npm install -g babel-cli
# or
# yarn global add babel-cli
# 2) Create a new language in Coderunner preferences (eg. Javascript (Babel)).