Skip to content

Instantly share code, notes, and snippets.

View AlekSi's full-sized avatar
🕊️

Alexey Palazhchenko AlekSi

🕊️
View GitHub Profile
@AlekSi
AlekSi / gist:886587
Created March 25, 2011 09:12
rvm 1.5.2 head
+[/Users/aleksi/.rvm/scripts/cli] : 669 : __rvm_parse_args() $ [[ -z '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 670 : __rvm_parse_args() $ export 'PS4=+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'
+[/Users/aleksi/.rvm/scripts/cli] : 670 : __rvm_parse_args() $ PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'
+[/Users/aleksi/.rvm/scripts/cli] : 692 : __rvm_parse_args() $ [[ -z '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 692 : __rvm_parse_args() $ [[ -n '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 694 : __rvm_parse_args() $ [[ 0 -eq 1 ]]
+[/Users/aleksi/.rvm/scripts/cli] : 694 : __rvm_parse_args() $ [[ -n '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 14 : __rvm_parse_args() $ [[ -n install ]]
+[/Users/aleksi/.rvm/scripts/cli] : 16 : __rvm_parse_args() $ rvm_token=install
+[/Users/aleksi/.rvm/scripts/cli] : 18 : __rvm_parse_args() $ [[ 1 -gt 0 ]]
@AlekSi
AlekSi / gist:884677
Created March 24, 2011 06:52
rvm bug with ruby 1.8.6 and rubygems
+[/Users/aleksi/.rvm/scripts/cli] : 669 : __rvm_parse_args() $ [[ -z '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 670 : __rvm_parse_args() $ export 'PS4=+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'
+[/Users/aleksi/.rvm/scripts/cli] : 670 : __rvm_parse_args() $ PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'
+[/Users/aleksi/.rvm/scripts/cli] : 692 : __rvm_parse_args() $ [[ -z '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 692 : __rvm_parse_args() $ [[ -n '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 694 : __rvm_parse_args() $ [[ 0 -eq 1 ]]
+[/Users/aleksi/.rvm/scripts/cli] : 694 : __rvm_parse_args() $ [[ -n '' ]]
+[/Users/aleksi/.rvm/scripts/cli] : 14 : __rvm_parse_args() $ [[ -n install ]]
+[/Users/aleksi/.rvm/scripts/cli] : 16 : __rvm_parse_args() $ rvm_token=install
+[/Users/aleksi/.rvm/scripts/cli] : 18 : __rvm_parse_args() $ [[ 1 -gt 0 ]]
$ cat /Users/aleksi/.rvm/log/ruby-1.8.6-p420/rubygems.install.log
[2011-03-21 18:18:18] GEM_PATH='/Users/aleksi/.rvm/gems/ruby-1.8.6-p420:/Users/aleksi/.rvm/gems/ruby-1.8.6-p420@global:/Users/aleksi/.rvm/gems/ruby-1.8.6-p420@global' GEM_HOME='/Users/aleksi/.rvm/gems/ruby-1.8.6-p420' /Users/aleksi/.rvm/rubies/ruby-1.8.6-p420/bin/ruby /Users/aleksi/.rvm/src/rubygems-1.6.2/setup.rb
./lib/rubygems/custom_require.rb:54: warning: parenthesize argument(s) for future version
./lib/rubygems/custom_require.rb:57:in `require': undefined method `end_with?' for "no such file to load -- Win32API":String (NoMethodError)
from ./lib/rubygems/config_file.rb:55
from ./lib/rubygems/custom_require.rb:36:in `gem_original_require'
from ./lib/rubygems/custom_require.rb:36:in `require'
from ./lib/rubygems/gem_runner.rb:8
from ./lib/rubygems/custom_require.rb:36:in `gem_original_require'
from ./lib/rubygems/custom_require.rb:36:in `require'
#ifndef BASE_H
#define BASE_H
#include "factory.h"
class Base
{
public:
template<class BaseOrDerived>
Base(Factory<BaseOrDerived>* f)
~/Code/QtPersistence/build (master) $ cmake .. -DGTEST_ROOT=/opt/local -DGMOCK_ROOT=/opt/local
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
$ cmake CMakeLists.txt
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
#include <QtCore/QCoreApplication>
#include <QtGui/QDesktopServices>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug("before: %s", qPrintable(QDesktopServices::storageLocation(QDesktopServices::DataLocation)));
a.setApplicationName("AppName");
a.setApplicationVersion("1.0");
SConsole SNAB::snabDebug( SConsole::Debug );
SConsole SNAB::snabWarning( SConsole::Warning );
SConsole SNAB::snabError( SConsole::Error );
SConsole::SConsole(MsgType type) : m_stream(0), m_file(0), m_type(type)
{
static bool release = false;
static bool noDebug = false;
#ifdef RELEASE_SNAB2
func check(err error) {
if err != nil {
panic(err)
}
}
func (h *APIHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
defer func() {
if p := recover(); p != nil {
switch e := p.(type) {
package replace
import (
"fmt"
"strings"
"testing"
)
var keys []string