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
array( | |
0 => array( | |
'User' => array( | |
'id' => 1 | |
), | |
'Bill' => array( | |
0 => array( | |
'number' => 1000, | |
'id' => 10, | |
'status' => 'ZERW' |
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
array( | |
0 => array( | |
'User' => array( | |
'id' => 1 | |
), | |
'Bill' => array( | |
0 => array( | |
'number' => 1000, | |
'id' => 10, | |
'status' => 'ZERW' |
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
g++ -o playfmd main.o QueueManager.o playfmJob.o -L/usr/local/lib -L/opt/local/lib -lavformat -lavcodec -lz -lbz2 -lm -lavutil -lboost_program_options-mt -lboost_thread-mt -lmysqlpp | |
Undefined symbols: | |
"boost::thread_resource_error::thread_resource_error()", referenced from: | |
boost::mutex::mutex()in QueueManager.o | |
boost::condition_variable::condition_variable()in QueueManager.o | |
"boost::program_options::options_description::options_description(unsigned int)", referenced from: | |
parseArgs(int, char**, qm_data&, URI&)in main.o | |
"boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)", referenced from: | |
parseArgs(int, char**, qm_data&, URI&)in main.o | |
parseArgs(int, char**, qm_data&, URI&)in main.o |
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 id="container"> | |
<div id="div1" style="float: left"> | |
</div> | |
<div id="div2" style="float: left"> | |
<p>some text</p> | |
</div> | |
<div id="div3" style="float: left"> | |
</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
function someSynchronouseCall() { | |
var data = null; | |
someAsynchronousCall(function(response) { | |
data = response.data; | |
}); | |
// is there some way to wait for the above callback before returning 'data' ? | |
return data; | |
} |
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
#define some colors | |
green=$'\e[1;32m' | |
magenta=$'\e[1;35m' | |
blue=$'\e[1;34m' | |
normal_colours=$'\e[m' | |
c_red=$'\e[1;31m' | |
c_green=$'\e[1;32m' | |
c_sgr0=$'\e[1;00m' | |
function parse_git_branch |
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
cd /path/to/redmine && /usr/bin/ruby script/runner "Repository.fetch_changesets" -e production >> /tmp/logs/parse_changesets.log | |
#OR | |
RAILS_ENV=production /usr/bin/rake -f /path/to/redmine/Rakefile --trace redmine:fetch_changesets >> /tmp/logs/parse_changesets.log |
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
<dataConfig> | |
<dataSource encoding="UTF-8" driver="com.mysql.jdbc.Driver"/> | |
<document name="solrIndex"> | |
<entity name="artist" query="select id, name, stats_total, stats_popindex from artist where namevariation_id is null and deleted = 0" > | |
<field column="id" name="id_i" /> | |
<field column="name" name="name_t" /> | |
<entity name="recording" query="select recording_id from recording_artist where artist_id=${artist.id}"> | |
<field column="recording_id" name="recs_i" /> | |
</entity> |
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
next_url = url_for({ | |
:controller => 'authsubs', | |
:action => 'finish', | |
:only_path => false, | |
:host => request.host | |
}) |
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 | |
register_shutdown_function('shutdownFunction'); | |
function shutDownFunction() { | |
$error = error_get_last(); | |
if ($error['type'] == 1) { | |
var_dump(debug_backtrace()); | |
} | |
} |