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
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"); | |
}); |
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 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'} |
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
<?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; | |
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
<?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; | |
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
#! /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 |
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
/* 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 { |
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
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' } | |
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
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 { |
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
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 { |
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
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 { |
OlderNewer