Skip to content

Instantly share code, notes, and snippets.

@rdesfo
rdesfo / project.org
Last active April 2, 2023 20:12
R plot in orgmode

Before executing

Is it possible to anchor the results output under the cpation and name or get orgmode to regenerate the caption with the ouptut? I’ve attempted to adding a :post <another source block name> with a drawer but I couldn’t get it printout in a way that would easily export.

hist(project_df$column, col="red", main="Plot title")
@rdesfo
rdesfo / test.html
Created April 18, 2017 17:02
h-entry test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Desfo.org - Enabling Docker's User Namespaces in Nixos</title>
<link rel="stylesheet" type="text/css" href="../css/default.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
@rdesfo
rdesfo / default.nix
Last active January 19, 2017 23:37
pkgs/tools/backup/deja_dup/default.nix
{ stdenv, fetchurl, cmake, pkgconfig, curl }:
stdenv.mkDerivation rec {
name = "deja_dup";
version = "34.3";
src = fetchurl {
url = "https://launchpad.net/deja-dup/34/${version}/+download/deja-dup-${version}.tar.xz";
sha256 = "1xqcr61hpbahbla7gdjn4ngjfz7w6f57y7f5pkb77yk05f60j2n9";
};
@rdesfo
rdesfo / index.html
Last active July 16, 2016 17:22
quoteChallenge
<div class="container">
<div class="row text-center">
<h2><i class="fa fa-rocket" aria-hidden="true"></i> Futurama Quote Machine</h2>
</div>
<div class="row text-center">
<div class="col-xs-12 well well-lg message">
The message will go here
</div>
</div>
<div class="row text-center">

Tribute Page

This is my tribute page for freecodecamp. It's currently unfinished, but should be down soon. :)

A Pen by Ryan on CodePen.

License.

@rdesfo
rdesfo / bath_tripadvisor.py
Created May 5, 2016 15:03
scrapy bath restaurants
import scrapy
class TripadvisorSpider(scrapy.Spider):
name = 'tripadvisor'
allow_domains = ['tripadvisor.com']
start_urls = [
'http://www.tripadvisor.com/Restaurants-g40505-Bath_Maine.html'
]
custom_settings = {
'FEED_EXPORT_FIELDS': ["name", "rating", "latitude", "longitude", "url"]
@rdesfo
rdesfo / default.nix
Created July 2, 2015 15:26
attempt metasploit default nix
args : with args;
rec {
src = fetchurl {
url = http://downloads.metasploit.com/data/releases/framework-latest.tar.bz2;
sha256 = "1irw71r9rymn826s7rwmk0rmjsk0gdfy75c1wwalln81r25x9n8x";
};
buildInputs = [makeWrapper];
configureFlags = [];
@rdesfo
rdesfo / hasteCompilerShell.nix
Created June 23, 2015 23:41
haste-compiler nix-shell
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc784" }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, array, base, binary, blaze-builder
, bytestring, bzlib, containers, data-binary-ieee754, data-default
, directory, either, fetchgit, filepath, ghc, ghc-paths, ghc-prim
, ghc-simple, HTTP, monads-tf, mtl, network, network-uri, process

Keybase proof

I hereby claim:

  • I am rdesfo on github.
  • I am rdesfo (https://keybase.io/rdesfo) on keybase.
  • I have a public key whose fingerprint is 6F94 915E 20E7 9E5A 4CB7 290C 1B02 D3A2 90D7 E531

To claim this, I am signing this object:

@rdesfo
rdesfo / default.nix
Last active August 29, 2015 14:14
nix install cabal2bix default.nix file
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, alex, binary, dataDefault, derive, filepath, hashable
, hspec, lens, ooPrototypes, pointedlist, QuickCheck, regexBase
, regexTdfa, transformersBase, unorderedContainers
}:
cabal.mkDerivation (self: {
pname = "yi-language";
version = "0.1.1.0";