View wp-ajaxify.html
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 type="text/javascript"> | |
jQuery(document).ready(function($) { | |
/*function bb() { | |
$( "a" ).unbind(); | |
$( "a" ).bind( "click", function( ev ) { | |
ev.preventDefault(); | |
$( "#main" ).load( $(this).attr('href') + " #main", bb ); | |
//bb(); | |
return false; | |
}); |
View config.xml
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
<?xml version='1.0' encoding='utf-8'?> | |
<widget id="com.adnan__.yo___" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
<name>Yo__ App</name> | |
<description> | |
Simple description for tha app. | |
</description> | |
<author email="needa__@gmail.com" href="http://adnan360.com"> | |
Adnan Shameem | |
</author> | |
<content src="index.html" /> |
View xcointoss.lua
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
-- title | |
io.write('** COIN TOSS SIMULATOR **\n\n') | |
-- take input | |
io.write('Please enter how many coin toss you want:') | |
num = io.read() | |
-- tossing | |
tails=0 | |
heads=0 |
View gist:155c4b42515f173a68cc
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
a First letter of English alphabet | |
a1 Very good | |
abc Basics | |
apple A red fruit | |
b Second letter of English alphabet | |
bad Not good | |
bag Holder of things | |
bank Keeper of money | |
big Large in size | |
c Third letter of English alphabet |
View Pi_Spigot.pas
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
////////////////////////////////////////////////////////////// | |
// This code was inspired by: http://www.geom.uiuc.edu/~huberty/math5337/groupe/digits.html | |
// The solution was from rvk in this thread: http://forum.lazarus.freepascal.org/index.php/topic,31955.0.html | |
// The code was based on Rosetta code: https://rosettacode.org/wiki/Pi#Pascal | |
//------------------------------------------------------------ | |
// USING INSTRUCTIONS: | |
// To use it: | |
// 1. Open up Lazarus <http://lazarus-ide.org> | |
// 2. Project -> New Project -> Program -> OK | |
// 3. Select all, then paste this code |
View WP-plugin-settings-sample.php
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 | |
// Example # 2 from | |
// https://codex.wordpress.org/Creating_Options_Pages | |
class MySettingsPage | |
{ | |
/** | |
* Holds the values to be used in the fields callbacks | |
*/ | |
private $options; |
View VirtualAboutForm.pas
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
procedure TfrmEditor.Closeme(Sender: TObject); | |
begin | |
tform( tcontrol(sender).parent ).Close; | |
end; | |
procedure TfrmEditor.mnuAboutClick(Sender: TObject); | |
const | |
margin = 20; | |
var | |
frm: TForm; |
View test.php
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 | |
echo mktime().'<br/>'; | |
sleep(1); | |
echo mktime().'<br/>'; | |
sleep(1); | |
echo mktime().'<br/>'; | |
sleep(1); |
View functions.php_snip
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
$args = array( | |
'post_type' => 'booked_appointments', | |
'posts_per_page' => -1, | |
'post_status' => 'any', | |
'meta_query' => array( | |
array( | |
'key' => '_appointment_timestamp', | |
'value' => array( $start_timestamp, $end_timestamp ), | |
'compare' => 'BETWEEN' | |
) |
View functions.php_snip
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
$bookedAppointments = new WP_Query( apply_filters('booked_fe_date_content_query',$args) ); |
OlderNewer