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
# Contributor: Dieter Plaetinck <dieter@plaetinck.be> | |
pkgname=python2-meliae | |
pkgver=0.4.0 | |
pkgver_trimmed=0.4 | |
pkgrel=1 | |
pkgdesc="Meliae is a library meant to help people understand how their memory is being used in Python" | |
arch=(i686 x86_64) | |
url="https://launchpad.net/meliae" | |
license=('GPL') | |
depends=('python2') |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace _3._3._9 { | |
class Program { | |
delegate Func<A, R> Recursive<A, R>(Recursive<A, R> r); | |
static Func<A, R> Y<A, R>(Func<Func<A, R>, Func<A, R>> f) { | |
Recursive<A, R> rec = r => a => f(r(r))(a); |
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
# Maintainer: Balló György <ballogyor+arch at gmail dot com> | |
# Contributor: Ionut Biru <ibiru@archlinux.org> | |
# Contributor: Timm Preetz <timm@preetz.us> | |
pkgname=java-gnome | |
pkgver=4.1.1 | |
pkgrel=3 | |
pkgdesc="Java bindings to the GNOME platform (including gtk, glib and glade)" | |
arch=('i686' 'x86_64') | |
url="http://java-gnome.sourceforge.net" |
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
language: python | |
python: | |
- "2.6" | |
- "2.7" | |
branches: | |
only: | |
- master | |
before_install: | |
- cd .. | |
- curl -L -O http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.1/sip-4.14.1.tar.gz |
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 wave | |
import random | |
import struct | |
import datetime | |
SAMPLE_LEN = 44100 * 3 # 300 seconds of noise, 5 minutes | |
print "Create file using wave, storing frames in an array and using writeframes only once" | |
noise_output = wave.open('noise2.wav', 'w') |
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 -*- | |
import wave | |
import struct | |
def rip(): | |
from ctypes import CDLL,POINTER,c_short | |
cdio=CDLL('libcdio.so') | |
paranoia=CDLL('libcdio_paranoia.so') | |
h=cdio.cdio_open('/dev/cdrom',13) |
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 hashlib | |
from base64 import b64encode | |
def discid(toc): | |
u""" | |
'first':int, | |
'last':int, | |
'offsets':[int] | |
""" | |
discid=hashlib.sha1() |
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
/** | |
* Module dependencies | |
*/ | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
// img path |
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
pkgname=libtcejdb | |
pkgver=1.1.12 | |
pkgrel=1 | |
pkgdesc="Embedded JSON Database engine" | |
arch=('i686' 'x86_64') | |
url="http://ejdb.org" | |
license=('LGPL') | |
depends=('zlib') | |
source=("https://github.com/Softmotions/ejdb/archive/v${pkgver}.tar.gz") | |
md5sums=('90d0d5aa20c80c67ca2fce7babe807c6') |
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
# Other Stuff | |
from lib import auth | |
app = Flask(__name__) | |
auth.init_app(app) | |
with app.app_context(): | |
auth.send_request('whatever') # Same instance as below, but different context. |
OlderNewer