This file contains 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
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 |
This file contains 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
<style> | |
@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"); | |
} |
This file contains 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
<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> | |
<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 %} |
This file contains 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
$("#modalOk").click(function(){ | |
$.post('/help/', $('.modal-body form').serialize(), function(resp){ | |
if (resp.error) { | |
alert("Fix errors and try again!") | |
}else{ | |
$("#modalOk").remove(); | |
$(".modal-body").html(resp.message); | |
} | |
}); |
This file contains 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
# 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 |
This file contains 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
# -*- 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): |