Skip to content

Instantly share code, notes, and snippets.

View skalee's full-sized avatar

Sebastian Skałacki skalee

View GitHub Profile
OUTPUT
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/kde-phonon/4.4.4' -DCMAKE_BUILD_TYPE=None -Wno-dev
cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/kde-phonon/4.4.4' -DCMAKE_BUILD_TYPE=None -Wno-dev
-- 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
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
@skalee
skalee / nodejs problem
Created January 30, 2012 09:44
Formulae output
==> ./configure --prefix=/usr/local/Cellar/node/0.6.9 --without-npm
./configure --prefix=/usr/local/Cellar/node/0.6.9 --without-npm
Checking for program g++ or c++ : /usr/bin/llvm-g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/llvm-gcc
Checking for gcc : ok
Checking for library dl : yes
==> scons -j 4 arch=x64 mode=release snapshot=on library=shared visibility=default console=readline sample=shell
scons -j 4 arch=x64 mode=release snapshot=on library=shared visibility=default console=readline sample=shell
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/usr/bin/llvm-g++ -o obj/sample/shell/release/shell.o -c -O3 -w -pipe -march=core2 -msse4 -fno-rtti -fno-exceptions -m64 -O2 -DUSING_V8_SHARED -Iinclude samples/shell.cc
i686-apple-darwin10-llvm-g++-4.2: samples/shell.cc: No such file or directory
i686-apple-darwin10-llvm-g++-4.2: no input files
/usr/bin/llvm-g++ -o obj/release/accessors.os -c -O3 -w -pipe -march=core2 -msse4 -fno-rtti -fno-exceptions -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -mmacosx-version-min=10.4 -fPIC -DV8_TARGET_ARCH_X64 -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT -Isrc src/accessors.cc
/usr/bin/llvm-g++ -o obj/release/allocati
data_bytes = [129, 144, 57, 115, 187, 225, 66, 81, 195, 195, 3, 71, 139, 205, 27, 10, 153, 219, 8, 65, 139, 156, 129, 144, 181, 171, 77, 130, 206, 137, 53, 160, 143, 159, 125, 174, 151, 210, 111, 184, 132, 153, 125, 255, 129, 144, 251, 162, 85, 228, 128, 128, 45, 198, 193, 150, 101, 200, 217, 219, 119, 222, 202, 144, 101, 153, 129, 144, 38, 21, 141, 154, 93, 55, 245, 184, 28, 33, 189, 182, 4, 108, 175, 160, 23, 39, 189, 231, 129, 144, 232, 174, 74, 255, 147, 140, 50, 221, 210, 154, 122, 211, 202, 215, 104, 197, 217, 156, 122, 130, 129, 144, 163, 32, 129, 72, 216, 2, 249, 106, 153, 20, 177, 100, 129, 89, 163, 114, 146, 18, 177, 53, 129, 144, 73, 84, 32, 76, 50, 118, 88, 110, 115, 96, 16, 96, 107, 45, 2, 118, 120, 102, 16, 49, 129, 144, 138, 139, 154, 179, 241, 169, 226, 145, 176, 191, 170, 159, 168, 242, 184, 137, 187, 185, 170, 206, 129, 144, 230, 93, 0, 86, 157, 127, 120, 116, 220, 105, 48, 122, 196, 36, 34, 108, 215, 111, 48, 43, 129, 144, 81, 187, 189, 113, 42, 153, 197, 83, 107, 143, 141, 93, 115, 194, 15
@skalee
skalee / Makefile
Last active August 29, 2015 14:00
In Emscripten, writing to `std::cout` in some cases fails with "TypeError: Cannot read property 'fd' of null".
TARGET = why-not-works.js
OBJS = src.bc
HLPS = helper.js
CXX = emcc
LDFLAGS = \
-s EXPORTED_FUNCTIONS="['_print_it', '_main']" \
--js-library helper.js
@skalee
skalee / ERRORS
Created April 26, 2014 12:30
Another Emscripten failure with custom output stream
$ make clean run > RESULT ^ ERRORS
$ head -50 ERRORS
/Users/skale/Projekty/cannot-read-fd/why-not-works.js:8182
$67,$90,$93,$102,$147) } catch(e) { if (typeof e != "number") throw e; if (ABO
^
TypeError: Property '10696' of object 0,0,function __ZNSt3__18messagesIwED0Ev($this){
var label=0;
@skalee
skalee / gist:ea5917b29a664dd9448e
Created May 14, 2014 20:21
weird behavior of Pointer_stringify
info depth 1 seldepth 1 score cp 74 nodes 27 nps 24 time 1105 multipv 1 pv e2e4
info depth 2 seldepth 2 score cp 12 nodes 145 nps 65 time 2215 multipv 1 pv e2e4 e7e5
info depth 3 currmove d2d3 currmovenumber 2
info depth 3 currmove d2d4 currmovenumber 3
info depth 3 currmove e2e3 currmovenumber 4
info depth 3 currmove f2f4 currmovenumber 5
info depth 3 currmove g2g4 currmovenumber 6
info depth 3 currmove h2h4 currmovenumber 7
info depth 3 currmove b1a3 currmovenumber 8
info depth 3 currmove b1c3 currmovenumber 9
Searching 9 files for "database_table" in /src/db_adapters
/Users/skale/Projekty/Chicago/boss_db/src/db_adapters/boss_db_adapter_mysql.erl:
92 count(Pid, Type, Conditions) ->
93 ConditionClause = build_conditions(Type, Conditions),
94: TableName = boss_record_lib:database_table(Type),
95 Res = fetch(Pid, ["SELECT COUNT(*) AS count FROM ", TableName, " WHERE ", ConditionClause]),
96 case Res of
..
103
@skalee
skalee / Gemfile
Created April 29, 2015 14:51
Possible AMS 0.10 bug
source "https://rubygems.org"
gem "active_model_serializers", github: "rails-api/active_model_serializers"
URI stdlib Addressable

''

"#<URI::Generic >"

"#<Addressable::URI:0x3fee8408a4f0 URI:>"