Skip to content

Instantly share code, notes, and snippets.

Alessandro Balzano alfateam123

Block or report user

Report or block alfateam123

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
@alfateam123
alfateam123 / censimento_github_organization.py
Last active Aug 25, 2016
Script to retrieve name and URL of every repository in a given github organization.
View censimento_github_organization.py
import requests
import argparse
import json
import time
def retrieve_org_repos(json_doc):
for repo_doc in json_doc:
yield { "full_name": repo_doc["full_name"],
"url": repo_doc["html_url"] }
@alfateam123
alfateam123 / keybase.md
Created Feb 3, 2016
alfateam123 @ keybase.io proof
View keybase.md

Keybase proof

I hereby claim:

  • I am alfateam123 on github.
  • I am alfateam123 (https://keybase.io/alfateam123) on keybase.
  • I have a public key ASBpKYBlgPpHoeITXc4J4kue2Wx7SyGLhNn8N23T9xiuIQo

To claim this, I am signing this object:

@alfateam123
alfateam123 / README.md
Created Dec 27, 2015
volafile dump script
View README.md

Volafile dump script

This script connects to volafile.io, enters a given room and saves the list of available files into a new file.

How to use this script

An example follows:

View test
┌[winter@nest] [/dev/pts/0]
└[~/projects/tests]> cat struct_wtf.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
struct wat {
uint8_t a_field;
static const uint8_t b_field = 0;
uint8_t c_field;
@alfateam123
alfateam123 / onlysomefields.py
Created Mar 18, 2015
a little scripts for extracting only some fields from a csv.
View onlysomefields.py
import csv
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("fname")
LIST_OF_FIELDS = [
"pippo",
"pluto",
View test_grammatica_strana.py
from __future__ import print_function
import re
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("n")
def generate_grammar(n):
dat_grammar = "(ab)?"
for i in range(1, n):
@alfateam123
alfateam123 / r9k2irc.py
Created Dec 9, 2014
/r9k/ to irc. markov bots, maybe? Use a very large n.
View r9k2irc.py
#!/usr/bin/env python
import moesearch as foolz
import argparse
parser = argparse.ArgumentParser("r9k to irc!")
parser.add_argument("pages", type=int, help="how many pages you want to download")
def retrieve_pages(pages=1):
for page in range(pages):
View gist:caf649f537042ea5a33c
/*
SEE => [SEE, ESE, EES]
http://i.imgur.com/YQYwjFD.jpg
*/
def add_letters(*combo_tree tree IN, letter_counter dict IN)
for letter in letter_counter.keys() do
if letter_counter[letter] > 0 then
combo_tree.add_child(letter)
letter_counter[letter] -= 1 //so che, nella ricorsione, ho una istanza in meno della stessa lettera a disposizione
@alfateam123
alfateam123 / gist:f4cc5454896f91aa5c53
Last active Aug 29, 2015
waifu material for md2bbc
View gist:f4cc5454896f91aa5c53
Asagi - Anshinin (Medaka Box) - Akane Tsunemori
Banba, Mahiru - Barkhorn, Gerthrud
Charlotte - Chitoge - Chino - Chihiro (kaminomi)
Dora, Stephanie
Eru, Chitanda - Eli Ayase - Erio Touwa
f
g
h
i
j
You can’t perform that action at this time.