Skip to content

Instantly share code, notes, and snippets.

Fabrizio Ferrai f-f

Block or report user

Report or block f-f

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View naturalEven.clj
{:c
({:c ({:c (" "), :t :whitespace-chunk}), :t :whsp}
{:c
({:c
({:c
({:c
({:c
({:c
({:c
({:c
@f-f
f-f / ragu.md
Created Apr 8, 2019
Fabrizio's mom bolognese
View ragu.md

Ingredients:

  • 600g minced meat, mix beef and pork
  • 5l canned tomatoes
  • 1-2 white onion
  • 2 cloves garlic
  • 2 chopped carrots
  • olive oil
  • salt
  • 6-7 dry laurel leaves
  • 10-15 basil leaves
View additional-parse.clj
{:c ({:c (), :t :whitespace}
{:c ({:c ({:c ("l" "e" "t"), :t :let-raw}
{:c ({:c (" "), :t :whitespace-chunk}), :t :nonempty-whitespace}),
:t :let}
{:c ({:c ({:c ("x"), :t :ALPHA}), :t :simple-label}
{:c ({:c (" "), :t :whitespace-chunk}), :t :whitespace}),
:t :label}
{:c ("=" {:c ({:c (" "), :t :whitespace-chunk}), :t :whitespace}), :t :equal}
{:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ("1"),
:t :DIGIT}),
View correct-parse.clj
{:c ({:c (), :t :whitespace}
{:c ({:c ({:c ("l" "e" "t"), :t :let-raw}
{:c ({:c (" "), :t :whitespace-chunk}), :t :nonempty-whitespace}),
:t :let}
{:c ({:c ({:c ("x"), :t :ALPHA}), :t :simple-label}
{:c ({:c (" "), :t :whitespace-chunk}), :t :whitespace}),
:t :label}
{:c ("=" {:c ({:c (" "), :t :whitespace-chunk}), :t :whitespace}), :t :equal}
{:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ({:c ("1"),
:t :DIGIT}),
View Persona.php
<?php
class PersonaUser {
private function isEntitled($uuid = null, $token = null) {
$allowed_products = array("LS DIGI");
$entitled = false;
$personaUrl = "https://persona.api.ksfmedia.fi/v1"
$personaConfig = new \OpenAPI\Client\Configuration();
$personaConfig->setHost($personaUrl);
View clojure-meetup-01-2019-dhall-demo.clj
(ns clojure-meetup.demo)
;; This is the main API of the package
;; - `input-ast` compiles the Dhall source, returns AST
;; - `input` also runs `eval` on the AST, so we get Clojure
(require '[dhall-clj.core :refer [input input-ast]])
@f-f
f-f / spacemacs-cheshe.md
Last active Dec 14, 2017 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet
View spacemacs-cheshe.md

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
View keybase.md

Keybase proof

I hereby claim:

  • I am f-f on github.
  • I am ff (https://keybase.io/ff) on keybase.
  • I have a public key whose fingerprint is 782F 31DD F11F 9DBB 8C17 8468 660B AD4A 3494 9D71

To claim this, I am signing this object:

@f-f
f-f / rec_alph.py
Created Dec 24, 2014
Recursive alphabetical combinations
View rec_alph.py
import string
import itertools as it
chars=list(string.ascii_lowercase)
def gen_expansion(inp, length=1):
if not length:
return inp
if isinstance(inp, str):
accodati = [inp+c for c in chars]
You can’t perform that action at this time.