#Compilng You need g++ 4.9 to compile this code. Follow these steps to install g++-4.9
After installing run the following command to compile
/usr/bin/g++-4.9 -std=c++11 lambda.cpp
#Running
./a.out
| *----------------------------------------------------------- | |
| * Title : Brainfuck Assembler | |
| * Written by : Stuart Haidon | |
| * Date : 2015-06-16 | |
| * Versions: | |
| * 1.0: Release | |
| * 1.1: Changed JMP instruction in assembled program to RTS. | |
| * 1.2: Now handles mis-matched brackets. | |
| *----------------------------------------------------------- |
#Compilng You need g++ 4.9 to compile this code. Follow these steps to install g++-4.9
After installing run the following command to compile
/usr/bin/g++-4.9 -std=c++11 lambda.cpp
#Running
./a.out
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| package sample.hello | |
| import akka.actor.ActorSystem | |
| import akka.actor.Props | |
| import akka.actor.UntypedActor | |
| import akka.actor.UntypedActorContext | |
| import akka.actor.ActorPath | |
| import scala.concurrent.duration.Duration | |
| import java.util.HashMap | |
| import akka.actor.ActorSystem |
| eXtreme Go Horse (XGH) Process | |
| Quelle: http://gohorseprocess.wordpress.com | |
| Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
| 1. Ich denke, also ist es nicht XGH. | |
| In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
| 2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
| #!/usr/bin/env python3 | |
| from gi.repository import Gtk | |
| from gi.repository import Pango | |
| def on_text_view_draw(text_view, cairoc): | |
| print("Drawing...") | |
| # XXX: Rest of function not yet ported. | |
| text_buffer = text_view.get_buffer() | |
| bounds = text_buffer.get_bounds() | |
| text = text_buffer.get_text(*bounds) | |
| nlines = text.count("\n") + 1 |
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |