Skip to content

Instantly share code, notes, and snippets.

View helloluis's full-sized avatar
💭
Just shillin'

Luis Buenaventura helloluis

💭
Just shillin'
View GitHub Profile
@helloluis
helloluis / Slim HTML5 Boilerplate Conditional Comments
Created August 31, 2011 08:52
How to get HTML5 Boilerplate-style Conditional Comments Working in Slim
doctype html
/[if lt IE 7]
| <html class="ie6">
/[if IE 7]
| <html class="ie7">
/[if IE 8]
| <html class="ie8">
/[if IE 9]
| <html class="ie9">
| <!--[if (gte IE 9)|!(IE)]<!--> <html> <!--<![endif]-->
var Kraken = function(){
this.host = "https://api.kraken.com";
this.tab = "kraken";
this.balances = {};
this.initialize = function() {
var pp = PropertiesService.getScriptProperties();
var Bitstamp = function(){
this.host = "https://www.bitstamp.net";
this.path = "/api/";
this.balances = {};
this.initialize = function() {
var pp = PropertiesService.getScriptProperties();
this.key = pp.getProperties()['bitstamp_key'];
pragma solidity 0.4.25;
// ----------------------------------------------------------------------------
// 'BX8' token contract
//
// Deployed to :
// Symbol : BX8
// Name : BX8Token
// Total supply: 3888888888
// Decimals : 18
def connect_to_ir!(path, method=:post, payload={})
uri = URI.parse("https://api.independentreserve.com/Private")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
api_key = App.services.independentreserve.api_key
api_secret = App.services.independentreserve.api_secret
nonce = Time.now.to_i
RuntimeError in SitesController#show
ERR unknown command 'hset'
Rails.root: /Users/Luis/Sites/infinitely/main
Application Trace | Framework Trace | Full Trace
redis (2.2.2) lib/redis/client.rb:47:in `call'
/Users/Luis/.rvm/gems/ruby-1.9.2-p290@infinitely/bundler/gems/rpm_contrib-694e43044d4f/lib/rpm_contrib/instrumentation/redis.rb:30:in `block in raw_call_command_with_newrelic_trace'
newrelic_rpm (3.1.2) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
/Users/Luis/.rvm/gems/ruby-1.9.2-p290@infinitely/bundler/gems/rpm_contrib-694e43044d4f/lib/rpm_contrib/instrumentation/redis.rb:28:in `raw_call_command_with_newrelic_trace'
gem install ruby-debug19 -- -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.
ruby-1.8.7-p302/ ruby-1.9.2-head/ ruby-1.9.2-p0/ ruby-1.9.2-p290/
luis-imac:main Luis$ gem install ruby-debug19 -- -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.9.2-head
/Users/Luis/.rvm/rubies/ruby-1.9.2-head/bin/gem:4: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
/Users/Luis/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.9.2-head
checking for vm_core.h... no
@helloluis
helloluis / jQuery findClassWithRegex
Created September 30, 2011 03:48
Mini-plugin for selecting elements with regex instead of an actual class name
$.fn.findClassWithRegex = function(regex) {
var results = [];
$(this).each(function(){
if ($(this).attr('class').length>0 && $(this).attr('class').match(regex)) {
results.push( this );
}
Error starting application
Your Rack app raised an exception when Pow tried to run it.
SystemExit: exit
~/.rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.12/lib/bundler/setup.rb:10:in `exit'
~/.rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.12/lib/bundler/setup.rb:10:in `rescue in <top (required)>'
~/.rvm/gems/ruby-1.9.2-head/gems/bundler-1.0.12/lib/bundler/setup.rb:5:in `<top (required)>'
~/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
~/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
Show 21 more lines
(If your app uses Bundler, check to make sure you have the latest version, then run bundle install. If you’re using rvm, make sure you have the latest version installed and your app is using the right gemset.)
On branch master
# Your branch and 'origin/master' have diverged,
# and have 3 and 43 different commit(s) each, respectively.
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: README.md
# modified: assets/stylesheets/guest.css
# modified: builder/.gitignore