Skip to content

Instantly share code, notes, and snippets.

View libbkmz's full-sized avatar

Ilya libbkmz

View GitHub Profile
@libbkmz
libbkmz / petri.py
Created December 14, 2012 19:02
Inhibitor petri net example
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from copy import deepcopy as copy
import Queue
# usual matrix transpose, in simple python way
def transpose(matrix):
return map(list, zip(*matrix))
# math list functions
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>lab2!</title>
</head>
<body>
<canvas id="canvas" style=" border: 1px solid black; " onclick="javascript:movement();"></canvas>
<img src="1.jpg" id="krest" style="display: none;">
from flask.ext.wtf import Form, TextField, PasswordField, TextAreaField, validators
from flask.ext.admin.form import Select2TagsWidget, Select2Field, Select2TagsField
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from blog.models import Post, User
class UserEditForm(Form):
login = TextField('Login name', [validators.required()])
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
grammar libbkmzgrammar;
options {
k=1; // Only 1 lookahead character required
}
.DEF A=r31
.DEF B=r30
.DEF C=r29
.DEF D=r27
.DEF E=r25
.DEF F=r28
.DEF G=r24
.DEF I=r26
.DEF TMP1=r20
.DEF TMP2=r21
#line 3 "lex.yy.c"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
syntax on
set runtimepath^=~/.vim/bundle/ctrlp.vim
set number
set nowrap
" Vundle params:
filetype plugin indent on " required!
"filetype off
#include "header.h"
int main(int argc, char *argv[])
{
char ch;
int i=0,j=0,razm=0,ind=0,fl=0,fl2=0;
int l=0;
fp=fopen(argv[1],"r");
/*
* File: main.cpp
* Author: bkmz
*
* Created on 27 Октябрь 2009 г., 19:39
*/
#include <stdlib.h>
#include <ctime>
#include <time.h>
<html>
{% block sidebar_user_2 %}
<div class="span2">
</div>
{% endblock sidebar_user_2 %}
</html>