View gist:4044db11a13c56a977fc
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.core.mail import send_mail, mail_admins | |
from django.db import models | |
from django.template.defaultfilters import slugify | |
from django.core.urlresolvers import reverse | |
from django.contrib.auth.models import User | |
from ckeditor.fields import RichTextField | |
from subtopic.models import Subtopic |
View news.models.py
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.core.mail import send_mail, mail_admins | |
from django.db import models | |
from django.template.defaultfilters import slugify | |
from django.core.urlresolvers import reverse | |
from django.contrib.auth.models import User | |
from ckeditor.fields import RichTextField | |
from subtopic.models import Subtopic |
View base_search.html
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
<!--Contenido--> | |
<main> | |
<div class="row"> | |
<!-- Left Wrapper Seccion listas --> | |
<div class="show-for-large-up small-1 large-3 columns left-wrapper"> | |
<div class="tabs-content"> | |
{% include 'search/search_menu.html' %} | |
</div> | |
</div> | |
<!--Contenido --> |
View feed.py
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.syndication.views import Feed | |
from django.contrib.syndication.views import FeedDoesNotExist | |
from django.shortcuts import get_object_or_404 | |
from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed | |
from .models import New | |
from django.core.urlresolvers import reverse | |
from django.shortcuts import get_object_or_404 | |
from django.http import HttpResponseForbidden | |
class MediaRSSFeed(Rss201rev2Feed): |
View settings.py
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
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "tiempoturco", "statics", "media") | |
#STATIC_ROOT = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-2] + ['statics/static_only']) | |
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), "tiempoturco", "statics", "static_only", ) | |
#STATICFILES_DIRS = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-2] + ['statics/static']) | |
STATICFILES_DIRS = (os.path.join(os.path.dirname(BASE_DIR), "tiempoturco", "statics", "static"),) |
View cepstrum.m
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
function [c] = cepstrum(segs) | |
%Encontrar los coeficientes cepstrales de cada segmento | |
[M,N] = size(segs); | |
% M filas, N columas, | |
% Definir Mo=output frame size(# de %frecuencias a las que se aplica FFT) | |
[c] = zeros(M,10); | |
% Inicialiando el vector para guardar los coeficientes cepstrales. | |
% P=10 |
View FlowMineListener.cpp
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 "StdAfx.h" | |
#include "Nodes\G2FlowBaseNode.h" | |
class CFlowMineListener : public CFlowBaseNode < eNCT_Instanced >, public IEntityEventListener | |
{ | |
public: | |
CFlowMineListener(SActivationInfo *pActInfo): | |
pTargetEnt(nullptr) | |
{ |
View 400.html
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
{% extends "error_base.html" %} | |
{% load i18n %} | |
{% block titletag %}{% trans 'Client Error' %}{% endblock %} | |
{% block body_class %}template-400{% endblock %} | |
{% block content %} | |
% trans "There's been an error. We have problems with customer requests, ie, of your computer, please check it." %} | |
{% endblock %} | |
{% block error %}<span>400</span>{% trans 'error'|capfirst %}{% endblock %} |
View settings.py
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
#CKEditor Options | |
CKEDITOR_UPLOAD_PATH = "/statics/media/uploads/" | |
CKEDITOR_IMAGE_BACKEND = "pillow" | |
CKEDITOR_JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' | |
CKEDITOR_CONFIGS = { | |
'default': { | |
'skin': 'office2013', | |
'toolbar': [ | |
{ 'name': 'document', 'groups': [ 'mode', 'document', 'doctools' ], 'items': [ 'Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates' ] }, |
OlderNewer