This file contains hidden or 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
class Inner | |
{ | |
float a; | |
float b; | |
}; | |
class Outer | |
{ | |
Inner myInner; | |
public: |
This file contains hidden or 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
class Inner | |
{ | |
int x; | |
public: | |
Inner(int x); | |
}; | |
class Outer | |
{ | |
Inner inner; |
This file contains hidden or 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
Vec3f pos = Vec3f(100, 0, 100); | |
Vec3f pos2 = Vec3f(100, 0, 150); | |
Agent agent(pos); | |
Agent agent2(pos2); | |
SteerInfo steer; | |
steer.acceleration = 1; | |
steer.rotation = 0; | |
agent.setSteering(steer); | |
steer.acceleration = -1; |
This file contains hidden or 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
[7008]% github | |
/usr/lib/ruby/gems/1.9.1/gems/github-0.4.1/lib/github/extensions.rb:11: warning: undefining `object_id' may cause serious problem | |
/usr/lib/ruby/gems/1.9.1/gems/github-0.4.1/lib/github.rb:151:in `module_eval': /usr/lib/ruby/gems/1.9.1/gems/github-0.4.1/lib/commands/helpers.rb:5: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) | |
when %r|^git://github\.com/([^/]+/[^/]+)$|: $1.split('/') | |
^ | |
/usr/lib/ruby/gems/1.9.1/gems/github-0.4.1/lib/commands/helpers.rb:6: syntax error, unexpected keyword_when, expecting keyword_end | |
when %r|^(?:ssh://)?(?:git@)?gith... | |
^ | |
/usr/lib/ruby/gems/1.9.1/gems/github-0.4.1/lib/commands/helpers.rb:6: syntax error, unexpected ':', expecting keyword_end | |
...@)?github\.com:([^/]+/[^/]+)$|: $1.split('/') |
This file contains hidden or 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
#include <deque> | |
using namespace std; | |
int main(int argc, char **argv) | |
{ | |
deque<int> dq; | |
dq = deque<int>(); |
This file contains hidden or 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
==25587== Memcheck, a memory error detector | |
==25587== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. | |
==25587== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info | |
==25587== Command: ./build/racer --track=tests/tracks/oval.trk --sounds=tests/sounds/ | |
==25587== | |
--25587-- Valgrind options: | |
--25587-- --track-origins=yes | |
--25587-- -v | |
--25587-- --leak-check=full | |
--25587-- Contents of /proc/version: |
This file contains hidden or 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
#!/bin/bash | |
read a | |
i=-1 | |
while ((++i<${#a})) | |
do | |
c=${a:$i:1} | |
figlet -f banner $c | sed "s/[^ ]/$c/g" | |
done |
This file contains hidden or 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
$a=<>; | |
print "$a\n\n"; | |
@a=split(//,$a); | |
$s=`figlet -f 3x5 $a`; | |
for(split/\n/,$s){s/(((?{$z=int($-[0]\/4);})|z)|\S)/$a[$z]/g;print "$_\n";} |
This file contains hidden or 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
- (void) drawRect:(NSRect)dirtyRect | |
{ | |
/* This is a bit of a hack. We're violating Cocoa's | |
drawing convention by not calling [view needsDisplay] instead of | |
[view drawRect] directly). | |
Without this line (and you can try it, just comment it out), what happens | |
is that the NSSplitView's transparent divider rectangles become polluted | |
with old colors, because for whatever reason Cocoa refuses to tell LogView | |
to redraw itself in the coordinates given by the dividing rectangles when |
This file contains hidden or 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
init.cpp: In function ‘bool AppInit2(int, char**)’: | |
init.cpp:456: error: expected `}' before ‘else’ | |
init.cpp: At global scope: | |
init.cpp:462: error: expected unqualified-id before ‘if’ | |
init.cpp:464: error: expected unqualified-id before ‘else’ | |
init.cpp:471: error: expected unqualified-id before ‘if’ | |
init.cpp:479: error: expected constructor, destructor, or type conversion before ‘(’ token | |
init.cpp:482: error: expected constructor, destructor, or type conversion before ‘(’ token | |
init.cpp:483: error: expected constructor, destructor, or type conversion before ‘(’ token | |
init.cpp:484: error: expected constructor, destructor, or type conversion before ‘(’ token |
OlderNewer