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 | |
$messages = [ | |
'I think everyone who says they don\'t like watching themselves in movies should stop lying.', | |
'I was a square for so long and it totally amazes me that people think I am cool.', | |
'Nein. Nein. Nein. Nein.', | |
'A movie is just a movie to me. They open, they close.', | |
'What kills me is that everybody thinks I like jazz.', | |
'Definitely. And I always do - I love me on-screen!', | |
'Why do we fall, Master Bruce?', |
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 | |
$request->getCurlOptions()->add(CURLOPT_PROXY, 'tcp://192.168.56.1:8888'); |
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
// ..Bundle/DependencyInjectionConfiguration::getConfigTreeBuilder | |
$rootNode | |
->validate() | |
->ifTrue(function($config) { | |
return is_array($config) && | |
array_key_exists('default_bus', $config) && | |
array_key_exists('commandbus', $config); | |
}) | |
->then(function($config) { | |
$busNames = array_keys($config[‘commandbus’]); |
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 | |
namespace MyApp | |
{ | |
class Foo | |
{ | |
public function interactWithWordpress() | |
{ | |
return get_option('my_option_name'); | |
} |
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 class=”article”> | |
<div class=”header”>Very interesting article</div> | |
<div class=”introduction”> | |
This is a very interesting article. However, the content is all wrapped in div tags! | |
</div> | |
<div class=”content”> | |
Now this can be a very interesting story to read, but a computer can’t value it’s content against other random texts on this page. | |
</div> | |
</div> |
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
export QUERY_STRING="start_debug=1&debug_stop=1&debug_fastfile=1&debug_coverage=1&use_remote=1&send_sess_end=1&debug_session_id=2000&debug_start_session=1&debug_port=10137&debug_host=192.168.0.254" |
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
function mybugon() { | |
export QUERY_STRING="start_debug=1&debug_stop=1&debug_fastfile=1&debug_coverage=1&use_remote=1&send_sess_end=1&debug_session_id=2000&debug_start_session=1&debug_port=10137&debug_host=192.168.56.1" | |
export PHP_IDE_CONFIG="serverName=$1" | |
} | |
alias bugon="mybugon" | |
alias bugoff="unset QUERY_STRING" |
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 Bundles implements ResponseClassInterface | |
{ | |
protected $bundles = array(); | |
public function addBundle($bundle) | |
{ | |
$this->bundles[] = $bundle; | |
} |
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
before "deploy:finalize_update", "deploy:minify_javascript" | |
namespace :deploy do | |
task :minify_javascript do | |
run_locally "cd #{copy_cache} && java -jar yuicompressor-2.4.7.jar -o public/js/script.min.js public/js/script.unpacked.js" | |
top.upload(File.join("#{copy_cache}", "/public/js/script.min.js"), "#{release_path}/public/js/script.min.js") | |
end | |
end |
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
build/*.xml |
OlderNewer