Skip to content

Instantly share code, notes, and snippets.

View alinmechenici's full-sized avatar
🏍️
Probably I'm riding

Alin Mechenici alinmechenici

🏍️
Probably I'm riding
View GitHub Profile
@ctsrc
ctsrc / README.md
Last active March 10, 2026 11:23 — forked from niw/README.en.md
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
#!/bin/bash
set -e
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc)
hex=$((cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
@hyzhak
hyzhak / links.md
Last active October 5, 2018 13:42
Awesome List of NASA Space Apps Challenge 2017
anonymous
anonymous / buttons-css-hover-effect.markdown
Created September 30, 2016 14:59
Buttons css hover effect
@1buran
1buran / .emacs
Created September 25, 2016 09:54
Emacs config
;; .emacs -- this is custom Emacs settings file
;;; Commentary:
;;; Change Log:
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Basic Customization ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@bast
bast / jekyll-installation-arch.sh
Last active December 18, 2025 16:39
Jekyll installation on Arch Linux.
sudo pacman -S ruby ruby-rdoc gcc make
gem update --user-install
gem install jekyll --user-install
# finally add $HOME/.gem/ruby/2.7.0/bin to your PATH variable
@steventroughtonsmith
steventroughtonsmith / Add Web Tab.py
Created January 13, 2016 22:55
Insert a custom browser tab into Pythonista
# coding: utf-8
from Foundation import *
from QuartzCore import *
from UIKit import *
import console
WKWebView = ObjCClass('WKWebView')
@on_main_thread
@Gerzer
Gerzer / FTP sync.py
Last active January 18, 2018 23:42
Pythonista FTP sync
import ui
import console
import keychain
import ftplib
import os
import re
import time
from datetime import datetime
global cur_dir
cur_dir = os.path.abspath(os.getcwd())
@bastianallgeier
bastianallgeier / mywidget.php
Created March 9, 2015 10:54
Most basic widget setup for panel widgets. You would put those two files in /site/widgets/mywidget/
<?php
return array(
'title' => 'Widget Title',
'html' => function() {
// any data for the template
$data = array();
return tpl::load(__DIR__ . DS . 'template.php', $data);
}
);
@mdalp
mdalp / neo4j-contact networks
Last active November 14, 2019 10:45
This Gist wants to show how to take advantage of the Neo4j graph modeling to represent and navigate contact networks.
:neo4j-version: 2.2
:author: Marcello Dalponte
:twitter: @m_dalp
## Contact networks
A contact network is one of the typologies of dynamic networks described in the famous paper of Holme and Saramäki[1].
A dynamic network is a mathematical representation of the evolution of the relationships between entities through graphs.
It's interesting to catch this dynamicity because describes the transitivity of the order of the interactions: if A meets B and after B meets C then A can transmit something to C but not the opposite; this is useful to study the spreading of informations or infections.
An interesting project that aims to collect this kind of data is Sociopatterns[2], where Cattuto and others developed a framework to collect contacts data from RFID sensors [3].