Skip to content

Instantly share code, notes, and snippets.

ale rimoldi aoloe

Block or report user

Report or block aoloe

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
@aoloe
aoloe / WP-event-manager-notes.php
Created Jul 16, 2012 — forked from ms-studio/WP-event-manager-notes.php
Notes regarding the WP event manager
View WP-event-manager-notes.php
<?php
/*
Target:
*******
Perfect solution for a simple WP event manager
Needs:
******
@aoloe
aoloe / code_structure
Last active Dec 22, 2015
code structure
View code_structure
the scribus-core code is currently structured as foolows:
+ impagina-core/
- impagina-core.pro
- main.cpp
- scribus.cpp
- scribus.h
+ document/
- document.cpp
View gist:8024729
<VirtualHost *:80>
# Indexes + Directory Root.
#DirectoryIndex index.html index.php
DocumentRoot /home/ale/docs/htdocs/graphicslab/htdocs/
<Directory /home/ale/docs/htdocs/graphicslab/htdocs/ >
# Options FollowSymLinks
# AllowOverride FileInfo Options
Options Indexes FollowSymLinks
AllowOverride AuthConfig FileInfo
View adminer-tables-history.php
<?php
/**
* Show the history of the latest selected tables. Cookies based.
* Set the js variable history_length to define the history length.
* Works only with current browsers.
* @link http://www.adminer.org/plugins/#use
* @author Ale Rimoldi, http://www.ideale.ch/
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
@aoloe
aoloe / README.md
Last active Aug 29, 2015
issues attachments
View README.md

This gist repository contains attachments for my issue tracker.

Just add files to this repository and then link them in the issue.

@aoloe
aoloe / main.qml
Created Aug 14, 2014
pyqt and qqmlapplicationengine
View main.qml
$ python3 test.py
QQmlApplicationEngine failed to load component
file:///home/ale/docs/src/scribus-script-repository/script-download/test/main.qml:4 AppplicationWindow is not a type
View sdn-toc.csv
1 Sortir du nucléaire accueil
2 Journal actualite/journal
3 Agenda association/agenda
4 Presse accueil
5 Sortons du nucléaire accueil
6 Association accueil
7 Contact association/contact
8 Buts association/buts
9 Statuts association/statuts
14 Communiqués de presse actualite/communiques
View tomd.py
import html2text
import csv
import unicodedata
#from unidecode import unidecode
#print unidecode(u"\u5317\u4EB0")
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
h = html2text.HTML2Text()
# Ignore converting links from HTML
View toc.py
import glob
import re
import csv
toc = []
p_id = re.compile('index.php\?id=(\d+)')
p_title = re.compile('<title>(.*) \| (.*)</title>')
for filename in glob.glob('index.php?id*'):
print(filename)
m = p_id.match(filename)
print(m.group(1))
@aoloe
aoloe / src-status.py
Created May 29, 2015
git status with dir from python
View src-status.py
import os
from sh import git
def subDirPath (d):
return filter(os.path.isdir, [os.path.join(d,f) for f in os.listdir(d)])
curDir = os.getcwd()
curDir = "/home/ale/docs/src/"
for d in subDirPath(curDir) :
if os.path.isdir(os.path.join(d, ".git")) :
You can’t perform that action at this time.