This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libcurl4-openssl-dev pkg-config libtool libncurses5-dev libudev-dev screen xterm | |
sudo apt-get install git-core | |
sudo apt-get install openssh-server byobu | |
sudo apt-get install autoconf | |
sudo apt-get install automake | |
wget "https://www.dropbox.com/s/eur5g46om5x7mx6/cgminer-3.7.0.tar.bz2" | |
https://www.dropbox.com/s/ye8ey32wg9phudv/ADL_SDK_6.0.zip | |
https://www.dropbox.com/s/iwf97gofte4bp27/AMD-APP-SDK-v2.9-lnx32.tgz | |
cd /opt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
inline float fast_log(float val) | |
{ | |
int * const exp_ptr = reinterpret_cast <int *>(&val); | |
int x = *exp_ptr; | |
const int log_2 = ((x >> 23) & 255) - 128; | |
x &= ~(255 << 23); | |
x += 127 << 23; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= search_form_for @search do |f| %> | |
<div class="field"> | |
<%= f.label :name_cont, "Name contains" %> | |
<%= f.text_field :name_cont %> | |
</div> | |
<div class="actions"><%= f.submit "Search" %></div> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3-p392 :006 > City.search(:id_eq => 12381723981273) | |
=> Ransack::Search<class: City, base: Grouping <conditions: [Condition <attributes: ["id"], predicate: eq, values: [12381723981273]>], combinator: and>> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3-p392 :002 > City.find(1) | |
City Load (20.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]] | |
=> #<City id: 1, state_id: 1, name: "Bangalore", overview: "Bangalore is the capital city of the Indian state ...", fact: "test test test test test test test test test test t...", top_industries: "test test test test test test test test test test t...", judicial_system: "test test test test test test test test test test t...", business_real_estate: "test test test test test test test test test test t...", regulatory_authorities: "test test test test test test test test test test t...", created_at: "2013-10-21 11:20:44", updated_at: "2013-10-21 11:20:44"> | |
1.9.3-p392 :003 > City.search("id=129378198273") | |
NoMethodError: undefined method `with_indifferent_access' for "id=129378198273":String | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/ransack-0.7.2/lib/ransack/search.rb:21:in `initialize' | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/ransack-0.7.2/lib/ransack/adapters/ac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainsController < ApplicationController | |
def index | |
if @search = City.search(params[:q]).blank? | |
@cities = @search.result | |
elsif @search = State.search(params[:q]).blank? | |
@states = @search.result | |
else | |
@search = Country.search(params[:q]) | |
@countries= @search.result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-07-16T15:27:16.028174+00:00 app[web.1]: Processing by HelpsController#index as HTML | |
2013-07-16T15:27:16.036676+00:00 heroku[router]: at=info method=GET path=/helps host=ineedafavor.herokuapp.com fwd="106.51.152.196" dyno=web.1 connect=1ms service=358ms status=500 bytes=643 | |
2013-07-16T15:25:59.646082+00:00 heroku[router]: at=info method=GET path=/js/theme.js host=ineedafavor.herokuapp.com fwd="106.51.152.196" dyno=web.1 connect=0ms service=26ms status=304 bytes=0 | |
2013-07-16T15:25:59.804336+00:00 heroku[router]: at=info method=GET path=/img/signin_icos.png host=ineedafavor.herokuapp.com fwd="106.51.152.196" dyno=web.1 connect=0ms service=44ms status=304 bytes=0 | |
2013-07-16T15:27:22.050130+00:00 app[web.1]: Started GET "/favors/1" for 106.51.152.196 at 2013-07-16 15:27:22 +0000 | |
2013-07-16T15:27:22.085444+00:00 app[web.1]: | |
2013-07-16T15:27:22.085444+00:00 app[web.1]: | |
2013-07-16T15:27:22.087308+00:00 app[web.1]: Completed 404 Not Found in 15ms | |
2013-07-16T15:27:22.085444+00:00 app[web.1]: app/controllers/fa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
../app/controllers/modelname_html | |
format.pdf do | |
pdf = MemberPdf.new(@member, view_context) | |
send_data pdf.render, filename: | |
"member.pdf", | |
type: "application/pdf" | |
end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8892318004 hemanth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://zapier.com/app/dashboard | |
http://ustav13.eventbrite.com/# | |
http://www.telapi.com/ | |
https://www.twilio.com/ | |
https://draftin.com/ | |
[email protected] | |
https://login.secureserver.net/index.php?app=wbe | |
http://utsav2013.sched.org/ |