Skip to content

Instantly share code, notes, and snippets.

View StefanoCecere's full-sized avatar
💭
▶️👍🎲😊

Stefano Cecere StefanoCecere

💭
▶️👍🎲😊
View GitHub Profile
@StefanoCecere
StefanoCecere / convert_FB_JSON.py
Last active October 29, 2023 04:57
a Python script that converts Facebook exported posts (in JSON format) and saves them as multiple markdown files
import json
import html
from datetime import datetime
def save_post(filename, date, text):
print('----- NEW POST')
print(filename)
# print(text)
body = f"""---
title:
@StefanoCecere
StefanoCecere / .block
Created September 11, 2017 16:21 — forked from mbostock/.block
Epicyclic Gearing
license: gpl-3.0
@StefanoCecere
StefanoCecere / .block
Last active September 11, 2017 16:06
.Block text slideshow test
license: gpl-3.0
height: 500
scrolling: no
border: yes
@StefanoCecere
StefanoCecere / changelog.sh
Created March 13, 2017 10:55
Generate simple CHANGELOG with git log
git log --since='last month' --pretty=format:'%ad - %s' --date=short --no-merges --decorate
@StefanoCecere
StefanoCecere / DeviceInfo.cs
Last active May 2, 2021 00:12
Unity: DeviceInfo to collect and JSONize all system and app info
using UnityEngine;
namespace MyApp
{
/// <summary>
/// the DeviceInfo class is used to collect all technical details to be included in any debug report.
/// this class can be easily encoded into JSON by JsonUtility.ToJson(new DeviceInfo())
/// </summary>
public class DeviceInfo
{