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
Category 1 (id: 1, position: 1, depth: 0, ancestry: ) | |
├── Category 2 (id: 2, position: 1, depth: 1, ancestry: 1) | |
│ ├── Category 3 (id: 3, position: 1, depth: 2, ancestry: 1/2) | |
│ └── Category 4 (id: 4, position: 2, depth: 2, ancestry: 1/2) | |
└── Category 5 (id: 5, position: 2, depth: 1, ancestry: 1) | |
├── Category 6 (id: 6, position: 1, depth: 2, ancestry: 1/5) | |
└── Category 7 (id: 7, position: 2, depth: 2, ancestry: 1/5) | |
"Saving category 5 with the following changes: " | |
{ | |
"ancestry" => [ |
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
diff --git a/wp-content/plugins/Tevolution-Events/templates/mobile-single-event.php b/wp-content/plugins/Tevolution-Events/templates/mobile-single-event.php | |
index f3116a6..ce12e7f 100644 | |
--- a/wp-content/plugins/Tevolution-Events/templates/mobile-single-event.php | |
+++ b/wp-content/plugins/Tevolution-Events/templates/mobile-single-event.php | |
@@ -36,7 +36,7 @@ if(function_exists('bdw_get_images_plugin')) | |
<?php | |
if(function_exists('supreme_sidebar_before_content')) | |
- apply_filters('tmpl_before-content',supreme_sidebar_before_content() ); /* Loads the sidebar-before-content.?>*/ | |
+ apply_filters('tmpl_before-content',supreme_sidebar_before_content() ); /* Loads the sidebar-before-content.*/ ?> |
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
require 'sanitize' | |
raw_markup = File.read('markup.html') | |
class Sanitize | |
module Config | |
# Very restrictive config for wikipedia markup sanitizer | |
WIKIPEDIA = freeze_config( | |
elements: %w[b em i strong u br ol ul li pre p h1 h2 h3 h4 h5 h6], | |
remove_contents: %w[sup table], | |
# Transformers section |
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
<script src="http://www.java.com/js/deployJava.js"> | |
</script> | |
<script> | |
var attributes = { | |
codebase: 'http://localhost/jar', | |
code: 'it.mebius.uploader.Applet.class', | |
archive: 'applet.jar, lib/apache-mime4j-0.6.jar, lib/httpmime-4.0.jar, lib/commons-codec-1.4.jar, lib/commons-logging-1.1.1.jar, lib/forms-1.2.1.jar, lib/log4j-1.2.15.jar, lib/httpclient-4.0.jar, lib/httpcore-4.0.1.jar', | |
width: 600, | |
height: 480 | |
}; |
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
With this configuration works: | |
Computer-di-Fabio:soccer fabionapoleoni$ rake about | |
(in /Users/fabionapoleoni/Desktop/work/soccer) | |
About your application's environment | |
Ruby version 1.8.7 (i686-darwin10.4.0) | |
RubyGems version 1.3.7 | |
Rack version 1.2 | |
Rails version 3.0.0 | |
Active Record version 3.0.0 |
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
<div data-marker-title="Via di Vigna Fabbri, Roma" data-longitude="12.5249391" data-latitude="41.8706294" class="gmap dynamic-google-map" style="position: relative; background-color: rgb(229, 227, 223); overflow: hidden; z-index: 0;"> | |
<div style="left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%; z-index: 0; position: absolute;"> | |
<div style="position: absolute; left: 0px; top: 0px; z-index: 1; cursor: -moz-grab;"> | |
<div style="z-index: 100; position: absolute; left: 0px; top: 0px;"/> | |
<div style="z-index: 101; position: absolute; left: 0px; top: 0px;"> | |
<div style='width: 16px; height: 16px; overflow: hidden; background-image: url("http://maps.gstatic.com/intl/it_it/mapfiles/drag_cross_67_16.png"); background-position: 0px 0px; background-repeat: no-repeat; -moz-background-size: auto auto; display: none; position: absolute; left: 348px; top: -9px; z-index: 0;'/> | |
</div> | |
<div style="z-index: 102; position: absolute; left: 0px; top: 0px;"> | |
<div style='wid |
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 | |
/** | |
* Doctrine logger for FireBug | |
* | |
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL | |
* @author Magnus Andersson <mange@mange.name> | |
*/ | |
namespace My\Namespace; | |
use Doctrine\DBAL\Logging\SqlLogger; |
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 Plugin_Profiler extends Zend_Controller_Plugin_Abstract | |
{ | |
private $profiler; | |
/** | |
* Constructor |
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
require 'spec_helper' | |
require 'capybara/rails' | |
describe "Authentication" do | |
describe "when logged in" do | |
before(:each) do | |
@editor = Factory(:editor, :password => 'secret') | |
visit '/' | |
fill_in 'Login', :with => @editor.login |
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
set :application, "set your application name here" | |
set :repository, "set your repository location here" | |
set :deploy_to, "set path where to deploy application" | |
set :scm, :subversion | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
role :web, "your web-server here" # Your HTTP server, Apache/etc | |
OlderNewer