This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"CtrlLeft": "WordLeft", | |
"CtrlRight": "WordRight", | |
"CtrlShiftLeft": "SelectWordLeft", | |
"CtrlShiftRight": "SelectWordRight", | |
"CtrlUp": "MoveLinesUp", | |
"CtrlDown": "MoveLinesDown", | |
"CtrlShiftHome": "SelectToStart", | |
"CtrlShiftEnd": "SelectToEnd", | |
"CtrlW": "DeleteWordLeft", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Version=1.1 | |
Name=CloudCompare Viewer | |
GenericName=3D point cloud viewer | |
Comment=Application for 3D point cloud (and triangular mesh) viewing | |
Type=Application | |
Exec=ccViewer %U | |
Icon=ccviewer | |
Terminal=false | |
Categories=Graphics; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 3SAT instance generator G2(n,m) */ | |
/* created by M.Motoki */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
void gen_unique_instance(int, int); /* generate 3CNF with at least 1 solution t*/ | |
void sat_alloc(int n, int m, int k); | |
void write_sat(FILE *fp, int n, int m, int k); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TABLE je ve skutečnosti instanční proměnná, ale berte to, jakože je globální | |
def solve(): | |
TABLE = {} # slovník/hash kde klíče budou dvojice | |
for cost in MAX_COST..0: | |
weight, combo = _solve(NUMITEMS, cost) | |
if weight <= CAPACITY: | |
maxcombo = combo | |
maxcost = cost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
""" | |
OpenShift WEDOS domain updater | |
============================== | |
This script makes sure that your main domain (example.org) resolves to the | |
same IP address as your WWW domain (www.example.org). When you run your | |
webapp on OpenShift, you should set CNAME DNS records, however, this is not | |
possible for main domains, such as example.org without a subdomain. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test session starts ============================== | |
platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.7.0 | |
rootdir: /Users/churchyard/Documents/devassistant, inifile: | |
collected 911 items | |
test/test_actions.py ................... | |
test/test_argument.py ............ | |
test/test_assistant_base.py ....... | |
test/test_cache.py ....FF.. | |
test/test_command_helpers.py ............................... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific environment | |
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[main] | |
username = Miro Hrončok | |
email = [email protected] | |
copr_url = https://copr.fedoraproject.org/ | |
upload_command = scp %s [email protected]:public_html/SRPMS/ | |
upload_url = http://churchyard.fedorapeople.org/SRPMS/%s | |
[openscad-devel] | |
git_url = https://github.com/openscad/openscad.git | |
git_folder = ~/upstream/openscad-git/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fedora-livecd-3dprint.ks | |
# | |
# Description: | |
# - Fedora Live Spin with the light-weight Xfce Desktop Environment and 3D printing stuff | |
# | |
# Maintainer(s): | |
# - Miro Hrončok <[email protected]> | |
%include fedora-live-base.ks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOOK=/usr/lib/fedpkg-patch-check.py | |
function addhook { | |
hookdir="${1%%/}/.git/hooks" | |
test -d "$hookdir" || (echo "$hookdir doesn't exist or is not a directory" 1>&2 && return 1) | |
test -h "$hookdir/pre-commit" && echo "$hookdir/pre-commit is already a link, skipping" 1>&2 && return 1 | |
test -f "$hookdir/pre-commit" && echo "$hookdir/pre-commit is a file, you should call $HOOK manually from that file depending on what language is your hook written in" 1>&2 && return 1 | |
ln -s $HOOK "$hookdir/pre-commit" || (echo "Could not link the hook into $hookdir" 1>&2 && return 1) |