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
''' | |
This module shows... | |
a) how GLSL error locations are presented depending on how the shader source is passed | |
(one string vs array of strings), | |
b) whether a single token can spread across several source strings. | |
''' | |
import ctypes | |
from OpenGL import GL |
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
import operator | |
commands = {} | |
@operator.attrgetter('__get__') | |
def command(name, func): | |
commands[name] = func | |
return func | |
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 rest_framework.decorators import api_view | |
from rest_framework.response import Response | |
import ajaxmelt | |
@ajaxmelt.register('POST') | |
@api_view | |
@login_required | |
def edit_name(request): | |
campaign = get_object_or_404(Campaign.objects.visible_to(request.user), id=campaign_id) |
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
import os | |
import shutil | |
import subprocess | |
import tempfile | |
import uuid | |
from compressor import base | |
from compressor.conf import settings as compressor_settings | |
from compressor.js import JsCompressor | |
from django.conf import settings | |
from django.core.files import File |
NewerOlder