[ingstagram image](javascript:document.location = $(".Frame.Image").attr("src");)
This file contains 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
<?php | |
/* | |
EXAMPLE TO CREATE A NEW BITCOIN PAYMENT | |
====================== | |
- User enters all the payment details. | |
- after the user has entered his details and selects to pay, | |
we make a request to create a new bitcoin invoice. |
This file contains 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
require "redis" | |
redis = Redis.new | |
trap(:INT) { | |
redis.unsubscribe | |
puts 'bye' | |
exit | |
} |
This file contains 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
[ | |
{ | |
"sha": "4a4a74838ccfd7dadcb454be11a06cc6a9d3de7330f6c555e37853b7eb2e4526", | |
"date": "2014-10-10", | |
"entry_date": "2014-10-10", | |
"amount": 123.45, | |
"amount_in_cents": 12345, | |
"sign": 1, | |
"debit": false, | |
"credit": true, |
A lot has been written about commit messages and what makes a good commit message - and why this is important. But still most developers could practice a bit more. This is a list from a quick search about commit messages with articles every developer should read.
- https://wiki.openstack.org/wiki/GitCommitMessages
- http://ablogaboutcode.com/2011/03/23/proper-git-commit-messages-and-an-elegant-git-history/
- http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
- http://who-t.blogspot.de/2009/12/on-commit-messages.html
- https://github.com/erlang/otp/wiki/writing-good-commit-messages
This file contains 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
# Description: | |
# hubot suggests a place to go for food | |
# | |
# Dependencies: | |
# node-foursquare-venues | |
# | |
# Configuration: | |
# configure your foursquare client id and secret and your location | |
# | |
# Commands: |
This file contains 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
javascript:(function(){$.each($('#files .js-details-container'), function(i, element) {var path = $(element).children('.meta').data('path'); if(!path.match(/_spec\.*$/)) { var extension_match = path.match(/\..*$/); if(extension_match) { var extension = extension_match[0]; var filename_match = path.match(/.*(\/.*)\..*$/); if(filename_match) { var filename = path.match(/.*(\/.*)\..*$/)[1]; var spec_path = filename + '_spec' + extension; var spec_dom = $('.meta[data-path$="' + spec_path + '"]').parent(); if(spec_dom.length > 0) { spec_dom.detach(); spec_dom.insertAfter(element); } } } }});})(); |
This file contains 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
cctrlapp coworkingde/default run "rails c production" | |
Connecting... | |
Loading production environment (Rails 4.0.0) | |
irb(main):001:0> Space | |
Mysql2::Error: User 'xxxxxx' has exceeded the 'max_user_connections' resource (current value: 2) | |
from /srv/www/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect' | |
from /srv/www/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize' |
This file contains 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 yaml number | |
print "language " | |
print "markup " | |
print "aint " | |
sleep 0.5 | |
number = number - 1 | |
unless number <= 0 | |
print yaml(number) | |
end |