Skip to content

Instantly share code, notes, and snippets.

View eqbal's full-sized avatar
🤖
git pull a day keeps the conflicts away

Eqbal Eki eqbal

🤖
git pull a day keeps the conflicts away
View GitHub Profile
@eqbal
eqbal / gist:1233687
Created September 22, 2011 00:06
Gtk is not working on my Lion OSX , and it seems that the brew doctor is not working anymore after "sudo chown -R $USER /usr/local" you mentioned
It seems that I can't install gtk somehow , I'm using Xcode 4 , No maceport and fink installed and now it seems that I can't use brew doctor after chown /usr/local .
Any Help would be highly appreciated .
Thanks in advance
/usr/local$ brew install -v gtk
==> Installing gtk+ dependency: gdk-pixbuf
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.23/gdk-pixbuf-2.23.5.tar.bz2
File already downloaded in /Users/Apple/Library/Caches/Homebrew
@eqbal
eqbal / wine is not working with brew
Created October 21, 2011 17:43
Wine is not working with Mac Lion
~/code$ brew install -v wine
Warning: Building with LLVM, but this formula is reported to not work with LLVM:
Wine dies with an "Unhandled exception code" when built with LLVM
We are continuing anyway so if the build succeeds, please open a ticket with
the following information: 2335-10.7. So
that we can update the formula accordingly. Thanks!
If it doesn't work you can: brew install --use-gcc
@eqbal
eqbal / gist:1306324
Created October 22, 2011 18:29
Wine is not working under Lion
~/code/shit$ brew install wine --HEAD
Warning: Building with LLVM, but this formula is reported to not work with LLVM:
Wine dies with an "Unhandled exception code" when built with LLVM
We are continuing anyway so if the build succeeds, please open a ticket with
the following information: 2335-10.7. So
that we can update the formula accordingly. Thanks!
If it doesn't work you can: brew install --use-gcc
@eqbal
eqbal / song.rb
Created August 27, 2016 10:34
What's the song?
stops = ->(x) { abort("what is the song?") }
thing = [] ;
class This
class << self
def tell; end
def terrible(_); yield ; end
end
end
class Entry < ActiveRecord::Base
validates :status_weather, inclusion: {
in: EntryStatus::OPTIONS[:weather]
}
validates :status_landform, inclusion: {
in: EntryStatus::OPTIONS[:landform]
}
#!/usr/bin/env python
import math
import rospy
from std_msgs.msg import Float64
from sensor_msgs.msg import JointState
from simple_arm.srv import *
def at_goal(pos_j1, goal_j1, pos_j2, goal_j2):
tolerance = .05
@eqbal
eqbal / tbd.diff
Created September 24, 2018 13:47
diff --git a/app/concepts/affiliate_commission/contract/create_offsetting_commission.rb b/app/concepts/affiliate_commission/contract/create_offsetting_commission.rb
new file mode 100644
index 0000000000..f3104037ee
--- /dev/null
+++ b/app/concepts/affiliate_commission/contract/create_offsetting_commission.rb
@@ -0,0 +1,44 @@
+require "reform/form/dry"
+
+module AffiliateCommission::Contract
+ class CreateOffsettingCommission < Reform::Form
@eqbal
eqbal / mrsool_farewell.rb
Created August 14, 2023 17:46
Ruby Code to Say Goodbye to My Team at Mrsool
class Farewell < Mrsool
def initialize(colleagues)
@colleagues = colleagues
puts "It's time to close this chapter. You've all been the 'attr_accessor' to my success."
end
def thank_you
puts "From 'do' loops to food scoops, we've built an 'exception'al app."
end