Skip to content

Instantly share code, notes, and snippets.

var FBSIY = {
postTemplateId:null,
favoriteTemplateId:null,
init:function(){
FB_RequireFeatures(["XFBML"], function()
{
FB.Facebook.init(window.api_key, "/facebook_sessions/finish_login/xd_receiver.htm");
});
module TableHelper
# Table helper allow easy generate simple table layout
# items - collection of variables
# options:
# you can define any attribute for table in this parameter
# ex. :style => 'border: 1px solid black', :align => 'center'
# You can ovveride predefined next parameters:
# cols: count of columns in a table
# rows: count of rows in a table. The cols parameter will be disabled in this case.
# tr: options for a tr tag, ex.: :tr => {:class => 'block', :width => '100px'}
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" creationComplete="init()" layout="vertical" width="100%" height="100%">
<fx:Script>
<![CDATA[
import flash.filters.ShaderFilter;
[Embed(source="assets/bicubicResampling.pbj", mimeType="application/octet-stream")]
private var ResampleFilter:Class;
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" creationComplete="preinit(event)" layout="vertical" width="100%" height="100%">
<fx:Script>
<![CDATA[
import flash.filters.ShaderFilter;
[Embed(source="assets/verticalGaussianBlur.pbj", mimeType="application/octet-stream")]
private var MedianSimple:Class;
var bitmapData:BitmapData;
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
/* base.css | v0.1 (10172009) | Thierry Koblentz
*
* The purpose of this styles sheet is to set default styles for common browsers and address common issues (missing scrollbar, extended buttons in IE, gap below images, etc.)
*/
/* using height:100% on html and body allows to style containers with a 100% height
* the overflow declaration is to make sure there is a gutter for the scollbar in all browsers regardless of content
* note that there is no font-size declaration set in this rule. If you wish to include one, you should use font-size: 100.01% to prevent bugs in IE and Opera
*/
html {
class Photo < ActiveRecord::Base
has_attached_file :file,
:storage => :s3,
:s3_credentials => "#{Rails.root}/config/s3_credentials.yml",
:bucket => 'hdphotos',
:path => ":uid/:id/:token_:style.:extension",
:styles => {:thumb => '189x189#', :cover => '379x379#', :hd => '912x720>'},
:convert_options => { :all => '-strip -colorspace RGB' }
upstream uploader_cluster {
server unix:/tmp/thin.uploader.0.sock;
server unix:/tmp/thin.uploader.1.sock;
server unix:/tmp/thin.uploader.2.sock;
server unix:/tmp/thin.uploader.3.sock;
server unix:/tmp/thin.uploader.4.sock;
}
server {
upstream uploader_cluster {
server unix:/tmp/thin.uploader.0.sock;
server unix:/tmp/thin.uploader.1.sock;
server unix:/tmp/thin.uploader.2.sock;
server unix:/tmp/thin.uploader.3.sock;
server unix:/tmp/thin.uploader.4.sock;
}
server {
upstream uploader_cluster {
server unix:/tmp/thin.uploader.0.sock;
server unix:/tmp/thin.uploader.1.sock;
server unix:/tmp/thin.uploader.2.sock;
server unix:/tmp/thin.uploader.3.sock;
server unix:/tmp/thin.uploader.4.sock;
}
server {