Skip to content

Instantly share code, notes, and snippets.

Dmitry Belaventsev dizpers

Block or report user

Report or block dizpers

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 gist:7703000
Public Sub procedure1()
Dim B(10) As Double
Dim n, x, t As Integer
Dim a, dx, dt As Double
Dim u(21, 21, 10) As Double
Dim g As Double
a = 1
dx = 3.14159 / 20
View order_details.html
@font-face {
font-family: "arial", "helvetica", "symbol";
src: url("{{ MEDIA_ROOT }}fonts/Arial.ttf");
@font-face {
font-family: "arial black";
src: url("{{ MEDIA_ROOT }}fonts/Arial-bold.ttf");
View base.html
<div id="modalHelp" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalHelpLabel" aria-hidden="true">
<div class="modal-header">
<h3 id="modalHelpLabel">Help</h3>
<div class="modal-body">
{% form_from_page slug="help" as help_form %}
{% load widget_tweaks %}
<form action="." method='POST' class="row-fluid">
{{ help_form.errors }}
{% csrf_token %}
View main.js
$.post('/help/', $('.modal-body form').serialize(), function(resp){
if (resp.error) {
alert("Fix errors and try again!")
# NOTE: This code was extracted from a larger class and has not been
# tested in this form. Caveat emptor.
import django.conf
import django.contrib.auth
import django.core.handlers.wsgi
import django.db
import django.utils.importlib
import httplib
import json
import logging
dizpers /
Created Jul 3, 2012
Using Tornado and PyQuery for parsing links for user profiles
# -*- coding: utf-8 -*-
from tornado import ioloop
from tornado import web
from tornado import httpclient
from tornado.escape import (json, json_decode, json_encode)
from pyquery import PyQuery
class ParseUsersHandler(web.RequestHandler):
You can’t perform that action at this time.