Skip to content

Instantly share code, notes, and snippets.

View madebyjeffrey's full-sized avatar

Jeffrey Drake madebyjeffrey

View GitHub Profile
/Users/drakej/Projects/GrapheinPure/GrapheinPure/main.cpp:60:39:{60:5-60:38}{60:42-60:43}: error: invalid operands to binary expression ('std::__1::basic_ostream<char>' and 'iso::mat4' (aka 'array<vec4, 4>')) [3]
std::cout << "ortho" << std::endl << m << std::endl;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
/Developer/usr/bin/../lib/c++/v1/ostream:172:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'std::__1::basic_ostream<char> &(*)(std::__1::basic_ostream<char> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&));
^
/Developer/usr/bin/../lib/c++/v1/ostream:173:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'basic_ios<char_type, traits_type> &(*)(basic_ios<char_type, traits_type> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ios<char_type, traits_type>&
^
/Developer/usr/bin/../lib/c++/v1/ostrea
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(360): error C2059: syntax error : 'constant'
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(363): error C2143: syntax error : missing ';' before '}'
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(363): error C2238: unexpected token(s) preceding ';'
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(373): error C2065: 'int8' : undeclared identifier
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(376): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization of a class template
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(382): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization of a class template
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(388): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization of a class template
1>c:\libraries\glm-0.9.3.b\glm\core\_detail.hpp(394): error C2913: explicit specialization; 'glm::float_or_int_trait' is not a specialization
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/type_traits/has_bit_and.hpp:43:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/type_traits/has_operator.hpp:12:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/type_traits.hpp:35:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/trackable.hpp:13:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/slot.hpp:15:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/signal_template.hpp:21:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signals/signal0.hpp:24:
In file included from /Developer/SDKs/MacOSX10.7.sdk/usr/local/include/boost/signal.hpp:19:
In file included from /Users/drakej/Projects/Myron/Myron/Myron.h:14:
In file included from /Users/drakej/Projects/Myron/Myron/Myron-Mac.mm:17:
/Users/drakej/Projects/Myron/Myron/main.cpp:36:24:{36:24-36:33}: error: no matching function for call to 'bind' [3]
main.close.connect(std::bind(close, std::ref(main)));
^~~~~~~~~
/Developer/usr/bin/../lib/c++/v1/functional:1789:1: note: candidate template ignored: couldn't infer template argument '_F' [3]
bind(_F&& __f, _BoundArgs&&... __bound_args)
^
/Developer/usr/bin/../lib/c++/v1/functional:1798:1: note: candidate template ignored: couldn't infer template argument '_R' [3]
bind(_F&& __f, _BoundArgs&&... __bound_args)
@madebyjeffrey
madebyjeffrey / gist:1574037
Created January 7, 2012 06:56
ZZing's phonemes
Vowels:
Letter, IPA, English example
A ɑ f/a/ther
æ e c/a/t
E ɛ p/e/t
I i sh/ee/t
O oʊ c/oa/t
U u sh/oo/t
OBJC ui/cocoa.o
cc1obj: warning: command line option ‘-Wignored-qualifiers’ is valid for C/C++ but not for ObjC [enabled by default]
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:120:0,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from ui/cocoa.m:25:
/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:75:24: error: expected identifier or ‘(’ before ‘^’ token
/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:78:1: error: expected identifier before ‘end’
In file included from /System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:9:0,
from /System/Library/Frameworks/AppKit.framework/Headers/NSView.h:8,
from /System/Library/Frameworks/AppKit.framework/Headers/NSText.h:8,
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/opt/arm" "infodir=/opt/arm/share/info" "libdir=/opt/arm/lib" "prefix=/opt/arm" "includedir=/opt/arm/include" "AR=/opt/arm/arm-none-eabi/bin/ar" "AS=/Users/drakej/.work/bone/gcc-4.7-20120114/build/./gcc/as" "CC=/Users/drakej/.work/bone/gcc-4.7-20120114/build/./gcc/xgcc -B/Users/drakej/.work/bone/gcc-4.7-20120114/build/./gcc/ -B/opt/arm/arm-none-eabi/bin/ -B/opt/arm/arm-none-eabi/lib/ -isystem /opt/arm/arm-none-eabi/include -isystem /opt/arm/arm-none-eabi/sys-include " "CXX=arm-none-eabi-c++ -B/opt/arm/arm-none-eabi/bin/
/* example question implementation in spirit:
7. Construct an attribute grammar for the language L so that:
@ has value 2
*@* has value 4 - surrounding an expression with two stars squares its value
(@) has value 3 - putting brackets around an expressions adds 1 to the value
((@)) has value 4
(*(@)*) has value 10
((*((@))*)) has value 18
(((*(*(@)*)*))) has value 103
$ cabal install happstack-heist
Resolving dependencies...
cabal: cannot configure happstack-server-7.0.2. It requires blaze-html ==0.5.*
For the dependency on blaze-html ==0.5.* there are these packages:
blaze-html-0.5.0.0. However none of them are available.
blaze-html-0.5.0.0 was excluded because xmlhtml-0.1.7 requires blaze-html
>=0.3.2 && <0.5
blaze-html-0.5.0.0 was excluded because heist-0.8.0 requires blaze-html
==0.4.*
@madebyjeffrey
madebyjeffrey / fib.cpp
Created October 9, 2012 20:46
Fibonacci implementations
// C++ 11
#include <iostream>
#include <utility>
#include <string>
long long BinaryFib(long k)
{