Skip to content

Instantly share code, notes, and snippets.

[roberto@WKST0134 generator-jhipster]$ cat /usr/lib/node_modules/generator-jhipster/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'aws-sdk' ]
2 info using npm@3.5.0
3 info using node@v5.1.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData aws-sdk
8 silly fetchNamedPackageData aws-sdk
@robertolos
robertolos / dashing.erb
Created October 5, 2015 10:07
Shopify dashing - Comments widget for twitter mentions
<li data-row="1" data-col="1" data-sizex="2" data-sizey="1">
<div data-id="twitter_mentions" data-view="Comments" style="background-color:#00afd7;" data-moreinfo="Tweets @YoutTweetAccount" ></div>
<i class="icon-twitter icon-background"></i>
</li>
@robertolos
robertolos / comments.scss
Created October 5, 2015 10:05
Shopify dashing - Comments widget for twitter mentions
// ----------------------------------------------------------------------------
// Sass declarations
// ----------------------------------------------------------------------------
$background-color: #eb9c3c;
$title-color: rgba(255, 255, 255, 0.7);
$moreinfo-color: rgba(255, 255, 255, 0.7);
// ----------------------------------------------------------------------------
// Widget-comment styles
@robertolos
robertolos / comments.coffee
Created October 5, 2015 10:03
Shopify dashing - Comments widget for twitter mentions
class Dashing.Comments extends Dashing.Widget
@accessor 'quote', ->
"“#{@get('current_comment')?.body}”"
ready: ->
@currentIndex = 0
@commentElem = $(@node).find('.comment-container')
@nextComment()
@startCarousel()
@robertolos
robertolos / comments.html
Created October 5, 2015 10:01
Shopify Dashing - Comments widget for twitter mentions
<h1 class="title" data-bind="title"></h1>
<div class="comment-container">
<h3><img data-bind-src='current_comment.avatar'/><span data-bind='current_comment.name' class="name"></span></h3>
<p class="comment" data-bind='quote'></p>
<img id="media" data-showif="current_comment.media" data-bind-src='current_comment.media'/>
</div>
<p class="more-info" data-bind="moreinfo"></p>
@robertolos
robertolos / twitter.rb
Last active October 5, 2015 09:59
Shopify dashing - Twitter mentions
require 'twitter'
#### Get your twitter keys & secrets:
#### https://dev.twitter.com/docs/auth/tokens-devtwittercom
twitter = Twitter::REST::Client.new do |config|
config.consumer_key = 'YOUR_CONSUMER_KEY'
config.consumer_secret = 'YOUR_CONSUMER_SECRET_KEY'
config.access_token = 'YOUR_ACCESS_TOKEN'
config.access_token_secret = 'YOUR_ACCESS_TOKEN_SECRET'