Skip to content

Instantly share code, notes, and snippets.

Žiga Stopinšek ddksr

Block or report user

Report or block ddksr

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
View archlinux-snippets.md
View sql-clicks.org
  • date (date)
  • src_url (varchar)
  • dst_url (varchar)
  • cookie_id (varchar, NULL if unknown)
View hackernewspp.org
1. req2. req (q: 1)3. req (q: 3)
a, 4:00a, 4:00f, 4:11
b, 3:55e, 3:57a, 4:00
c, 3:40b, 3:55e, 3:57
d, 2:10c, 3:40d, 2:10
d, 2:10
@ddksr
ddksr / bash-snippets.sh
Last active Nov 17, 2015
Favorite bash snippets
View bash-snippets.sh
# In a file with urls, count different status codes
{ for line in `cat urls.txt`; do curl -I $line 2> /dev/null | head -n 1 | egrep -o '[0-9]{3}' ; done; } | sort | uniq -c
# Get titles from urls from clipboard
urls=`xclip -o | tr '\n' ' '`; for url in $(echo $urls); do clean_url=$(echo -e "${url}" | tr -d '[[:space:]]'); tmp=$(curl "$clean_url" 2> /dev/null | egrep -o '<title>.*</title>' | egrep -o '>.*<'); echo ${tmp:1:-2}; done;
View ninja-wp-loop.org

Uvod

  • [x] predstavi se
  • [x] prilagajanje wp-ja: teme in plugini. razlika?
    • [x] actions
    • [x] filters
    • [x] the loop

Teme

  • [x] style.php - metapodatki teme
  • [x] functions.php - programerske nastavitve teme
    • [x] poglej featured image
@ddksr
ddksr / izpiski.org
Created Feb 7, 2015
CVWW presentation
View izpiski.org

Highlights

  • multi-image photogrammetry is becoming the most accurate and cost effective method of documentation in underwater archeology
  • a 3d point cloud is difficult to use directly for analysis and comparison of object shapes
  • volumetric shape models can address some of this difficulties
  • superquadric volumetric shape models can be automatically recovered from a point cloud
  • superquadric models offer an abstraction level suitable for reasoning about a scene

Intro

  • stereo and photogrammetry in 1960s George Bass
  • 3D available only after the field work was already finished
  • documentation performed mostly manually - imperfections
View dis.py
#!/usr/bin/env python3
"""DIS slovarček api
Usage:
dis [options] [QUERY [QUERY ...]]
Options:
-h --help Show this screen.
--version Show version.
"""
@ddksr
ddksr / termania.py
Created Feb 1, 2015
Termania script
View termania.py
#!/usr/bin/env python3
"""Termania api
Usage:
termania [options] [QUERY [QUERY ...]]
Options:
-h --help Show this screen.
--version Show version.
"""
@ddksr
ddksr / pjson.py
Last active Aug 29, 2015
Script for parsing jsons in bash
View pjson.py
#!/bin/python
"""
pjson - simple script for parsing jsons with python
Json input needed with stdin.
Usage:
pjson key1 key2 key3 ...
Examples:
View mucl.zsh-theme
# Oh-my-Zsh prompt created by sigi
# The theme is based on gianu but has things I really wanted to have
# Also, note this great article: http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
hg root >/dev/null 2>/dev/null && echo '☿' && return
echo '○'
}
You can’t perform that action at this time.