Skip to content

Instantly share code, notes, and snippets.

module IPGallery
class LegacyCategory
include DataMapper::Resource
storage_names[:default] = "gallery_categories"
has n, :albums, 'LegacyAlbum', child_key: [:category_id]
has n, :images, 'LegacyImage'
has n, :child_categories, self.name, child_key: [:parent]
From fbd588741117556fd6f1b2ea59ebde87f39d72dc Mon Sep 17 00:00:00 2001
From: Gray Manley <[email protected]>
Date: Mon, 30 May 2011 21:04:20 -0500
Subject: [PATCH] index on master: db87927 Add check for duplicate short url
key.
---
app.rb | 10 ++++++-
lib/pagination_helper.rb | 43 +++++++++++++++++++++++++++
public/css/main.css | 73 ++++++++++++++++++++++++++++++++++++++++++++++
<?php
// Pull from the db the list of channel names
$channels = array('music-for-japan-2011', '6819043', 'chelupa');
function live_channels($channels)
{
$live_channels = array();
$channels_string = implode(';', $channels);
$url = 'http://api.ustream.tv/php/channel/'.$channels_string.'/getinfo';
$ch = curl_init();
require 'formula'
class Mysql < Formula
homepage 'http://dev.mysql.com/doc/refman/5.5/en/'
url 'http://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-5.5/mysql-5.5.10.tar.gz'
md5 'ee604aff531ff85abeb10cf332c1355a'
depends_on 'cmake' => :build
depends_on 'readline'
load 'deploy' if respond_to?(:namespace)
default_run_options[:pty] = true
load 'config/deploy'
@gmanley
gmanley / vlc_build.sh
Created February 24, 2011 04:09
Mac OSX 10.6 VLC Build Error
[Gray][~/source/vlc] ∴ ./configure \
continue > --build=x86_64-apple-darwin10 \
continue > --disable-debug \
continue > --with-tuning=core2
checking build system type... x86_64-apple-darwin10
checking host system type... x86_64-apple-darwin10
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
....
libvlc configuration
--------------------
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
parse_svn_revision() {
local DIRTY REV=$(svn info 2>/dev/null | grep Revision | sed -e 's/Revision: //')
[ "$REV" ] || return
[ "$(svn st)" ] && DIRTY=' *'
echo "(r$REV$DIRTY)"
}
diff --git a/configure.in b/configure.in
index 585b038..30f4c27 100644
--- a/configure.in
+++ b/configure.in
@@ -74,28 +74,19 @@ dnl Support libfftw2 and vSDP and MKL (intel)
dnl FFTW for FFTW v2. FFTW3 for FFTW v3. VDSP for vDSP. MKL for MKL
dnl TODO: PREANSI for win32
-if test x$os = xdarwin; then
- AC_MSG_NOTICE([Using vDSP on OS X])
--- mmx.h 2004/12/21 05:08:03 1.3
+++ mmx.h 2006/03/07 05:54:48 1.4
@@ -272,15 +272,15 @@
fprintf(stderr, #op "_m2r(" #mem "=0x%08x%08x, ", \
mmx_trace.d[1], mmx_trace.d[0]); \
__asm__ __volatile__ ("movq %%" #reg ", %0" \
- : "=X" (mmx_trace) \
+ : "=m" (mmx_trace) \
: /* nothing */ ); \
fprintf(stderr, #reg "=0x%08x%08x) => ", \
We couldn’t find that file to show.