#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. | |
*----------------------------------------------------------- |
eval$x=%q(eval(%w(s="]k<<k7@k9 | |
9k@,7&]-7k.@61y?c<c@9k.?isu:,e | |
y<?2k_i]61 o@3i>k@_]9_g36o1@ | |
i4k?w/r?1o ?i=i?yoy65kok95 | |
qw6?ci_:<ye g'=ok?;g'n/g?o | |
i2?.(]{8{)- u8c@4>]u8c-u@ | |
gq7?@4]0;g? ;|g|;]*qkbk0e | |
g,_@eqqeqqg @>'] a<<0e4e5 | |
oi{25>|>?@ c8 &7*3986 | |
@a;;0+>*@2 _i m{@{+_( |
macro for(expr) | |
{{raise "invalid syntax. use for e in c." unless expr.args.first.name.stringify == "in"}} | |
{{expr.args.first.args.first}}.each do |{{expr.name.id}}| | |
{{expr.args.first.block.body}} | |
end | |
end | |
for e in 1..5 do | |
puts e | |
end |
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 |
#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
import binascii | |
import struct | |
class Punk(object): | |
_END_CHUNK_TYPE = 'IEND' | |
_PUNK_CHUNK_TYPE = 'puNk' | |
_MAX_BYTES = 2147483647 | |
_chunks = dict() |
#!/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 |
mkdir isobuild && cd isobuild
sudo dnf install rpm-ostree lorax -y
git clone -b f33 https://pagure.io/workstation-ostree-config
git clone -b f33 https://pagure.io/fedora-lorax-templates.git
mkdir repo
ostree init --repo=repo
rpm-ostree compose tree --repo=$(pwd)/repo \
$(pwd)/workstation-ostree-config/fedora-silverblue.yaml
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
#!/usr/bin/env bash | |
# This is a script to download patch/fix the setup and config so you can use | |
# chrome-remote-desktop via https://remotedesktop.google.com/headless | |
# | |
# crd = chrome-remote-desktop where convenient (like binary names) | |
# | |
# There are a few issues that need fixing: | |
# 1. the oauth onboard via the above link requires Google's binaries (i.e. the ones in the .deb) | |
# 2. paths don't match - fedora installs in /usr/lib64/chrome-remote-desktop instead of /opt/google/chrome-remote-desktop |