On DigitalOcean, as you go up the plan, you get higher per-core price as well.
https://www.digitalocean.com/pricing
$5 1 core - $5/core
$10 1 core - $10/core
upstream unicorn { | |
server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0; | |
} | |
server { | |
listen 80 default deferred; | |
# server_name example.com; | |
root <%= current_path %>/public; | |
if (-f $document_root/system/maintenance.html) { |
require 'ffi' | |
module Bzip2 | |
extend FFI::Library | |
ffi_lib 'bz2' | |
class Error < StandardError; end | |
class ConfigError < Error; end | |
class BufferError < Error; end |
# See https://groups.google.com/forum/#!topic/rubyonrails-core/Lb9rBkZnZSo | |
module TrackHabtmChanges | |
def self.included(model) | |
model.after_initialize :track_habtm_initial_state | |
model.after_save :track_habtm_initial_state | |
end | |
def changes | |
super.merge(habtm_changes) | |
end |
On DigitalOcean, as you go up the plan, you get higher per-core price as well.
https://www.digitalocean.com/pricing
$5 1 core - $5/core
$10 1 core - $10/core
#!/usr/bin/env python | |
import gevent.monkey | |
gevent.monkey.patch_all() | |
import boto | |
import config | |
import gevent | |
import gevent.pool | |
import os |
/* compile with | |
* | |
* g++ trans.cpp `pkg-config vips-cpp --cflags --libs` | |
*/ | |
#include <vips/vips8> | |
using namespace vips; | |
/* Return the image alpha maximum. Useful for combining alpha bands. scRGB |
diff --git a/utils/pdftocairo.cc b/utils/pdftocairo.cc | |
index bf7072c..743016d 100644 | |
--- a/utils/pdftocairo.cc | |
+++ b/utils/pdftocairo.cc | |
@@ -99,6 +99,7 @@ static GBool mono = gFalse; | |
static GBool gray = gFalse; | |
static GBool transp = gFalse; | |
static GooString icc; | |
+static int jpegQuality = -1; | |
/* compile with: | |
* | |
* gcc -g -Wall composite2.c `pkg-config vips --cflags --libs` | |
*/ | |
#include <stdio.h> | |
#include <vips/vips.h> | |
/* Composite images a and b. | |
*/ |
-- Original Author: http://www.roblox.com/Crypt-item?id=40531920 | |
-- A readable mirror: http://roblox-asset.comoj.com/40531920 | |
-- | |
-- I have modified the final bxor() declaration at the bottom | |
-- for optimization (CSE via local k1, k2, k3, k4) | |
local ins=table.insert | |
local mf=math.floor | |
local bxor=function(a,b) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet"> | |
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet"> | |
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600,700,900' rel='stylesheet' type='text/css'> | |
<style> | |
.icon-file-alt { |