Used: q-spec.js@a1a416.
Implementations compared:
This is currently in Q:
# coding: utf-8 | |
# copyright 2014 tshirtman | |
# distributed under the GPL licence | |
from __future__ import division | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ListProperty, NumericProperty, StringProperty | |
from kivy.clock import Clock |
macro makeString { | |
case { _ $tok } => { | |
return [makeValue(#{$tok}[0].token.value, #{here})] | |
} | |
} | |
macro qw { | |
rule { ($delimited ...) } => { [$(makeString $delimited) (,) ...] } | |
} | |
qw(space separated words) // ["space", "separated", "words"] |
" copy all this into a vim buffer, save it, then... | |
" source the file by typing :so % | |
" Now the vim buffer acts like a specialized application for mastering vim | |
" There are two queues, Study and Known. Depending how confident you feel | |
" about the item you are currently learning, you can move it down several | |
" positions, all the way to the end of the Study queue, or to the Known | |
" queue. | |
" type ,, (that's comma comma) |
# Based on https://github.com/kripken/emscripten/wiki/Tutorial | |
# prerequisites | |
cd ~/ | |
brew install node | |
sudo ln -s /usr/bin/python2.7 /usr/bin/python2 | |
curl http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-apple-darwin11.tar.gz > llvm.tgz | |
tar xzvf llvm.tgz | |
ln -s clang+llvm-3.2-x86_64-apple-darwin11 llvm |
import re | |
import random | |
CURLY_RE = re.compile( "\{(.*?)\}" ) | |
def spam( filename ): | |
file = open(filename, "r") |
# -*- coding: utf-8 -*- | |
from PIL import Image, ImageMath | |
def paste_composite(original, paste): | |
""" | |
Вставляет в первое изображение второе, с учетом альфаканала обоих. | |
Оба изображения должны быть в формате RGBA. | |
""" |
(function( jQuery, window, undefined ) { | |
"use strict"; | |
var matched, browser; | |
jQuery.uaMatch = function( ua ) { | |
ua = ua.toLowerCase(); | |
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || | |
/(webkit)[ \/]([\w.]+)/.exec( ua ) || |
#!/bin/sh | |
help () { | |
log "Usage: `basename $0` [-h] [-n] [-a] [-u] [-s hh:mm:ss] [-d ss] [-w px] [-f n] [-S n] [-b n] [-t subtitle.sub] [-c default | basic | fontsize | fontstyle | full] <filename> [result.gif] | |
-h show this help | |
-n turn off subtitles | |
-a don't open directory with frames in filemanager | |
-u update this script from gist. Create .gifupd file in the script's directory to automatically check for updates once per day or put the number of seconds in the file to check with that period. | |
-s start time in seconds or as hours:minutes:seconds, default: 0 |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <libwebsockets.h> | |
static int callback_http(struct libwebsocket_context *context, | |
struct libwebsocket *wsi, | |
enum libwebsocket_callback_reasons reason, void *user, |
Used: q-spec.js@a1a416.
Implementations compared:
This is currently in Q: