Skip to content

Instantly share code, notes, and snippets.

View osdiab's full-sized avatar

Omar Diab osdiab

View GitHub Profile
@osdiab
osdiab / piano_choices.md
Created November 17, 2015 22:34
Choices for a Clever digital piano

Digital piano suggestions

As aggregated from the Slack #piano channel.

Thoughts

  • Good hammer action is important.
  • Having at least a sustain pedal is important.
  • Headphone output necessary
  • Builtin speakers preferred
@osdiab
osdiab / gist:7019071
Created October 17, 2013 04:02
Error using tumblr_client with Rubinius
irb(main):016:0* client.info
NoMethodError: undefined method `[]' on nil:NilClass.
from kernel/delta/kernel.rb:78:in `[] (method_missing)'
from /Users/odiab/lib/rbx-2.0.0/gems/gems/tumblr_client-0.8.2/lib/tumblr/request.rb:44:in `respond'
from /Users/odiab/lib/rbx-2.0.0/gems/gems/tumblr_client-0.8.2/lib/tumblr/request.rb:26:in `get'
from /Users/odiab/lib/rbx-2.0.0/gems/gems/tumblr_client-0.8.2/lib/tumblr/user.rb:5:in `info'
from (irb):16
from kernel/common/block_environment.rb:53:in `call_on_instance'
from kernel/common/eval.rb:176:in `eval'
from kernel/common/kernel.rb:440:in `loop'
@osdiab
osdiab / Log
Created October 18, 2013 06:59
rubysl-iconv fails to install
/Users/odiab/lib/rbx-2.0.0/bin/rbx extconf.rb
checking for iconv() in iconv.h... no
checking for iconv() in -liconv... yes
checking for const of iconv() 2nd argument... no
creating Makefile
make "DESTDIR="
compiling iconv.c
In file included from iconv.c:21:
/Users/odiab/lib/rbx-2.0.0/vm/include/capi/ruby/backward/st.h:1:2: warning: use "ruby/st.h" instead of bare "st.h" [-W#warnings]
@osdiab
osdiab / dump
Created October 18, 2013 07:57
iconv errors, rbx 2.0.0, padrino
00:49:20 web.1 | An exception occurred running /Users/odiab/lib/rbx-2.0.0/gems/bin/rackup:
00:49:20 web.1 |
00:49:20 web.1 | no such file to load -- iconv (LoadError)
00:49:20 web.1 |
00:49:20 web.1 | Backtrace:
00:49:20 web.1 |
00:49:20 web.1 | Rubinius::CodeLoader#load_error at kernel/common/code_loader.rb:436
00:49:20 web.1 | Rubinius::CodeLoader#resolve_require_path at kernel/common/code_loader.rb:423
00:49:20 web.1 | { } in Rubinius::CodeLoader#require at kernel/common/code_loader.rb:103
00:49:20 web.1 | Rubinius.synchronize at kernel/bootstrap/rubinius.rb:137
@osdiab
osdiab / Gemfile
Created October 21, 2013 23:10
Dump when pushing to heroku
# encoding: UTF-8
source 'https://rubygems.org'
# rubinius
ruby '2.1.0', engine: 'rbx', engine_version: '2.1.1'
gem 'rubysl'
# core
gem 'sinatra', '1.4.3'
@osdiab
osdiab / .vimrc
Created October 31, 2013 23:41
vimrc
execute pathogen#infect()
set encoding=utf-8
" STATUSLINE
"recalculate the trailing whitespace warning when idle, and after saving
autocmd cursorhold,bufwritepost * unlet! b:statusline_trailing_space_warning
"return '[\s]' if trailing white space is detected
"return '' otherwise
@osdiab
osdiab / gist:7638151
Created November 25, 2013 08:26
Rbx-2.2.1 Rubocop dump
An exception occurred running /Users/osdiab/.rvm/gems/rbx-2.2.1/bin/ruby_executable_hooks:
Parser does not support parsing Ruby 2.1.0 (NotImplementedError)
Backtrace:
{ } in Object(Module)#__script__ at /Users/osdiab/.rvm/gems/rbx-2.2.1/gems/parser-2.0.0/lib/parser/current.rb:32
Object#__script__ at /Users/osdiab/.rvm/gems/rbx-2.2.1/gems/parser-2.0.0/lib/parser/current.rb:1
Rubinius::CodeLoader.require at kernel/common/code_loader.rb:243
Kernel(Object)#require at kernel/common/kernel.rb:685

Keybase proof

I hereby claim:

  • I am osdiab on github.
  • I am osdiab (https://keybase.io/osdiab) on keybase.
  • I have a public key whose fingerprint is F16E 7477 7610 192E 0F09 633A F4FC 5AA2 92FF 8FDD

To claim this, I am signing this object:

// pages/WelcomePage.jsx
export function WelcomePage(props) {
return <h1>props.message</h1>;
}
// pages/AboutPage.jsx
export function AboutPage(props) {
return (<ul>
<li>props.teammate[0].name</li>
// pages/WelcomePage.jsx
export function WelcomePage(props) {
return <h1>props.message</h1>;
}
// pages/AboutPage.jsx
export function AboutPage(props) {
return (<ul>
<li>props.teammate[0].name</li>