Skip to content

Instantly share code, notes, and snippets.

indeyets / appserver.php
Created Mar 7, 2014
Example of simple PHP application conversion to use
View appserver.php
* aip variant of php file
class MyApp
public function __invoke($context)
$output = '<h1>Hello world</h1>';
View list.txt
indeyets /
Created May 9, 2014
Virtuoso helper for SPARQLWrapper 1.6.0
from SPARQLWrapper import SPARQLWrapper
class VirtuosoWrapper(SPARQLWrapper):
def setParameter(self, name, value):
return self.addParameter(name, value)
def setReturnFormat(self, output_format):
if output_format == 'jsonld':
indeyets / merge.php
Created May 20, 2014
EasyRDF graph-merge example
View merge.php
require '../vendor/autoload.php';
$graph1 = new EasyRdf_Graph();
$graph1->addResource('', 'dc:title', 'Hello, world!');
$graph1->addResource('', 'dc:description', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
$graph2 = new EasyRdf_Graph();
$graph2->addResource('', 'dc:description', 'Some boring description');
$graph2->addResource('', 'dc:title', 'Hello, second world!');

Keybase proof

I hereby claim:

  • I am indeyets on github.
  • I am jimidini ( on keybase.
  • I have a public key whose fingerprint is A6CE DC75 11EF 851C 3D7A 48DA AF54 312A 1D21 9F11

To claim this, I am signing this object:

View steps.txt
default | Given /^(?:|I )am on (?:|the )homepage$/
| Opens homepage.
| at `FeatureContext::iAmOnHomepage()`
default | When /^(?:|I )go to (?:|the )homepage$/
| Opens homepage.
| at `FeatureContext::iAmOnHomepage()`
default | Given /^(?:|I )am on "(?P<page>[^"]+)"$/
| Opens specified page.
View gist:371095
class Symfony2App
private $kernel;
public function __construct(\Symfony\Foundation\Kernel $kernel)
$this->kernel = $kernel;
View libgda-prefix.patch
diff --git a/configure b/configure
index 3245683..070ac7b 100755
--- a/configure
+++ b/configure
@@ -17807,171 +17807,11 @@ fi
$as_echo "Mac OS X - carbon" >&6; }
- # Check whether --enable-binreloc was given.
indeyets / gist:666118
Created Nov 7, 2010
gda-4.0.12 introspection patch
View gist:666118
diff --git a/libgda/gda-data-model.c b/libgda/gda-data-model.c
index 1518918..fa711f1 100644
--- a/libgda/gda-data-model.c
+++ b/libgda/gda-data-model.c
@@ -898,7 +898,7 @@ gda_data_model_remove_row (GdaDataModel *model, gint row, GError **error)
* gda_data_model_get_row_from_values:
* @model: a #GdaDataModel object.
- * @values: (element-type Gobject.Value): a list of #GValue values (no %NULL is allowed)
+ * @values: (element-type GObject.Value): a list of #GValue values (no %NULL is allowed)
indeyets / gist:672998
Created Nov 11, 2010
mongrel2 formula patch for homebrew
View gist:672998
diff --git a/Library/Formula/mongrel2.rb b/Library/Formula/mongrel2.rb
index 60e7e49..35ce213 100644
--- a/Library/Formula/mongrel2.rb
+++ b/Library/Formula/mongrel2.rb
@@ -9,6 +9,8 @@ class Mongrel2 <Formula
depends_on 'zeromq'
def install
+ ENV['OPTFLAGS'] = ENV.cflags + " " + ENV['CPPFLAGS']
+ ENV['OPTLIBS'] = ENV.ldflags