Skip to content

Instantly share code, notes, and snippets.

View psukys's full-sized avatar
💃

Paulius Šukys psukys

💃
View GitHub Profile

Keybase proof

I hereby claim:

  • I am psukys on github.
  • I am pauliussukys (https://keybase.io/pauliussukys) on keybase.
  • I have a public key ASAuW7qp3T7YLPMaeCzkJ9hY4yuh1SW9uTM0K61A8cPTjQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am psukys on github.
  • I am psukys (https://keybase.io/psukys) on keybase.
  • I have a public key ASCI66OoGGBryFHAwsFRhYHAQ3wIqEDfGSp0DDF-CVpQ2Qo

To claim this, I am signing this object:

class Bar:
def something(self):
return 123
The $PYTHON environment variable should be set when running this test
from Python.
$ [ -n "$PYTHON" ] || PYTHON="`which python`"
$ [ -n "$PYTHONPATH" ] || PYTHONPATH="$TESTDIR/.." && export PYTHONPATH
$ if [ -n "$COVERAGE" ]; then
> coverage erase
> alias cram="`which coverage` run --branch -a $TESTDIR/../scripts/cram"
> else
> alias cram="$PYTHON $TESTDIR/../scripts/cram"
@psukys
psukys / gravitational-model.html
Last active August 31, 2017 18:36
Gravitation Model paper's review code snippets
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.10.0/d3.min.js"></script>
<article>
<p></p>
<section>
<h2>Review</h2>
<ol>
<li></li>
</ol>
</section>
<section>
@psukys
psukys / test_tubes.js
Last active August 31, 2017 17:35
TUBE algorithm's utility function http://dx.doi.org/10.1016/j.eswa.2017.08.016
class TestSuite {
constructor() {
this.test_subjects = require('./tubes.js');
this.data = [
{ x: 1, y: 2 },
{ x: 2, y: 3 },
{ x: 3, y: 4 },
{ x: 4, y: 5 }
];
@psukys
psukys / pitem.ts
Created July 18, 2017 09:04
published item retrieval
PublishedItem.find({})
.populate("seller")
.populate({
path: "item",
model: "Item",
populate: [{
path: "categories",
model: "Category"
}, {
path: "allergens",
@psukys
psukys / class-diagram.plantuml
Created June 15, 2017 12:47
Class diagram for SEBA COOKorBOOK
@startuml
class Item {
String title
String description
}
class Alergen {
String title
String description?
other metadata?
@psukys
psukys / dump.py
Created October 7, 2016 15:40
Gauti esamus pažymėjimus
#!/usr/bin/python
# -*- coding: utf-8 -*-
import MySQLdb
import csv
import os
def gautiVardaPavarde(pazymejimai, imageId):
for p in pazymejimai:
@psukys
psukys / CMakeLists.txt
Created August 17, 2016 13:26
cmake build configuration for dbus-cxx example: quick-start
cmake_minimum_required(VERSION 3.2)
project(test)
find_package(PkgConfig)
pkg_check_modules(DBUS REQUIRED "dbus-cxx-1.0")
add_executable(server quickstart_server_0.cpp)
add_executable(client quickstart_client_0.cpp)
target_link_libraries(server ${DBUS_LIBRARIES})