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
# WARNING: This is just a workaround. Consider it as a very | |
# temporary solution if you really need this feature. | |
from django.utils.safestring import mark_safe | |
from django_select2.util import convert_to_js_arr | |
TEMPORARY_ID = 0 | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python3 | |
import json | |
from math import ceil | |
import re | |
from subprocess import check_output | |
import sys | |
from urllib.parse import unquote | |
from urllib.request import urlopen |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<style type="text/less"> | |
body { | |
margin: 30px; | |
font-family: Helvetica, sans-serif; | |
} | |
.wysiwyg { |
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 | |
""" | |
Converts videos inside the current directory to two complementary | |
HTML5 video formats while keeping the same quality. | |
The converted videos are placed in a subfolder. | |
You need avconv to be installed with some codecs | |
(packages libav-tools & libavcodecs-extra under Ubuntu) | |
""" |
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
"Thread-safe in-memory cache backend." | |
import time | |
from contextlib import contextmanager | |
from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache | |
from django.utils.synch import RWLock | |
# Global in-memory store of cache data. Keyed by name, to provide |
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
#!/usr/bin/env python | |
from argparse import ArgumentParser | |
from io import BytesIO | |
import re | |
from xml.etree import ElementTree | |
NAMESPACED_RE = re.compile(r'^\{(.+)\}.+$') | |
SVG_NAMESPACE = 'http://www.w3.org/2000/svg' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
; À compiler avec nasm -felf64 cat.asm && ld cat.o -o cat | |
%define SYS_EXIT 60 | |
%define SYS_READ 0 | |
%define SYS_WRITE 1 | |
%define SYS_OPEN 2 | |
%define SYS_CLOSE 3 | |
%define STDOUT 1 | |
%define BUFFER_SIZE 2048 |