Skip to content

Instantly share code, notes, and snippets.

Alberto Zaccagni lazywithclass

Block or report user

Report or block lazywithclass

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
@lazywithclass
lazywithclass / trono.md
Last active May 7, 2019
Azioni e piani del Trono di Ferro
View trono.md

Trono di Ferro

Cose da fare per Darkhold

Scoprire:

  • Agenti, nomi e cognomi.
  • Rapporti con i Maghi Rossi.
  • chi ha detto ad Edward che Dalton e' uno Zentharim?
@lazywithclass
lazywithclass / giocata-soubar.md
Last active Mar 7, 2019
Leucosya prova a diventare borgomastro a Soubar
View giocata-soubar.md

Giocate per candidatura di Leucosya a Soubar

Potete usare questo file come riferimento alla giocata che stiamo preparando.

Giocate post cambio identita'

Qui raccolgo le giocate cosi vi fare un'idea ancora migliore di cio' che e' successo. Come potete immaginare ci sono cose minori che limo in game, capendo esattamente la situazione in cui sono, purtroppo non ho il tempo, e le facolta' mentali (:D), per comprendere tutte le possibili sfumature. Spero che questa iniziativa di raccogliere tutte le giocate possa essere utile a tutti :D

@lazywithclass
lazywithclass / winston-cloudwatch-type-definition.d.ts
Last active Dec 4, 2018
winston-cloudwatch-type-definition
View winston-cloudwatch-type-definition.d.ts
import * as winston from 'winston';
import * as Transport from 'winston-transport';
import { CloudWatch, CloudWatchLogs } from 'aws-sdk';
export namespace WinstonCloudWatch {
export type LogObject = {level: string, msg: string, meta?: any};
export interface CloudWatchIntegration {
@lazywithclass
lazywithclass / blog.md
Last active Mar 21, 2018
Bandwidth throttling on FreeBSD
View blog.md

Bandwidth throttling on FreeBSD

Installing FreeBSD in VirtualBox will help a lot, I've also set

  • PasswordAuthentication yes
  • PermitRootLogin yes

followed by a /etc/rc.d/sshd restart to allow root to login from my tmux environment on the host box. Make sure you have sshd installed and running on the virtual image. This way I could have multiple tmux panes and copy / paste working (which wasn't in my case).

@lazywithclass
lazywithclass / blog-post.md
Created Feb 9, 2018
One year after RC and plans
View blog-post.md
@lazywithclass
lazywithclass / blog-post.md
Last active Jan 9, 2018
[Teaching programming] Lesson six
View blog-post.md

[Teaching programming] Lesson six

(define insert-middle
  (lambda (new lat)
    (cons (car lat) (cons new (cdr lat)))))

We've been experimenting with functions, so we're starting to move away from the list manipulation tasks for their own sake.

@lazywithclass
lazywithclass / blog-post.md
Last active Nov 30, 2017
[Teaching programming] Lesson five
View blog-post.md

[Teaching programming] Lesson five - lazyblog

Joy

When everything works and good definitions and examples just flow naturally and the other person seems to be learning everything you're saying.

I don't have anything particular to say, except the fact that the work from the previous weeks seems to be paying off, over all giving her a method improved dramatically the way she deals with implementing functions from scratch. Also, doing exercises as we go in the book it's way more effective than having her solve them on her own.

@lazywithclass
lazywithclass / blog-post.md
Last active Nov 20, 2017
[Teaching programming] Lesson four
View blog-post.md

[Teaching programming] Lesson four - lazyblog

On exercises

They are way too difficult. I've slowed the pace considerably due to a misjudgement of exercises difficulty.

On giving a method

It was her who raised this point and it actually makes a lot of sense, it's a shame I didn't think about this earlier on.

@lazywithclass
lazywithclass / simulate-work.sh
Created Nov 6, 2017
Simulate work in a directory adding and updating files
View simulate-work.sh
#!/bin/bash
while true; do
filename=$(((RANDOM %10) + 1))
if [ -f $filename ]; then
mkfile 30m data/$filename
else
randomstring=$(LC_CTYPE=C tr -dc A-Za-z0-9 < /dev/urandom | fold -w ${1:-$(((RANDOM %1000000) +1))} | head -n 1)
echo $randomstring >>data/$filename
fi
@lazywithclass
lazywithclass / blog-post.md
Created Nov 6, 2017
[Teaching programming] Lesson three
View blog-post.md

[Teaching programming] Lesson three - lazyblog

Thoughts

There was some confusion on how to use functions and recursion in the end. I didn't spot that previously. I am starting to think that a lot of what "being a teacher" means is to understand when your audience got the idea you're trying to pass on.

So what didn't I understand? For sure the fact that going from

You can’t perform that action at this time.