Skip to content

Instantly share code, notes, and snippets.

<rdf:RDF xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:dcterms="http://correct.url.here/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<sioc:Community rdf:about="http://url-of.the.community">
<dcterms:hasPart>
<sioc:Item rdf:about="http://southampton.rkbexplorer.com/id/eprints-12614"/>
</dcterms:hasPart>
</sioc:Community> </rdf:RDF>
#!/usr/bin/env python
"""
Modified by Uldis Bojars:
- changed to only print the list of figures referenced in LaTeX files
ToDo:
- work around the limitation of only 2 levels of includes
- fix the problem that it does not work if start_file is not in the current
\documentclass{article}
% compile this file using:
% pdflatex --shell-escape py-latex.tex
\usepackage{python}
\usepackage{url}
\begin{document}
#!/usr/bin/env python
"""
get-sioc-apps-list.py
Extracts a list of SIOC applications and their creation dates,
based on data at: http://wiki.sioc-project.org/index.php/ApplicationTimeline
Print a TAB-delimited list of the number of applications created every month.
$ curl -v http://www.no673domain.com
* About to connect() to www.no673domain.com port 80 (#0)
* Trying 67.63.50.50... connected
* Connected to www.no673domain.com (67.63.50.50) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.6
> Host: www.no673domain.com
> Accept: */*
#!/usr/bin/env python
"""
bfind.py - Search for references matching given text
in BibTeX files and on BibSonomy.
Author: Uldis Bojars
http://captsolo.net
"""
@CaptSolo
CaptSolo / gist:1167542
Created August 24, 2011 08:05
Valodas un augstskolu likums

56.pants. Studiju reglamentācija

(3) Valsts dibinātās augstskolās studiju programmas īsteno valsts valodā. Svešvalodu lietošana studiju programmu īstenošanā iespējama tikai šādos gadījumos:

1) Eiropas Savienības oficiālajās valodās var īstenot studiju programmas, kuras ārvalstu studējošie apgūst Latvijā, un studiju programmas, kuras īsteno Eiropas Savienības programmu un starpvalstu līgumos paredzētās sadarbības ietvaros. Ārvalstu studējošajiem studiju kursu obligātajā apjomā iekļaujama valsts valodas apguve, ja studijas Latvijā ir paredzamas ilgāk par sešiem mēnešiem vai pārsniedz 20 kredītpunktus;

2) ne vairāk par vienu piekto daļu no studiju programmas kredītpunktu apjoma var īstenot Eiropas Savienības oficiālajās valodās, ievērojot, ka šajā daļā nevar ietilpt gala un valsts pārbaudījumi, kā arī kvalifikācijas, bakalaura un maģistra darba izstrāde;

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import graph_tool as gt
import numpy
import os
import sys
def get_all_graphs(g, v_prop, prune=False):
@CaptSolo
CaptSolo / my_postgres_api
Created December 10, 2013 07:17
Code snippet for a discussion
# -*- coding: utf8 -*-
import psycopg2, psycopg2.extensions
import atexit
# no FAQ - lai simbolus atgriež kā python unicode tipu
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY)
class MyApi(object):
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:admin="http://webns.net/mvcb/">
<foaf:PersonalProfileDocument rdf:about="">
<foaf:maker rdf:resource="#me"/>
<foaf:primaryTopic rdf:resource="#me"/>
<admin:generatorAgent rdf:resource="http://www.ldodds.com/foaf/foaf-a-matic"/>
<admin:errorReportsTo rdf:resource="mailto:leigh@ldodds.com"/>