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
def trunk(input, length, path=nil) | |
shorten = truncate(input, :length => length) | |
return link_to shorten, path, :rel=>"tooltip", :title=>input if path | |
content_tag(:span, shorten, :rel=>"tooltip", :title=>input) | |
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
def update | |
@style = Style.find(params[:id]) | |
if @style.update_attributes(params[:style]) | |
redirect_to add_path | |
else | |
respond_to do |format| | |
format.html { render action: "edit" } | |
format.json { render json: @style.errors, status: :unprocessable_entity } | |
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
$(document).ready( function () { | |
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw ) | |
{ | |
if ( typeof sNewSource != 'undefined' && sNewSource != null ) { | |
oSettings.sAjaxSource = sNewSource; | |
} | |
// Server-side processing should just call fnDraw | |
if ( oSettings.oFeatures.bServerSide ) { |
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
%select{:name => "tags", :id=>"tags"} | |
- @tags.each do |tag| | |
%option{:value => "ha"} tag |
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
<div class="navbar navbar-inverse"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</a> | |
<div class="nav-collapse collapse"> | |
<ul class="nav"> |
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.3p286 :008 > @consumer = Consumer.first | |
Consumer Load (0.6ms) SELECT "consumers".* FROM "consumers" LIMIT 1 | |
=> #<Consumer id: 25, hl: nil, created_at: "2012-10-22 19:14:34", updated_at: "2012-10-22 19:14:34", user_id: 29, display_name: nil, tagline: nil, desc: nil> | |
1.9.3p286 :009 > @consumer.interest_list = "yo, he" | |
ActsAsTaggableOn::Tag Load (0.8ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 25 AND "taggings"."taggable_type" = 'Consumer' AND (taggings.context = 'interests' AND taggings.tagger_id IS NULL) | |
=> "yo, he" | |
1.9.3p286 :010 > @consumer.interest_list | |
=> ["yo", "he"] | |
1.9.3p286 :011 > @consumer.save | |
(0.6ms) BEGIN |
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.3p286 :001 > @consumer = Consumer.first | |
Creating scope :page. Overwriting existing method Consumer.page. | |
Consumer Load (1.3ms) SELECT "consumers".* FROM "consumers" LIMIT 1 | |
=> #<Consumer id: 29, hl: nil, created_at: "2012-10-27 23:27:15", updated_at: "2012-10-27 23:27:15", user_id: 33, display_name: nil, tagline: nil, desc: nil> | |
1.9.3p286 :002 > @consumer.tags | |
ActsAsTaggableOn::Tag Load (2.3ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 29 AND "taggings"."taggable_type" = 'Consumer' AND (taggings.context = 'tags') | |
=> [] | |
1.9.3p286 :003 > @consumer.tag_list | |
ActsAsTaggableOn::Tag Load (1.4ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 29 AND "taggings"."taggable_type" = 'Consumer' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL) | |
=> [] |
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
<% provide :title, 'Consumer Profile | Update' %> | |
<legend>Update your Profile</legend> | |
<%= simple_form_for @consumer, :html => { :class => 'cons_edit form-horizontal' } do |f| %> | |
<%= f.input :display_name, :label => "Public name", :placeholder => @consumer.user.username %> | |
<%= f.input :tagline, :placeholder => "Your tagline" %> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
funkdified@vizio ~ $ echo "deb https://download.01.org/gfx/ubuntu/12.10/main Ubuntu 12.10 #Intel Graphics drivers" | sudo tee /etc/apt/sources.list.d/intellinuxgraphics.list | |
[sudo] password for funkdified: | |
deb https://download.01.org/gfx/ubuntu/12.10/main Ubuntu 12.10 #Intel Graphics drivers | |
funkdified@vizio ~ $ wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add - | |
--2013-05-30 22:32:39-- https://download.01.org/gfx/RPM-GPG-KEY-ilg | |
Resolving download.01.org (download.01.org)... 198.145.11.106, 2001:19d0:3:5::106 | |
Connecting to download.01.org (download.01.org)|198.145.11.106|:443... connected. | |
WARNING: no certificate subject alternative name matches | |
requested host name `download.01.org'. | |
HTTP request sent, awaiting response... 200 OK |