Skip to content

Instantly share code, notes, and snippets.

@michalwiglasz
michalwiglasz / OpenWithSublimeText2.bat
Created August 12, 2016 20:10 — forked from mrchief/LICENSE.md
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)
@echo off
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@michalwiglasz
michalwiglasz / pogamut.md
Created May 2, 2014 12:26
Pogamut + jason

Je třeba netbeans 7.4, v tom 7.1.2 mi to nefungovalo (neumí otevřít ty projekty).

Zdrojáky je třeba stáhnout ze SVN:

svn checkout svn://artemis.ms.mff.cuni.cz/pogamut/trunk/project/Incubator/RBAS-Scenarios/

Anebo já pracoval se soubory z přílohy diplomky autora:

@michalwiglasz
michalwiglasz / vlna.w
Last active January 2, 2016 05:59
Zdrojový kód programu vlna. Zdroj: ftp://math.feld.cvut.cz/pub/olsak/vlna/
\input csmac % Makra pro češtinu
\pageheight=9.5in \fullpageheight=9.8in \setpage
%\nocon % omit table of contents
\datethis % print date on listing
\def\begitems{\medskip\bgroup\catcode`\*=13 \narrower\narrower}
\def\enditems{\par\egroup\medskip}
{\catcode`\*=13 \gdef*{\par\noindent\llap{$\bullet$\ }\ignorespaces}}
@michalwiglasz
michalwiglasz / data.sql
Last active December 31, 2015 04:08
NotORM - příklad issue #12
-- Adminer 3.7.1 MySQL dump
SET NAMES utf8;
SET foreign_key_checks = 0;
SET time_zone = '+01:00';
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
CREATE TABLE `product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
class RottenGzipFile(object):
"""
Standard library GzipFile replacement, since it has several issues with
files containing extra data after compressed stream.
See http://stackoverflow.com/questions/4928560/how-can-i-work-with-gzip-files-which-contain-extra-data
for details.
This class does not implement everything usually included in file-like
objects.
"""
Optimization of Heuristic Analysis of Executable Files
Bachelor Project
Faculty of Information Technologies
Brno University of Technology
Author: Michal Wiglasz, <xwigla00@stud.fit.vutbr.cz>
Brno 2012
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Michal Wiglasz <michalwiglasz.cz>
# Feel free to use, but mention my name somewhere.
import json
import requests
import re
from bs4 import BeautifulSoup
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Michal Wiglasz <michalwiglasz.cz>
# Feel free to use, but mention my name somewhere.
from difflib import SequenceMatcher
import subprocess
import glob