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
Aquila::SineGenerator generator(44100); | |
generator.setAmplitude(2000).setFrequency(500).generate(10 * 44100); | |
Aquila::WaveFile::save(generator, "L:\\sin.wav"); |
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
from django.contrib import comments | |
from django.contrib.contenttypes.models import ContentType | |
from django.db import connection | |
from django.db import models | |
from django.utils.datastructures import SortedDict | |
class RecentManagerMixin(object): | |
pub_date_field_name = 'pub_date' |
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
--- D:/Python26/Lib/site-packages/django_notification-0.1.4-py2.6.egg/notification/views.py Tue Jun 08 14:21:04 2010 | |
+++ D:/Python26/Lib/site-packages/django_notification-0.1.4-py2.6.egg/notification/views2.py Tue Jun 08 14:21:12 2010 | |
@@ -19,7 +19,7 @@ | |
@login_required | |
def notices(request): | |
notice_types = NoticeType.objects.all() | |
- notices = Notice.objects.notices_for(request.user, on_site=True) | |
+ notices = Notice.objects.notices_for(request.user, on_site=True).select_related(depth=1) | |
settings_table = [] | |
for notice_type in NoticeType.objects.all(): |
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
#include "aquila/tools/TextPlot.h" | |
#include <cstddef> | |
int main(int argc, char *argv[]) | |
{ | |
const std::size_t SIZE = 64; | |
int arr[SIZE]; | |
for (std::size_t i = 0; i < SIZE; ++i) | |
{ | |
arr[i] = i % 10; |
NewerOlder