Skip to content

Instantly share code, notes, and snippets.

View arnau's full-sized avatar
💬
searching…

Arnau Siches arnau

💬
searching…
View GitHub Profile
@choan
choan / toc.html.erb
Created January 22, 2011 01:31
Recursive layout for generating nanoc menus
<% raise ArgumentError, "The @collection has no items to build the ToC." if @collection.empty? %>
<% @depth ||= -1 %>
<% @depth -= 1 if @depth > 0 %>
<% @reject ||= lambda { |x| false } %>
<% @sort_by ||= lambda { |x| x[:weight] || 0 } %>
<% @label ||= lambda { |x| x[:title] } %>
<% collection = @collection.reject(&@reject) %>
<% unless collection.empty? %>
<ul>
<% collection.sort_by(&@sort_by).each do |child| %>
@jcroft
jcroft / layout.sass
Created March 1, 2012 04:51
How easy responsive design can be with Sass
#content-wrapper
+container
#about
// Default (smallest screens)
+column(100%)
background-color: #ccc
// Respond to other screen widths
@alexellis
alexellis / pwd-faas.md
Last active January 19, 2017 15:49
pwd-faas-quickstart.md

FaaS - functions as a Service Quick Start / Test Drive

This page has moved into the repository!

Head over the to Github repository for the TestDrive document

@nacnudus
nacnudus / register-to-database.R
Last active June 26, 2018 09:56
Various ways to download a GOV.UK register and load it into a database
# Load all registers into various databases
library(tidyverse)
library(DBI)
library(registr) # https://github.com/nacnudus/registr
library(stringr)
library(getPass)
library(here)
beta <- rr_registers()
@CMCDragonkai
CMCDragonkai / elixir_and_haskell_unicode.md
Last active August 10, 2021 18:24
Elixir & Haskell: Unicode (UTF8) Support #unicode #elixir #haskell

Elixir & Haskell: Unicode

Most text nowadays is encoded as unicode, and yet some programming languages either don't natively support it, or require you to jump through some hoops to support it. Elixir and Haskell have good support for Unicode, however there are some issues we have to understand, in order to manipulate text well.

Introduction to Text Encodings and Numeral System Bases

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

I highly suspect that the RSpec core team all use black backgrounds in their terminals because sometimes the colors aren’t so nice on my white terminal

I certainly use a black background. I'm not sure about the other RSpec core folks. Regardless, if there are some color changes we can make that would make output look good on a larger variety of backgrounds, we'll certainly consider that (do you have some suggested changes?). In the meantime, the colors are configurable, so you can change the colors to fit your preferences on your machine. First, create a file at

@ClintLiddick
ClintLiddick / rust-robotics-libraries.md
Last active April 3, 2023 02:38
Rust Libraries for Robotics

Motivation

tl;dr I want to use Rust to program robots. Help me find the best core libraries to build on.

Robotic systems require high performance and reliability, but also have enormous complexity in terms of algorithms employed, number of subsystems, embedded hardware control, and other metrics. Development is mostly split between C++ for performance and safety critical components, and MatLab or Python for quick research or task iteration.

@paf31
paf31 / 24days.md
Last active August 8, 2023 05:53
24 Days of PureScript

This blog post series has moved here.

You might also be interested in the 2016 version.