Skip to content

Instantly share code, notes, and snippets.

View Spoygg's full-sized avatar

Ivan Ivanić Spoygg

View GitHub Profile
[
{
detailType: 1, // ovo da bih mogao da napravim url za add detalja
title: "Related links", // da prikažem naslov
details: [
{
id: 10, // da bih mogao da pošaljem delete request
title: 'Wikipedia',
url: 'http://wikipedia.org',
display: '<a>wiki</a>'
[
{
detailType: 1, // ovo da bih mogao da napravim url za add detalja
title: "Related links", // da prikažem naslov
details: [
{
id: 10, // da bih mogao da pošaljem delete request
title: 'Wikipedia',
url: 'http://wikipedia.org',
display: '<a>wiki</a>'
describe('Test example.com', function(){
before(function(done) {
client.init().url('http://example.com', done);
});
describe('Check homepage', function(){
it('should see the correct title', function(done) {
client.getTitle(function(err, title){
expect(title).to.have.string('Example Domain');
done();
spoygg@Yggdrasill ~/S/itsmyplay> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'itsmyplay'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[Berkshelf] Berkshelf plugin is disabled but a Berksfile was found at your configured path: /home/spoygg/Saturized/itsmyplay/Berksfile
[Berkshelf] Enable the Berkshelf plugin by setting 'config.berkshelf.enabled = true' in your vagrant config
Pruning invalid NFS exports. Administrator privileges will be required...
[default] Creating shared folders metadata...
/** @AfterStep */
public function showContentAfterFailure(StepEvent $event)
{
try {
if ($event->hasException()) {
$this->saveScreenshot(
sprintf(
'screenshot-%s-%s.png',
date('Y-m-d_h-i-s', time()),
str_replace(' ', '_', $event->getLogicalParent()->getTitle())
vagrant@unwrap:/source$ composer install
Loading composer repositories with package information
Installing dependencies from lock file
Generating autoload files
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "parameters.yml" from "/source/app/config/config.yml".
Generated at Tue Mar 26 10:27:03 +0000 2013
Chef::Exceptions::CookbookNotFound: Cookbook timezone-ii not found. If you're loading timezone-ii from another cookbook, make sure you configure the dependency in your metadata
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/cookbook/cookbook_collection.rb:38:in `initialize'
/usr/lib/ruby/gems/1.8/gems/ohai-6.16.0/lib/ohai/mash.rb:77:in `call'
/usr/lib/ruby/gems/1.8/gems/ohai-6.16.0/lib/ohai/mash.rb:77:in `default'
/usr/lib/ruby/gems/1.8/gems/ohai-6.16.0/lib/ohai/mash.rb:77:in `default'
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:265:in `[]'
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:265:in `each_cookbook_dep'
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:243:in `add_cookbook_with_deps'
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:87:in `cookbook_order'
spoygg@Yggdrasill ~/S/unwrap> vagrant up
[default] Box debian64 was not found. Fetching box from specified URL...
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: https://dl.dropbox.com/u/366736/Vagrant%20boxes/debian64.box
[vagrant] Extracting box...
[vagrant] Verifying box...
[vagrant] Cleaning up downloaded box...
[default] Importing base box 'debian64'...
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
@Spoygg
Spoygg / README.md
Last active December 10, 2015 06:08 — forked from anonymous/deviant-art-bookmarklet.js
Simple bookmarklet to activate two keyboard shortcuts on http://my.deviantart.com/messages/#view=deviations single deviation view. First is to 'a' to "Add to Favorites", second is 'k' to remove from messages. (kill is mnemonic for 'k'). Instructions: add bookmark with contents of this file. When on dA single deviation view click on bookmark.

Unfortunately below link does not work.

Drag on bookmarks toolbar

$country = '';
$sql = "select qst.system_name as system_name, qst.question as question, ans.answer as answer from " . EVENTS_ANSWER_TABLE . " ans inner join " . EVENTS_QUESTION_TABLE . " qst on ans.question_id = qst.id where qst.system_name = 'country' and ans.attendee_id = " . $attendee_id;
$questions = $wpdb->get_results($sql, ARRAY_A);
if ($wpdb->num_rows > 0 && $wpdb->last_result[0]->question != NULL) {
foreach ($questions as $q) {
$country = $q['answer'];
}
}