Skip to content

Instantly share code, notes, and snippets.

// Generated on 2014-02-24 using generator-webapp 0.4.7
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
import requests
o = requests.get("http://2.bp.blogspot.com/_jVMUtLCFEAQ/TLFcES1SvrI/AAAAAAAAAQ0/uvR8aUF6CnA/s320/lerolero.jpg", stream=True)
with open('sample.jpg', 'wb') as f:
f.write(o.content)
$ ffmpeg -codecs; ffmpeg -formats
ffmpeg version 2.1.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Feb 24 2014 10:33:56 with gcc 4.8.2 (GCC) 20140206 (prerelease)
configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
lib
{% all_images_check_permission object request.user as iamges %}
{% for image in images %}
{% try_values image.caption image.description image.title as image_caption %}
<div class="swiper-slide">
<div class="inner">
<img class="img-responsive-height" src="{% image_obj image height=430 fitin=True %}" alt="{{ image_caption|striptags|safe }}" />
{% if image_caption %}
<div class="desc">
<p class="source"><strong>Fonte:</strong> {{ image.source }}</p>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django import template
from django.conf import settings
from ..generate import image_url as url
register = template.Library()
class AllImagesCheckPermissionForObjectsNode(Node):
def __init__(self, obj, name):
self.obj = Variable(obj)
self.name = name
def render(self, context):
check_published = True
if context['request'].user.is_staff or \
context['request'].user.is_superuser:
check_published = False
2014-04-28 13:00:33.557253 => START
2014-04-28 13:00:33.558125 => CONNECT IN RELATION DATA BASE: detalhamento-bo-nus
2014-04-28 13:03:31.624086 => LOAD DATA ON DATAWAREHOUSE: detalhamento-bo-nus
2014-04-28 13:03:31.795551 => SAVE DATA (JSON) ON RIAK: detalhamento-bo-nus
2014-04-28 13:03:31.836761 => SAVE COLUMNS ON RIAK: detalhamento-bo-nus
2014-04-28 13:03:31.877670 => SAVE CONNECT ON RIAK: detalhamento-bo-nus
2014-04-28 13:03:31.918834 => SAVE SQL ON RIAK: detalhamento-bo-nus
2014-04-28 13:03:31.922156 => CLEAN MEMORY: detalhamento-bo-nus
2014-04-28 13:03:31.937177 => END
<ul class="list-inline">
{% for obj in breadcrumb %}
<li><a href="{{ obj.get_absolute_url }}">{{ obj.name }}</a>{% if not forloop.last %}<span>></span>{% endif %}</li>
{% endfor %}
</ul>
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
f = map[string]interface{}{
"Name": "Wednesday",
"Age": 6,
"Parents": []interface{}{
"Gomez",
"Morticia",
},
}
m := f.(map[string]interface{})