Your code can be perfect
%% As developers we build critical infrastructure, it's time to build it in a language designed to build critical infrastructure. %%
app: | |
nim c app.nim | |
clean: | |
rm app | |
run: | |
./app |
use rand_derive2::RandGen; | |
use rand::random; | |
fn main() { | |
println!("Hey, world! 👻 3spoopy5me"); | |
let some_rooms: Vec<Room> = (1..=5) | |
.map(|n| Room {name: "empty room".into(), next_room: vec![], item: random()}) | |
.collect(); | |
let room = Room { |
default: lints run | |
run: | |
@poetry run python app.py | |
watch: | |
@poetry run watchmedo auto-restart --ignore-directories --patterns="*.py" --ignore-patterns="*#*" --recursive make | |
lints: | |
clear |
#!/usr/bin/env bash | |
echo "Sonic-pi will be installed into ./sonic-pi. Press enter to continue, ctrl-c to abort." | |
read input | |
sudo apt-get install ruby erlang-base libscsynth1 sc3-plugins libjack-jackd2-0 qt5-default libffi7 git cmake build-essential ruby-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools qtdeclarative5-dev libqt5webkit5-dev qtpositioning5-dev libqt5sensors5-dev libqt5opengl5-dev qtmultimedia5-dev libffi-dev libjack-jackd2-dev libxt-dev libudev-dev libboost-dev libasound2-dev libavahi-client-dev libicu-dev libreadline6-dev libfftw3-dev libaubio5 | |
git clone https://github.com/samaaron/sonic-pi.git | |
cd sonic-pi/app/gui/qt | |
./unix-prebuild.sh --build-aubio | |
./unix-config.sh |
html { | |
head { | |
title { "example.com" } | |
style { | |
"body { background: #fafbfc; }" | |
"#main { padding: 2rem; }" | |
} | |
} | |
body { | |
@Header { "example.com" } |
/******************************************************************* | |
A telegram bot for your Adafruit Feather M0 with KeyboardFeatherWing | |
Adapted from telegram code written by Brian Lough | |
*******************************************************************/ | |
#include <Adafruit_GFX.h> | |
#include <SPI.h> | |
#include <WiFi101.h> | |
#include <Wire.h> | |
#include <Adafruit_ILI9341.h> |
from flask import Flask | |
from flask.ext.restful import Resource, Api | |
app = Flask(__name__) | |
api = Api(app) | |
class SimpleRest(Resource): | |
def get(self): | |
return { |
#![feature(start, libc, lang_items)] | |
#![no_std] | |
#![no_main] | |
#![feature(rustc_private)] | |
extern crate libc; | |
extern { // A list of imported C functions | |
pub fn printf(format: *const u8, ...) -> i32; | |
} |