Skip to content

Instantly share code, notes, and snippets.

View amadoru's full-sized avatar

Roshan Amadoru amadoru

  • Vetstoria
  • Colombo, Sri Lanka
View GitHub Profile
@amadoru
amadoru / gist:4182564
Created December 1, 2012 14:23
Synonyms for Dulith
Disclaimer: I have not run these queries against any database and the syntax is in pure SQL so adjust as it fits and ignore typos
Create a table like this.
CREATE TABLE words (
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
group INT NOT NULL,
word VARCHAR(100) NOT NULL,
);
@amadoru
amadoru / gist:1716313
Created February 1, 2012 10:03
qp_enqueue_styles trouble a little bit more explained.
<?php
/*
Plugin Name: Match Generator
Plugin URI:
Description: This plugin will generate match .inb files which can be pushed to the device.
Version: 1.0
Author: Amadoru
Author URI:
*/
@amadoru
amadoru / gist:1716135
Created February 1, 2012 09:30
wp_enqueue_syte trouble
add_action('wp_head', 'add_styles_scripts');
function add_styles_scripts() {
wp_register_style('ced-match-export-style', 'style.css');
wp_enqueue_style('ced-match-export-style');
}