This file contains hidden or 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
* nanoc (http://nanoc.stoneship.org) | |
* Jekyll (http://github.com/mojombo/jekyll) | |
* Serve (http://github.com/jlong/serve) | |
* Webby (http://webby.rubyforge.org) |
This file contains hidden or 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
* Graticule (http://github.com/collectiveidea/graticule) | |
* geokit-gem (http://github.com/andre/geokit-gem) | |
* geokit-rails (http://github.com/andre/geokit-rails) |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'find' | |
Find.find(Dir.getwd) do |file| # Get current working directory and iterate over each file | |
next if file.include?('.svn') # Ignore svn files | |
system "file -I '#{file}'" # Print file information via file command | |
end |
This file contains hidden or 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
# encoding: utf-8 | |
require 'active_record' | |
require 'mysql2' | |
require 'nokogiri' | |
require 'yaml' | |
ROOT = File.join(File.dirname(__FILE__), '..') | |
# ActiveRecord::Base.logger = Logger.new('log/debug.log') |
This file contains hidden or 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 | |
// → http://answerpot.com/showthread.php?463705-Cloning%20Model%20and%20add%20to%20repository | |
public function copyFooAction(Tx_Foo_Domain_Model_Foo $foo) { | |
$propertyMapper = t3lib_div::makeInstance('Tx_Extbase_Property_Mapper'); // Create new Tx_Extbase_Property_Mapper | |
$propertyMapper->injectReflectionService(t3lib_div::makeInstance('Tx_Extbase_Reflection_Service')); | |
$newFoo = new Tx_Foo_Domain_Model_Foo(); | |
$attributes = array('foo', | |
'bar' |
This file contains hidden or 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 queue = []; | |
$.each(foobars, function(i, foobar) { // Built up queue | |
queue.push($.getJSON( | |
'http://foobar.com/foo.js', // URL | |
{ foo: foobar.bar }, // Params | |
function(data) { // Callback | |
# ... | |
)); | |
}); |
This file contains hidden or 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
# encoding: utf-8 | |
module RSpec | |
module Support | |
module Views | |
module CapybaraExtensions | |
def rendered | |
Capybara.string(@rendered) | |
end |
This file contains hidden or 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 selector = angular.element($(".ng-scope")[0]); | |
var scope = selector.scope(); | |
var grid = scope.$$childTail.grid; | |
$.each(grid, function(i, row) { | |
$.each(row, function(j, element) { | |
element.solve(); | |
}); | |
}); |
This file contains hidden or 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
set :branch do | |
default_tag = `git tag`.split("\n").last | |
tag = Capistrano::CLI.ui.ask "Tag to deploy [#{default_tag}]: " | |
tag = default_tag if tag.empty? | |
tag | |
end |
This file contains hidden or 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
$ port install scala2.9 | |
$ port install scala_select | |
$ port select --set scala scala2.9 |
OlderNewer