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
<?php | |
class InlinejsHelper extends AppHelper { | |
var $jsSubFolder = 'fbml'; | |
function renderGeneric() { | |
$genericScript = 'fbmlgeneric.js'; | |
$genericjs = new File(JS . $this->jsSubFolder . DS . $genericScript); | |
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
# source 'http://rubygems.org' | |
source :gemcutter | |
gem 'rails', '3.1.0.beta1' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
# Asset template engines |
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
command = "exiftool -a -m -json -" | |
puts command.inspect | |
origin = Deckchair::Tempobject.new() | |
result = Deckchair::Tempobject.new() | |
origin.write File.read('./test.pdf') | |
IO.popen(command, 'rb+') do |pipe| | |
pipe.puts origin.reread | |
pipe.close_write |
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
# Read more about Cakefiles: | |
# https://github.com/jashkenas/coffee-script/wiki/[HowTo]-Compiling-and-Setting-Up-Build-Tools | |
# http://coffeescript.org/documentation/docs/cake.html | |
# http://coffeescript.org/#cake | |
fs = require 'fs' | |
path = require 'path' | |
coffee_script = require 'coffee-script' | |
{exec} = require 'child_process' |