Skip to content

Instantly share code, notes, and snippets.

# $Id$
# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Adrià Arrufat <swiftscythe@gmail.com>
# Contributor: Mark Lee <mark@markelee.com>
pkgname=mediastreamer-git
_pkgname=mediastreamer2
pkgver=2.15.1.r144.g8df4c333
# $Id$
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Darwin Bautista <djclue917@gmail.com>
pkgname=belle-sip-git
_pkgname=belle-sip
pkgver=1.6.1.r69.g56436814
pkgrel=1
pkgdesc="A Voice-over-IP phone"
a = 1
def f():
def g(x):
return a+x
return g
def g():
a = 2
$(function() {
$("#btn_plus").click(function() {
$(this).remove();
var t = document.getElementById("fragment").cloneNode(true),
labels = t.content.querySelectorAll("label");
for (var i = 0; i < labels.length; i++ ) {
labels[i].setAttribute("for", labels[i].getAttribute("for") + "-" + "2");
}
var clone = document.importNode(t.content, true);
document.getElementById("outgoing").appendChild(clone);
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgbase=python-thrift
pkgname=('python-thrift' 'python2-thrift')
_pkgname=thrift
pkgver=0.10.0
pkgrel=1
pkgdesc='Python bindings for the Apache Thrift RPC system'
arch=(i686 x86_64)
license=(Apache)
#include <ql/qldefines.hpp>
#include <ql/time/date.hpp>
#include <ql/instruments/creditdefaultswap.hpp>
#include <ql/pricingengines/credit/isdacdsengine.hpp>
#include <ql/termstructures/credit/piecewisedefaultcurve.hpp>
#include <ql/termstructures/credit/defaultprobabilityhelpers.hpp>
#include <ql/termstructures/yield/piecewiseyieldcurve.hpp>
#include <ql/termstructures/yield/ratehelpers.hpp>
#include <ql/time/calendars/weekendsonly.hpp>
#include <ql/time/daycounters/thirty360.hpp>
#include <ql/qldefines.hpp>
#include <ql/time/date.hpp>
#include <ql/instruments/creditdefaultswap.hpp>
#include <ql/pricingengines/credit/isdacdsengine.hpp>
#include <ql/termstructures/credit/piecewisedefaultcurve.hpp>
#include <ql/termstructures/credit/defaultprobabilityhelpers.hpp>
#include <ql/termstructures/yield/piecewiseyieldcurve.hpp>
#include <ql/termstructures/yield/ratehelpers.hpp>
#include <ql/time/calendars/weekendsonly.hpp>
#include <ql/time/daycounters/thirty360.hpp>
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
# Ex-Maintainer: David Manouchehri <manouchehri@riseup.net>
# Contributor: Vladimir Tsanev <tsachev@gmail.com>
# Contributor: Andrew Reed <reed.996@osu.edu>
pkgname=python-lz4
_pkgname=lz4
pkgver=0.21.6
pkgrel=1
pkgdesc="LZ4 Bindings for Python"
import sys
for line in sys.stdin:
print(line.rstrip())
def solve(l):
r = sorted(enumerate(l), key=lambda x:x[1])
for i, (sigma, _) in enumerate(r):
if (sigma - i) % 2 != 0:
return i
else:
return "OK"
T = int(input())
for i in range(T):